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
- Send a BOC and return its transaction hash
- Submit smart contract data to the TON
- Track the status of a BOC submission
Constraints
- Requires a valid BOC as input
- Dependent on network connectivity
- Only processes valid BOC formats
Unlock Access to 100+ 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=="
}'Response
200
{
"status": "success",
"transactionHash": "0:abcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdef",
"message": "BOC sent successfully."
}
Path params
Query params
Request params
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.