2. Fetching Vault Details
Overview
Initializing the SDK and Fetching Vault Details
import { EthereumStaker, CHORUS_ONE_ETHEREUM_VALIDATORS } from '@chorus-one/ethereum'
const staker = new EthereumStaker({ network: 'hoodi' })
await staker.init()
const validatorAddress = CHORUS_ONE_ETHEREUM_VALIDATORS.ethereum.maxVault
// Alternatively, you can define vaults yourself:
// const vault = '0x...';
// Note: The getVault method accepts an array of vault addresses.
const vault = await staker.getVault({ validatorAddress })
console.log(vault)
// {
// address: "0x95d0db03d59658e1af0d977ecfe142f178930ac5",
// name: "Chorus One Test Wallet",
// description: "Test wallet for Chorus",
// logoUrl: "https://storage.stakewise.io/dxepxhzxsrqs.png",
// tvl: 5600841037682025178745n,
// apy: "3.98146836137682602839366230181093629",
// }Displaying Vault Details as a Table

Next Steps
Last updated
Was this helpful?