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>"
    }
  ]
}

SDK Usage

import asyncio

from toncenter.rest import ToncenterRestClient
from toncenter.types import Network
from toncenter.rest.v3.models import V2RunGetMethodRequest, V2StackEntity

ADDRESS = "EQC3dNlesgVD8YbAazcauIrXBPfiVhMMr5YYk2in0Mtsz0Bz"
METHOD = "dnsresolve"
STACK = [
    V2StackEntity(type="slice", value="te6ccgEBAQEABwAACm5lc3MA"),
    V2StackEntity(type="num", value="0x19f02441ee588fdb26ee24b2568dd035c3c9206e11ab979be62e55558a1d17ff"),
]


async def main() -> None:
    async with ToncenterRestClient(network=Network.MAINNET) as client:
        body = V2RunGetMethodRequest(
            address=ADDRESS,
            method=METHOD,
            stack=STACK,
        )
        result = await client.v3.api_v2.run_get_method(body)
        print(result.model_dump_json(indent=4))


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

Body

application/json
address
string
method
string
stack
object[]

Response

OK

address
string
method
string
stack
object[]