Query a contract method using ABI
POST /v2/contract/abi/{id}/query
POST
/v2/contract/abi/{id}/query
Query a contract method using a specific ABI id.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
The ABI ID to use
Header Parameters
Section titled “Header Parameters ” X-API-Key
string
API Key
X-API-Secret
string
API Secret
Request Body required
Section titled “Request Body required ”object
isShared
Whether the ABI is shared
boolean
methodName
required
The method name
string
balanceOf
paramCollection
required
The parameters for the method
Array<object>
object
[ "0x123..."]
chainId
required
The chain ID
number
1
contractAddress
required
The contract address
string
0x123...
walletId
The wallet ID to sign with
string
wallet-123
Responses
Section titled “ Responses ”The query result
object
query
required
The query parameters
object
chainId
required
The chain ID
number
1
abiId
required
The ABI ID
string format: uuid
77a0049c-7683-45ff-956f-656f257048f7
contractAddress
required
The contract address
string
0x1234567890123456789012345678901234567890
methodName
required
The method name
string
balanceOf
paramCollection
required
The parameters for the method
Array<object>
object
[ "0x1234567890123456789012345678901234567890"]
isShared
required
Whether the ABI is shared
boolean
response
required
The response from the contract method
object
{ "balance": "1000000000000000000"}
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error