ドキュメント
料金GitHubダッシュボード

TON

estimateFee30クレジット

Estimates the fees of an external message to an account, without sending it.

ネットワーク: ton

パラメータ

名前型説明
addressstringAddress of the receiver of the message.
bodystringBody of the message: a base64 BOC with one cell.
init_codestringCode of the contract to deploy, base64 BOC. Empty when the contract exists. (任意)
init_datastringData of the contract to deploy, base64 BOC. Empty when the contract exists. (任意)
ignore_chksigbooleanDo not check the signature of the message. Default true. (任意)

戻り値

型

Object

source_fees and destination_fees, each with in_fwd_fee, storage_fee, gas_fee and fwd_fee (nanotons).

コード例

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": "estimateFee",
  "params": {
    "address": "EQCD39VS5jcptHL8vMjEXrzGaRcCVYto7HUn4bpAOg8xqB2N",
    "body": "<base64 BOC of the message body>",
    "ignore_chksig": true
  }
}'