runGetMethod
TONC2Executes 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/runGetMethodParameters
| Name | Type | Description |
|---|---|---|
| address | string | Contract address. |
| method | string | Get-method name, e.g. get_wallet_data. |
| stack | array | Stack 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
Sıkça sorulanlar
How do I read a jetton balance?
Call the jetton wallet's get_wallet_data get-method; the balance is in the returned stack.
Bakiye yükle, anahtarını al, yayına çık.
Self servis. Kripto ya da kartla öde. Krediyle ölçümlenir — ağır ilkel yapılar daha pahalı, basitler ucuz.
API anahtarı al