Query

Query an !Ink contract with a given message (method).

post

Will return a valid or invalid result.

Path parameters
addressstringRequired

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

Query parameters
methodstringOptional

The message or method used to query.

Default: get
gasLimitnumberOptional

The gas limit to be used as an option for the queried message.

Default: -1
storageDepositLimitnumberOptional

The storage deposit limit to be used as an option for the queried message.

Default: 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
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": {}
}