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<object>
object
[
"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
77a0049c-7683-45ff-956f-656f257048f7
methodName
required

The method name

string
balanceOf
paramCollection
required

The parameters for the method

Array<object>
object
[
"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