sendBocReturnHash - Ton

sendBocReturnHash. Sends a Binary Object Container (BOC) to the TON blockchain and returns the transaction hash for the operation, enabling users to track the status of the transaction.

sendBocReturnHash - ton [Value: 100CU]
Sends a Binary Object Container (BOC) to the TON blockchain and returns the transaction hash for the operation, enabling users to track the status of the transaction.
Use cases

Use cases

  • Send a BOC and return its transaction hash
  • Submit smart contract data to the TON
  • Track the status of a BOC submission
Constraints

Constraints

  • Requires a valid BOC as input
  • Dependent on network connectivity
  • Only processes valid BOC formats
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl --request GET \
     --url 'https://ton.drpc.org/rest/sendBocReturnHash' \
     --header 'accept: application/json' \
     --data '{
         "boc": "te6cckEBAQEAAjz+9wAAMABBBIAgAAZL0AAdBGdZnYDAAUGdD59VAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAABAcAA=="
    }'
Copy
Response
200
{
    "status": "success",
    "transactionHash": "0:abcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdef",
    "message": "BOC sent successfully."
}
Copy

Request params

Parametersstring
string
bocstring
Encoded bag of cells

Response

200

Response params

object
statusstring
Indicates the status of the request.
transactionHashstring
The unique hash of the transaction.
messagestring
A message detailing the result of the operation.