Query
Will return a valid or invalid result.
Path parameters
addressstringRequired
SS58 or Hex address of the account associated with the contract.
Query parameters
methodstringOptionalDefault:
The message or method used to query.
get
gasLimitnumberOptionalDefault:
The gas limit to be used as an option for the queried message.
-1
storageDepositLimitnumberOptionalDefault:
The storage deposit limit to be used as an option for the queried message.
null
argsstring[]Optional
An array of Abi params.
Body
objectOptional
Metadata used to instantiate a ContractPromise. This metadata can be generated by compiling the contract you are querying.
Responses
200
succesful operation
application/json
400
Invalid Method
application/json
post
POST /contracts/ink/{address}/query HTTP/1.1
Host: dot-playbook.nownodes.io
Content-Type: application/json
Accept: */*
Content-Length: 2
{}
{
"debugMessage": "text",
"gasConsumed": "text",
"gasRequired": "text",
"output": true,
"result": {},
"storageDeposit": {}
}