Copy link
Using API for multisend
Postman collection with all endpoints - Using_API_for_multisend.postman_collection.zip
Estimated contract system fee
post
https://api.cpay.world
/api/public/multisend/estimateSystemFee
Endpoint POST /api/public/multisend/estimateSystemFee
Parameters
Body
- currencyToken
*
string
- multisendWallets:[ address:string,amount:string ]
*
Responses
- 200:OK{status: "string",data: {estimationId: "string",countTxs: "number",systemFee: "string",minerFee: "string",totalAmount: "string",allowance: "string",currencyFee: "string",needApprove: "Boolean",multisendWallets: [string]}}
- 200:OK
Example
{status: "success",data: {estimationId: "8bb50989-7c87-4652-b4e5-8f3ead00b132",countTxs: 1,systemFee: "0.0038",totalAmount: "1",currencyFee: "ETH",minerFee: "0",needApprove: true,allowance: "0",multisendWallets: [{address: "0xE5A6F0163a5fc5E0ecB85Ef5Ec066E1133ac79f0",amount: "0.5"},{address: "0xE5A6F0163a5fc5E0ecB85Ef5Ec066E1133ac79f0",amount: "0.5"}]}}
Approve contract
post
https://api.cpay.world
/api/public/multisend/approve
Endpoint POST /api/public/multisend/approve
Parameters
Body
- estimationId
*
string
- password
string
- sign
string
base64 format
Responses
- 200:OK{status: "string",data: {estimationId: "string",countTxs: "number",systemFee: "string",minerFee: "string",totalAmount: "string",allowance: "string",currencyFee: "string",needApprove: "Boolean",multisendWallets: [string]}}
- 200:OK
Example
{status: "success",data: {estimationId: "8bb50989-7c87-4652-b4e5-8f3ead00b132",countTxs: 1,systemFee: "0.0038",minerFee: "0",totalAmount: "1",currencyFee: "ETH",needApprove: false,allowance: "1",multisendWallets: [{address: "0xE5A6F0163a5fc5E0ecB85Ef5Ec066E1133ac79f0",amount: "0.5"},{address: "0xE5A6F0163a5fc5E0ecB85Ef5Ec066E1133ac79f0",amount: "0.5"}]}}
Estimated contract miner fee
post
https://api.cpay.world
/api/public/multisend/estimateMinerFee
Endpoint POST /api/public/multisend/estimateMinerFee
Parameters
Body
- estimationId
*
string
- password
string
- sign
string
base64 format
Responses
- 200:OK{status: "string",data: {estimationId: "string",countTxs: "number",systemFee: "string",minerFee: "string",totalAmount: "string",allowance: "string",currencyFee: "string",needApprove: "Boolean",multisendWallets: [string]}}
- 200:OK
Example
{status: "success",data: {estimationId: "8bb50989-7c87-4652-b4e5-8f3ead00b132",countTxs: 1,systemFee: "0.0038",minerFee: "0.00020803299",totalAmount: "1",currencyFee: "ETH",needApprove: false,allowance: "1",multisendWallets: [{address: "0xE5A6F0163a5fc5E0ecB85Ef5Ec066E1133ac79f0",amount: "0.5"},{address: "0xE5A6F0163a5fc5E0ecB85Ef5Ec066E1133ac79f0",amount: "0.5"}]}}
Multisend
post
https://api.cpay.world
/api/public/multisend
Endpoint POST /api/public/multisend
Parameters
Body
- estimationId
*
string
- password
string
- sign
string
base64 format
Responses
- 200:OK{status: "string",data: {ids: ["string"]}}
- 200:OK
Example
{status: "success",data: {ids: ["63b59ec69139ae0e927fc8cb"]}}