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

Body

application/json

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

boc
string
required

The message to broadcast, serialized as a BOC (Bag of Cells) and base64 encoded.

Response

OK

Response confirming message was accepted for broadcast.

ok
boolean
default:true
required

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

result
object
required

The response data. Only present 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.