sendQuery method sends an unpacked external message to the TON blockchain. Unlike sendBoc which requires a fully serialized BoC, this method accepts individual message components and constructs the message on the server side.
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
address(string, required) — The destination address for the message. Example:EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs.body(string, required) — The body of the message in base64 format.init_code(string, optional) — The init code in base64 format. Required when deploying a new contract.init_data(string, optional) — The init data in base64 format. Required when deploying a new contract.
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, typicallyokfor successful submissions.@extra(string) — Extra information about the operation.
Use case
ThesendQuery method is useful when you have the message components but haven’t serialized them into a BoC:
- Smart contract deployment when you have separate code and data cells.
- Simplified transaction sending without manual BoC construction.
- Testing and debugging with individual message components.
- Integration with systems that provide message parts separately.
Body
application/json
The destination address for the message
The body of the message in base64 format
Optional init code in base64 format for contract deployment
Optional init data in base64 format for contract deployment