read-contract

POST {{wallet-api-endpoint}}/api/contracts/read

Special transaction for blockchain that have a secondary token to pay the gas fee. Such as NEO and VeChain.

Not relevant for chains that have only one native token such as Ethereum, MATIC, BSC, ...

Request Body

{"secretType"=>"MATIC", "walletAddress"=>"0x0000000000000000000000000000000000000000", "contractAddress"=>"0xE80F3baA739c18fd4eBf97716529a4b85BE464Dd", "functionName"=>"balanceOf", "inputs"=>[{"type"=>"address", "value"=>"0x427d0addaa77d8bb871dbea3458dea4b5198730c"}, {"type"=>"uint256", "value"=>"202"}], "outputs"=>[{"type"=>"uint256"}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring