Transfer

The transfer is the same as the above event, sent to address 0, and then you can choose to send to an unlimited number of recipients, it only needs one gas. (If the ETH limit is not exceeded).

KeyRequiredDescription

p

yes

protocol name,ierc-20, there is no difference between the two.

op

yes

transfer

tick

yes

same as deployment.

nonce

yes

unique value, timestamp is recommended.

to

yes

array object, "recv" and "amt", "recv" and "amt" fields, recv is the recipient address, amt is the quantity, the recipient address must start with 0x, and the length is appropriate, otherwise the entire transaction is invalid.

For example:

// transfer; send 0eth from self to 0x0000000000000000000000000000000000000000
{
  "p": "ierc-20",
  "op": "transfer", //transfer operation
  "tick": "ethi",
  "nonce": "2",
  "to": [ //batch transfer, the sum of amt must equal the previous amt param
    {
      "recv": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", //receiver address
      "amt": "50" //receiver amount
    },
    {
      "recv": "0x0000000000085d4780B73119b644AE5ecd22b376",
      "amt": "50"
    }
  ]
}

Last updated