5: Get info about a token in Classic.
Token Playground Chapter 5: Get info about a token in Classic.
Introduction:
git clone https://github.com/esteblock/token-playground/1. Get info about a token from stellar
https://horizon-testnet.stellar.org/assets?asset_code=ASSET_CODE&asset_issuer=ISSUER_ADDRESSFuturenet Classic Info:
{
_links: { toml: { href: '' } },
asset_type: 'credit_alphanum12',
asset_code: 'MYASSETCODE',
asset_issuer: 'GAM5XOXRUWPMKENBGOEAKMLRQ4ENHLHDSU2L2J7TVJ34ZI7S6PHMYIGI',
paging_token: 'MYASSETCODE_GAM5XOXRUWPMKENBGOEAKMLRQ4ENHLHDSU2L2J7TVJ34ZI7S6PHMYIGI_credit_alphanum12',
num_accounts: 1,
num_claimable_balances: 0,
num_liquidity_pools: 0,
amount: '5.0000000',
accounts: {
authorized: 1,
authorized_to_maintain_liabilities: 0,
unauthorized: 0
},
claimable_balances_amount: '0.0000000',
liquidity_pools_amount: '0.0000000',
balances: {
authorized: '5.0000000',
authorized_to_maintain_liabilities: '0.0000000',
unauthorized: '0.0000000'
},
flags: {
auth_required: false,
auth_revocable: false,
auth_immutable: false,
auth_clawback_enabled: false
},
toml: [Function (anonymous)]
}
2. Use our code
3. Next
Last updated