Skip to content
On this page

Assets

The assets namespace contains method used for get assets by chain. The unique method to the assets namespace is:

  • GetAssets(chain): The get Assets method provides information about the delegation pool.

Get Assets Code Example

ts
// Import SDK
import { GetAssets } from '@everstake/wallet-sdk';

const chain = 'aptos';

const result = await GetAssets(chain);

console.log(result); // // see the response below

Using REST API (Swagger)

curl -X 'GET' \
  'https://wallet-sdk-api.everstake.one/assets/aptos' \
  -H 'accept: application/json'

Response Example

ts
assets = {
    "chain": "Aptos",
    "logo_white": "<svg>",
    "logo_black": "<svg>",
    "validator_address": "0x1c6a051d9a5ec4cf4200bab21a794d3afe8259d625f6b78aa4d01ab4652327d5",
    "fee": 10,
    "apr": 7,
    "currency_code": "APT"
}