Skip to content

Query a contract method using ABI

POST
/v2/contract/abi/{id}/query

Query a contract method using a specific ABI id.

id
required
string

The ABI ID to use

X-API-Key
string

API Key

X-API-Secret
string

API Secret

object
isShared

Whether the ABI is shared

boolean
methodName
required

The method name

string
balanceOf
paramCollection
required

The parameters for the method

Array<string>
[
"0x123..."
]
chainId
required

The chain ID

number
1
contractAddress
required

The contract address

string
0x123...

The query result

object
query
required

The query parameters

object
response
required

The response from the contract method

object
{
"balance": "1000000000000000000"
}