POSTSend BoC (return hash, no error)

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

Broadcast a serialized external message to the network and return its hash, like sendBocReturnHash. If the liteserver rejects the message, the endpoint returns HTTP 400 with the error message instead of the original error code.

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/sendBocReturnHashNoError" \
  -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"
}