Skip to main content
POST
/
api
/
v2
/
jsonRPC
JSON-RPC endpoint
curl --request POST \
  --url https://toncenter.com/api/v2/jsonRPC \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "jsonrpc": "2.0",
  "id": "<string>",
  "method": "<string>",
  "params": {}
}
'
{
  "ok": true,
  "result": "<string>",
  "@extra": "<string>",
  "jsonrpc": "<string>",
  "id": "<string>"
}

Authorizations

X-API-Key
string
header
required

Body

application/json

A JSON-RPC 2.0 request. Set method to the API method name (e.g., "getWalletInformation") and params to a dictionary of parameters.

jsonrpc
string
default:2.0
required

JSON-RPC protocol version, always "2.0".

id
string
required

Request ID. Pass any string and it will be echoed in the response.

method
string
required

The get method name (e.g., "seqno", "get_wallet_data") or its numeric ID.

params
object
required

Method parameters as key-value pairs.

Response

OK

ok
boolean
default:true
required

Indicates if the request succeeded. If false, check the error field for details.

result
required

The response data. Only present when ok is true.

@extra
string
required

Optional request ID that you can pass in the request and receive back in the response. Useful for matching async responses.

jsonrpc
string

JSON-RPC protocol version, always "2.0".

id
string

Request ID. Pass any string and it will be echoed in the response.