Pass in three arrays corresponding to the payouts to make with this call:
assets - array of token addresses to payout
amounts - array of token amounts as strings, corresponding to assets array
recipients - array of recipient addresses, corresponding to assets+amounts
var data = JSON.stringify({
"assets": [
"0xf52f827f0826959c173b34e8a2a63cb4c38c67c8",
"0x375b18ec234e7801e79e49c76c468d86c331f22d"
],
"amounts": [
"100",
"100"
],
"recipients": [
"0x869eC00FA1DC112917c781942Cc01c68521c415e",
"0x0D79AfBF97a401968836b9D906F3f87b20d45A72"
]
});
Use the zero address for native tokens like ETH, MATIC, AVA
Response
The response from payout endpoints is an ethers.jsTransactionReponse with a meta field that has additional information. By default, the meta field comes back with a value of {status: 'pending'}.