POSTSend BoC (return hash)

TON Mainnethttps://ton-mainnet.nodit.io/api/v2/sendBocReturnHash
CU40

Broadcasts a signed message to the TON network and returns the message hash. The boc parameter must contain a complete, signed external message in base64 format. The API validates the message and forwards it to validators. The returned hash can be used to track the message's processing status.

Request Body
bocstringrequired

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

Responses
okbooleanrequired

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

@typestring (enum)required

TonLib type identifier for external message info after broadcast. Refer to the TonLib type reference for a full list.

hashstringrequired

SHA-256 hash of the external message as accepted by the network.

hash_normstringrequired

SHA-256 normalized message hash, stable across re-serializations. Defined in TEP-467: normalized message hash.

@extrastring

Optional request ID that can be passed in the request and received back in the response. Useful for matching async responses.

X-API-KEY
Request
cURL
curl -X POST "https://ton-mainnet.nodit.io/api/v2/sendBocReturnHash" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "boc": "te6cckEBAQEAAgAAAEysuc0="
  }'
Response
Example · 200
{
  "ok": true,
  "result": {
    "@type": "raw.extMessageInfo",
    "hash": "3KKIL6PiMzHxz90KQ/9o1PNfvExh0yPB2cjNHu1rXjE=",
    "hash_norm": "3KKIL6PiMzHxz90KQ/9o1PNfvExh0yPB2cjNHu1rXjE="
  },
  "@extra": "1795684404:0:9.598"
}