Skip to main content
POST
/
api
/
v2
/
sendBoc
Send BOC
curl --request POST \
  --url https://toncenter.com/api/v2/sendBoc \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "boc": "<string>"
}
'
{
  "ok": true,
  "result": {
    "@type": "ok"
  },
  "@extra": "<string>"
}

Authorizations

X-API-Key
string
header
required

API key header of the form X-API-Key: <token>, where <token> is your API key. Requests without a key are limited to 1 RPS. More info here.

Body

application/json

Request to broadcast a signed message. The boc field contains the base64-encoded external message.

boc
string
required

Serialized external message in BOC format, base64 encoded. Contains the signed transaction to broadcast.

Response

Returns a success confirmation after broadcasting the serialized message to the network.

ok
boolean
default:true
required

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

result
object
required

Response data. Present only when ok is true.

@extra
string

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