run method
rpc

Run Get Method

Executes a read-only method on a smart contract. Get methods query contract state without sending a transaction. Common methods include seqno (wallet sequence number), get_wallet_data (wallet info), and get_jetton_data (token info). Method arguments are provided in the stack array.

post/api/v2/runGetMethod

Request

  • Base URL: https://toncenter.com (the document declares no server; this is the origin it was published from)
  • URL: https://toncenter.com/api/v2/runGetMethod
  • Auth: one of:
    • API key in header X-API-Key
    • API key in query parameter api_key

Request body

addressstring required

Account address in raw format (e.g., 0:ca6e321c...) or user-friendly format (e.g., EQDKbjIcfM...). All formats are automatically detected.

seqnointeger

Masterchain block sequence number. Run the get method against the contract state at this specific block height. If omitted, uses the current state.

Response

Returns the TVM stack output and exit code from executing the specified get method.

okboolean required

Returns true if the request succeeded; otherwise false. See the error field for details.

@extrastring required
jsonrpcstring

JSON-RPC protocol version identifier.

idstring

Changes

No recorded changes to this operation across all 1 revision of this API.