IERC Document
  • 📜IERC Protocol
    • Overview
    • Why use IERC 20?
    • Use Cases and Features
    • Roadmap
  • 🌠User's Guide
    • Explore IERC-20
    • How To Mine
    • How To Deploy
    • How To Transfer
    • Market
      • How To Buy
      • How To List
      • How To Bulk Buy
  • 🔁IERC Swap
    • How to IERC Swap
    • How to add Liquidity
    • Liquidity providers (LPs)
    • FAQ
  • 🔥New Features
    • PoW&DPoS
    • 🔨How to PoW&DPoS Mining
    • IERC PoW
      • Phrase I: PoW - Base
      • ⛏️How to Mine
      • Phase II: PoW - Advanced
      • 🤝How to Participate
    • IERC DPoS
      • 📒Staking Rules
      • 💦How to Stake
      • 🎁Rewards Program
    • Tokenomics
    • FAQ
  • 💻Devs
    • IERC-20
      • Deploy
      • Mint
      • Transfer
      • Freeze Sell
      • Proxy Transfer
      • Stake
      • Unstake
      • More
    • DINX EVM (beta)
      • RPC
      • Add Token
      • Explorer
      • API
  • 🤵Ambassador Program
  • ❓FAQ
Powered by GitBook
On this page
  1. Devs
  2. IERC-20

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).

Key
Required
Description

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"
    }
  ]
}

PreviousMintNextFreeze Sell

Last updated 1 year ago

💻