Skip to main content
POST
/
api
/
v2
/
runGetMethodStd
Run Get Method Std
curl --request POST \
  --url https://toncenter.com/api/v2/runGetMethodStd \
  --header 'Content-Type: application/json' \
  --data '
{
  "address": "<string>",
  "method": "<string>",
  "stack": [
    {
      "@type": "tvm.stackEntrySlice",
      "slice": {
        "@type": "tvm.slice",
        "bytes": "<string>"
      }
    }
  ],
  "seqno": 123
}
'
{
  "ok": true,
  "result": {
    "@type": "smc.runResult",
    "gas_used": 123,
    "stack": [
      {
        "@type": "tvm.stackEntrySlice",
        "slice": {
          "@type": "tvm.slice",
          "bytes": "<string>"
        }
      }
    ],
    "exit_code": 123
  }
}

SDK Usage

import asyncio

from toncenter.rest import ToncenterRestClient
from toncenter.types import Network

ADDRESS = "EQC3dNlesgVD8YbAazcauIrXBPfiVhMMr5YYk2in0Mtsz0Bz"
METHOD = "dnsresolve"
STACK = [
    {
        "@type": "tvm.stackEntrySlice",
        "slice": {
            "@type": "tvm.slice",
            "bytes": "te6ccgEBAQEABwAACm5lc3MA",
        },
    },
    {
        "@type": "tvm.stackEntryNumber",
        "number": {
            "@type": "tvm.numberDecimal",
            "number": "11610787539498642935599668790717661692618498088587845498754709837898668459007",
        },
    },
]


async def main() -> None:
    async with ToncenterRestClient(network=Network.MAINNET) as client:
        result = await client.v2.runmethod.run_get_method_std(
            ADDRESS,
            METHOD,
            STACK,
        )
        print(result.model_dump_json(indent=4))


if __name__ == "__main__":
    asyncio.run(main())

Body

application/json
address
string
required
method
required
stack
object[]
required
seqno
integer

Response

OK

ok
boolean
required
Example:

true

result
RunGetMethodStdResult · object
required