Skip to main content
POST
/
runGetMethod
Run get-method on contract
curl --request POST \
  --url https://toncenter.com/api/v2/runGetMethod \
  --header 'Content-Type: application/json' \
  --data '{
  "address": "<string>",
  "method": "<string>",
  "stack": [
    [
      "<any>"
    ]
  ],
  "seqno": 123
}'
{
  "ok": true,
  "result": "<string>",
  "error": "<string>",
  "code": 123
}

Body

application/json
address
string
required

Contract address

method
required

Method name or method id

stack
any[][]
required

Array of stack elements: [['num',3], ['cell', cell_object], ['slice', slice_object]]

seqno
integer

Seqno of masterchain block at which moment the Get Method is to be executed

Response

Successful Response

ok
boolean
required
result
error
string
code
integer
I