Skip to main content

/contracts/ink/{address}/query REST API Endpoint

Query an !Ink contract with a given message.

Updated on
Sep 02, 2024

Path Parameters

address
string
REQUIRED

The SS58 or Hex address of the account associated with the contract.

Query Parameters

method
string

The message or method used to query. Defualt value is 'get'

gasLimit
integer

The gas limit to be used as an option for the queried message. Default value is -1

storageDepositLimit
integer

The storage deposit limit to be used as an option for the queried message. Default value is null

args
array

Abi params used as args specified in the metadata to be passed into a query. The format to use this query param is ?args[]=1&args[]=2&args[]=3

Returns

debugMessage
string

Message containing information useful for debugging the process

gasConsumed
string

The amount of gas used during the transaction

gasRequired
string

The amount of gas needed to complete the transaction

output
boolean

Indicates whether the process produced any output (true/false)

result
object

Contains the outcome or result of the process

storageDeposit
object

Contains the information related to the storage cost of the transaction

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free