# transfer_to_address

transfer_to_address The transfer_to_address command transfers assets to the specified account. The transferred account can be a local account or a registered account on the chain. If it is a local account but not in a wallet, the transfer address cannot be found and the transfer will fail.

request

{
  "jsonrpc": "2.0", 
  "method": "transfer_to_account", 
  "params": ["nathan","test","23","XWC","hello world",true], 
  "id": 1
}

Input parameters

  • Transfer out account name
  • Receive account name
  • transfer amount
  • Asset symbols (XWC, HC, BTC, ETH, LTC, BCH, USDT, ERCPAX, ERCELF)
  • Remarks, can be empty
  • Whether to broadcast transactions (true/false)

response

{
    "id": 1,
    "jsonrpc": "2.0",
    "result": {
        "ref_block_num": 52149,
        "ref_block_prefix": 3772745964,
        "expiration": "2019-06-17T07:13:45",
        "operations": [
            [
                0,
                {
                    "fee": {
                        "amount": 201,
                        "asset_id": "1.3.0"
                    },
                    "from": "1.2.0",
                    "to": "1.2.0",
                    "from_addr": "XWCTNa5ZMhvFYXSYN4E2sAKqDVBKZgU9AGEBfZ",
                    "to_addr": "XWCTNiRFXW8qpvfNGU4ewhKQEngiVHNTngxYyb",
                    "amount": {
                        "amount": 2300000,
                        "asset_id": "1.3.0"
                    },
                    "memo": {
                        "from": "XWC1111111111111111111111111111111114T1Anm",
                        "to": "XWC1111111111111111111111111111111114T1Anm",
                        "nonce": 0,
                        "message": "0000000068656c6c6f20776f726c64"
                    },
                    "extensions": []
                }
            ]
        ],
        "extensions": [],
        "signatures": [
            "2038dad36cc5cf74522255cc953c9d90253d8fcacbcd614e9028f79f62a73aadff72bd5b835eab4aa90370b0cd54694cfb25648b82c12282cb1b17f929d74b2cf7"
        ],
        "block_num": 0,
        "trxid": "8705b6dec10349488cb3ae629ce56fc381db2564"
    }
}

return value

  • expiration: transaction expiration time
  • operations: list of trading operations
    • fee: handling fee
    • from_addr: transfer-out address
    • to_addr: receiving address
    • amount: amount
    • memo: remarks
  • trxid: transaction id
  • block_num: Confirm block, this time is 0, if the package is successful, you can find it in the blockchainbrowser
  • signatures: transaction signatures