Skip to main content
POST
/
api
/
v3
/
runGetMethod
Run get method
curl --request POST \
  --url https://toncenter.com/api/v3/runGetMethod \
  --header 'Content-Type: application/json' \
  --data '
{
  "address": "<string>",
  "method": "<string>",
  "stack": [
    {
      "type": "<string>",
      "value": "<unknown>"
    }
  ]
}
'
{
  "address": "<string>",
  "method": "<string>",
  "stack": [
    {
      "type": "<string>",
      "value": "<unknown>"
    }
  ]
}

Body

application/json

Request body for executing a smart contract get method. Provide the contract address, method name, and optional input stack. Stack entries support num (hex string), cell (base64 BOC), and slice (base64 BOC) types.

address
string

Address of the smart contract to execute the get method on.

method
string

Name of the get method to execute (e.g., seqno, get_wallet_data, get_nft_data).

stack
object[]

Input stack entries for the get method. Each entry has a type (num, cell, or slice) and a value in the corresponding format.

Response

Get method execution result with output stack.

Request body for executing a smart contract get method. Provide the contract address, method name, and optional input stack. Stack entries support num (hex string), cell (base64 BOC), and slice (base64 BOC) types.

address
string

Address of the smart contract to execute the get method on.

method
string

Name of the get method to execute (e.g., seqno, get_wallet_data, get_nft_data).

stack
object[]

Input stack entries for the get method. Each entry has a type (num, cell, or slice) and a value in the corresponding format.