Skip to content

Call a contract deployment method

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

Call a method on a specific contract deployment.

id
required
string

The deployment ID to query

X-API-Key
string

API Key

X-API-Secret
string

API Secret

object
methodName
required

The method name

string
balanceOf
paramCollection
required

The parameters for the method

Array<string>
[
"0x123..."
]
walletId

The wallet ID to sign with

string
wallet-123
isShared

Whether the deployment is shared

boolean

The query result

object
query
required

The query parameters

object
deploymentId
required

The deployment ID

string format: uuid
e271bc5c-f870-44cd-8462-54280d0411f6
methodName
required

The method name

string
balanceOf
paramCollection
required

The parameters for the method

Array<string>
[
"0x1234567890123456789012345678901234567890"
]
isShared
required

Whether the deployment is shared

boolean
response
required

The response from the contract method

object
{
"balance": "1000000000000000000"
}

Bad Request

Unauthorized

Forbidden

Not Found

Internal Server Error