요금GitHub대시보드

TRON

wallet/createtransaction15 크레딧

Builds an unsigned TRX transfer transaction.

네트워크: tron

매개변수

이름타입설명
owner_addressstringTransaction initiator address (base58 or hex).
to_addressstringRecipient address (base58 or hex).
amountnumberAmount in sun (1 TRX = 1,000,000 sun), at least 1.
extra_datastringTransaction note in hex. (선택)
Permission_idnumberPermission ID for multi-signature accounts; defaults to the owner permission (0). (선택)
visiblebooleantrue = base58 addresses (in the request and the response); false (default) = hex addresses. (선택)

반환값

타입

Object

Unsigned transaction object (txID, raw_data, raw_data_hex, visible). It is only built, not signed or broadcast; sign it and send it with wallet/broadcasttransaction. On failure an object with an Error string (still HTTP 200).

코드 예제

curl 'https://holy-burned-sky-tron-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7/wallet/createtransaction' \
  -X POST \
  -H 'content-type: application/json' \
  -d '{
  "owner_address": "TLsV52sRDL79HXGGm9yzwKibb6BeruhUzy",
  "to_address": "T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb",
  "amount": 1000000,
  "visible": true
}'