githubEdit

🏎️Quick Start

Example Payout

From a Smart Payout Account, customers can send out complex payouts with one simple API call:

  • /payout/disperse - Initiate a batch transfer of ERC-20 tokens to multiple recipients

  • /payout/transfer - Initiate a simple transfer of ERC-20 tokens to a single recipient

The path for the request is structured as:

POST https://api.paymagic.xyz/v1/{chain}/account/{address}/payout/disperse

Body data:

var data = JSON.stringify({
  "assets": [
    "0xeb8f08a975Ab53E34D8a0330E0D34de942C95926"
  ],
  "amounts": [
    "100"
  ],
  "recipients": [
    "0x869eC00FA1DC112917c781942Cc01c68521c415e"
  ]
});

Example POST /payout/disperse

Last updated