跳转至

USDT 与 TRC20 转账

TRC20(USDT)余额、转账,以及收款地址簿。

USDT 命令(GetUSDTBalanceTransferUSDTGetUsdtTransferById)只在主网、Nile 和 Shasta 网络上运行。在其他网络上它们会提示 This command does not support the current network.

GetUSDTBalance

获取登录账户的 USDT 余额;如果给出 Address,则获取该地址的余额。

> GetUSDTBalance [Address]
wallet> getusdtbalance
USDT balance = 0

TransferUSDT

发起一笔 USDT 转账。

> TransferUSDT [OwnerAddress] ToAddress Amount
wallet> transferusdt TR311sD6KasRnofj5RnFiFBA2rH8RH2kYk 1
USDT balance = 1698999895
It is estimated that 345 bandwidth and 29650 energy will be consumed.
{
    "raw_data":{
        "contract":[
            {
                "parameter":{
                    "value":{
                        "data":"a9059cbb000000000000000000000041a5418b8da12e73075abb46375e7a15c758ea21fc0000000000000000000000000000000000000000000000000000000000000001",
                        "owner_address":"TUUSMd58eC3fKx3fn7whxJyr1FR56tgaP8",
                        "contract_address":"TXYZopYRdj2D9XRtbG411XZZ3kM5VkAeBf"
                    },
                    "type_url":"type.googleapis.com/protocol.TriggerSmartContract"
                },
                "type":"TriggerSmartContract"
            }
        ],
        "ref_block_bytes":"08c7",
        "ref_block_hash":"c02252c2ae3b92e1",
        "expiration":1761639507000,
        "fee_limit":1000000000,
        "timestamp":1761639448851
    },
    "raw_data_hex":"0a0208c72208c02252c2ae3b92e140b8c896cfa2335aae01081f12a9010a31747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e54726967676572536d617274436f6e747261637412740a1541caf9798d70a3c609b600f163e53cfe8f586e1b9f121541eca9bc828a3005b9a3b909f2cc5c2a54794de05f2244a9059cbb000000000000000000000041a5418b8da12e73075abb46375e7a15c758ea21fc000000000000000000000000000000000000000000000000000000000000000170938293cfa23390018094ebdc03"
}
Before sign transaction hex string is 0ad4010a0208c72208c02252c2ae3b92e140b8c896cfa2335aae01081f12a9010a31747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e54726967676572536d617274436f6e747261637412740a1541caf9798d70a3c609b600f163e53cfe8f586e1b9f121541eca9bc828a3005b9a3b909f2cc5c2a54794de05f2244a9059cbb000000000000000000000041a5418b8da12e73075abb46375e7a15c758ea21fc000000000000000000000000000000000000000000000000000000000000000170938293cfa23390018094ebdc03
Please confirm and input your permission id, if input y/Y means default 0, other non-numeric characters will cancel transaction.
y
Please choose your key for sign.
The keystore file TUUSMd58eC3fKx3fn7whxJyr1FR56tgaP8.json is loaded.
Please input your password.
password:
After sign transaction hex string is 0ad4010a0208c72208c02252c2ae3b92e1409fb0b9d9a2335aae01081f12a9010a31747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e54726967676572536d617274436f6e747261637412740a1541caf9798d70a3c609b600f163e53cfe8f586e1b9f121541eca9bc828a3005b9a3b909f2cc5c2a54794de05f2244a9059cbb000000000000000000000041a5418b8da12e73075abb46375e7a15c758ea21fc000000000000000000000000000000000000000000000000000000000000000170938293cfa23390018094ebdc031241a776830e5cd054c6a94631b6d62704e249e7587ab3f036e5e4fac15cbf49e671262532e094e1a32ad858272da3e101958102df61b0f72f26756a94b608883a6f01
TxId is 9c8d4b84e9a71ccaad86b0a96f790067d3fc7ea85c26b425e5d748b81d31a8b8
Transfer 1 to TR311sD6KasRnofj5RnFiFBA2rH8RH2kYk broadcast  successful.
Please check the given transaction id to get the result on blockchain using getTransactionInfoById command.

GetUsdtTransferById

根据交易 ID 获取 USDT 转账交易的摘要。

> GetUsdtTransferById txId
wallet> GetUsdtTransferById b0044dcb188568d11e77da926d96630f3e878583c5d5f4b3a72d2b984802143a
{
        "id":"b0044dcb188568d11e77da926d96630f3e878583c5d5f4b3a72d2b984802143a",
        "type":"TriggerSmartContract(transferUSDT)",
        "from":"TUUSMd58eC3fKx3fn7whxJyr1FR56tgaP8",
        "to":"TGDjv2KKD4UqEmFTnZgLzup5WWjTex4Mvq",
        "amount":100,
        "tronscanQueryUrl":"https://nile.tronscan.org/#/transaction/b0044dcb188568d11e77da926d96630f3e878583c5d5f4b3a72d2b984802143a"
}

AddressBook

添加、编辑和删除地址簿条目。交互式菜单没有查询功能。

wallet> AddressBook

MAIN MENU:
1. addAddress
2. editAddress
3. deleteAddress
4. exit
Select option: 1

另请参见