runGetMethod

TONC2

Executes a contract get-method against current state without a transaction — the way to read jetton data, wallet seqno and other on-chain contract state on TON.

Endpoint
POST https://api.1st-node.com/v1/ton/runGetMethod

Parameters

NameTypeDescription
addressstringContract address.
methodstringGet-method name, e.g. get_wallet_data.
stackarrayStack arguments for the method.

Returns

object — exit_code and the resulting stack.

Request

curl https://api.1st-node.com/v1/ton/runGetMethod \
  -H "Authorization: Bearer $ONE_KEY" \
  -H "content-type: application/json" \
  -d '{ "address": "EQD…", "method": "get_wallet_data", "stack": [] }'
{ "address": "EQD…", "method": "get_wallet_data", "stack": [] }

Response

{ "exit_code": 0, "stack": [["num", "0x5f5e100"]] }
More transactions methods on TON

TON API

よくある質問

How do I read a jetton balance?

Call the jetton wallet's get_wallet_data get-method; the balance is in the returned stack.

チャージして、キーを取得し、リリース。

セルフサーブ。暗号資産またはカードで支払い。クレジットで従量課金——重いプリミティブは高く、単純なものは安価。

APIキーを取得