rpc

JSON-RPC endpoint

All API methods are available through this single endpoint. Send the method name in the method field and parameters as a dictionary in params.

post/api/v2/jsonRPC

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/jsonRPC
  • Auth: one of:
    • API key in header X-API-Key
    • API key in query parameter api_key

Request body

jsonrpcstring required

JSON-RPC protocol version identifier.

idstring required
methodstring required

API method name to invoke (e.g., getMasterchainInfo, getAddressBalance).

paramsobject required

Method parameters as a JSON object with key-value pairs.

Response

Returns the result of the specified JSON-RPC method call.

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.