Object
When Horizon returns information about an asset, it uses the following format:
- ATTRIBUTE -
asset_type
stringThis asset’s type. Either
credit_alphanum4orcredit_alphanum12.asset_code
stringThis asset’s code
asset_issuerstring
The Stellar address of this asset’s issuer.
amount
numberThe number of units issued for this asset.
num_accounts
numberThe numnber of accounts that have issued a trustline to this asset. If the
auth_requiredflag for this asset’s issuer is set totrue, this number only includes the accounts who have both set up a trustline to the asset and have been authorized to hold the asset.flags
objectFlags denote the enabling/disabling of certain asset issuer privileges. Show child attributes
auth_immutable
booleanIf set to
true, none of the following flags can be changed.auth_required
booleanIf set to
true, anyone who wants to hold an asset issued by this account must first be approved by this account.auth_revocable
booleanIf set to
true, this account can freeze the balance of a holder of an asset issued by this account.
paging_token
numberA cursor value for use in pagination.
{
"_links": {
"self": {
"href": "https://expansion-testnet.bantu.network/assets?asset_code=USD\u0026asset_issuer=GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX\u0026cursor=\u0026limit=10\u0026order=asc"
},
"next": {
"href": "https://expansion-testnet.bantu.network/assets?asset_code=USD\u0026asset_issuer=GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX\u0026cursor=USD_GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX_credit_alphanum4\u0026limit=10\u0026order=asc"
},
"prev": {
"href": "https://expansion-testnet.bantu.network/assets?asset_code=USD\u0026asset_issuer=GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX\u0026cursor=USD_GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX_credit_alphanum4\u0026limit=10\u0026order=desc"
}
},
"_embedded": {
"records": [
{
"_links": {
"toml": {
"href": "https://www.anchorusd.com/.well-known/stellar.toml"
}
},
"asset_type": "credit_alphanum4",
"asset_code": "USD",
"asset_issuer": "GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX",
"paging_token": "USD_GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX_credit_alphanum4",
"amount": "1347404.4083346",
"num_accounts": 9390,
"flags": {
"auth_required": false,
"auth_revocable": false,
"auth_immutable": false
}
}
]
}
}Last updated
Was this helpful?