TRON-US / trongrid

The infrastructure for Tron developers
11 stars 9 forks source link

Problem balanceOf function to get the token balance of the specified account #14

Open sanjithacks opened 1 year ago

sanjithacks commented 1 year ago

script:

curl --request POST \ --url https://api.trongrid.io/walletsolidity/triggerconstantcontract \ --header 'TRON-PRO-API-KEY: abcd-abcd-abcd-xxxxx-xxxxxxxx' \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "contract_address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t", "function_selector":"balanceOf(address)", "parameter":"000000000000000000000041977C20977F412C2A1AA4EF3D49FEE5EC4C31CDFB", "owner_address": "TNiq9AXBp9EjUqhDhrwrfvAA8U3GUQZH81", "visible": true } '

returns 0n

{ "result": { "result": true }, "energy_used": 1953, "constant_result": [ "0000000000000000000000000000000000000000000000000000000000000000" ], "energy_penalty": 1018, "transaction": { "ret": [ {} ],...............