sendBocReturnHash method sends a serialized bag-of-cells (BoC) to the TON blockchain and returns the message hash. This method is similar to sendBoc but additionally returns the hash of the sent message for tracking purposes.
Start for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
There’s no difference between a full node an archive node in data availability or pricing. All data is always available and all node requests are consumed as 1 request unit.
Request body
boc(string, required) — The serialized bag-of-cells in base64 format. This contains the signed external message to be sent to the blockchain.
JSON-RPC
Response
-
ok(boolean) — Whether the operation was successful. -
result(object) — The result of the operation. Contains:@type(string) — The type of the result, typicallyraw.extMessageInfo.hash(string) — The hash of the sent message. This can be used to track the transaction status.@extra(string) — Extra information about the operation.
Use case
ThesendBocReturnHash method is preferred over sendBoc when you need to track transaction status:
- Wallet applications can display the transaction hash to users for tracking.
- Backend services can store the hash for transaction monitoring and confirmation.
- Trading bots can track order execution status using the returned hash.
- Payment systems can correlate transaction hashes with internal records.
- DApps can provide users with explorer links using the transaction hash.
Body
application/json
boc
string
default:te6ccgEBAgEAqwAB4YgBVbC7Hu+g3htYXzst8L5ucV76NMzeBK3URJKebN2Y1kwADRfFu/r0HxgrOp/Iml8Li5x4gR10J5XYFS8z0fMWJ6JPeUF5xNSLrSDGFIqhJqkW1SEYQF8Dw5p4dI3oaFs4LCmpoxdkfKw0AAAAGAAcAQBoQgAwwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAL68=
required
The serialized bag-of-cells in base64 format