curl --request POST \ --url https://devnet-as.magicblock.app/ \ --header 'Content-Type: application/json' \ --data '{ "jsonrpc": "2.0", "id": 1, "method": "getTokenAccountBalance", "params": [ "7fUAJdStEuGbc3sM84cKRL6yYaaSstyLSU4ve5oovLS7", { "commitment": "finalized" } ] }'
{ "jsonrpc": "2.0", "id": 1, "result": null, "error": null }
Returns the token balance of an SPL Token account.
Documentation IndexFetch the complete documentation index at: https://docs.magicblock.gg/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.magicblock.gg/llms.txt
Use this file to discover all available pages before exploring further.
2.0
getTokenAccountBalance
Method-specific parameters.
Successful response
Method-specific result payload.
此页面对您有帮助吗?