TON
sendQuery34 kredi
Builds an external message from an address, a body and an optional init, and sends it.
Parametreler
| Ad | Tür | Açıklama |
|---|---|---|
| address | string | Address of the receiver of the message. |
| body | string | Body of the message: a base64 BOC with one cell. |
| init_code | string | Code of the contract to deploy, base64 BOC. Empty when the contract exists. (isteğe bağlı) |
| init_data | string | Data of the contract to deploy, base64 BOC. Empty when the contract exists. (isteğe bağlı) |
Dönüş değeri
Tür
Object
An ok object: the message was accepted by the node.
Kod örnekleri
curl https://holy-burned-sky-ton-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7 \
-X POST \
-H 'content-type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "sendQuery",
"params": {
"address": "EQCD39VS5jcptHL8vMjEXrzGaRcCVYto7HUn4bpAOg8xqB2N",
"body": "<base64 BOC of the message body>"
}
}'