I have estblished a wallet connection in the browser, but I'm only able to see my NEAR balance. How can I for example retrieve my other NEAR-related assets such as wrapped USDC, DAI, Aurora, etc? (NEP-141)
Here is the account object I get back from my wallet connection:
{
"accessKeyByPublicKeyCache": {},
"connection": {
"networkId": "testnet",
"provider": {
"connection": {
"url": "https://rpc.testnet.near.org"
}
},
"signer": {
"keyStore": {
"localStorage": {
"undefined_wallet_auth_key": "{\"accountId\":\"xxx.testnet\",\"allKeys\":[\"xxx\"]}",
"near-api-js:keystore:xxx.testnet:testnet": "ed25519:xxx",
"showBalance": "true",
"theme": "dark"
},
"prefix": "near-api-js:keystore:"
}
}
},
"accountId": "xxx.testnet"
}
Examples would be greatly appreciated!
I tried the above example. But I did not receive all balances, but just NEAR.
onst account = await nearConnection.account("example-account.testnet"); await account.getAccountBalance();