Skip to main content

Using API for multisend

Postman collection with all endpoints - Using_API_for_multisend.postman_collection.zip

Estimated contract system fee

post
Endpoint POST /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
Endpoint POST /public/multisend/approve

Parameters

Body

  • estimationId

    *

    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",
    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
Endpoint POST /public/multisend/estimateMinerFee

Parameters

Body

  • estimationId

    *

    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",
    minerFee: "0.00020803299",
    totalAmount: "1",
    currencyFee: "ETH",
    needApprove: false,
    allowance: "1",
    multisendWallets: [
    {
    address: "0xE5A6F0163a5fc5E0ecB85Ef5Ec066E1133ac79f0",
    amount: "0.5"
    },
    {
    address: "0xE5A6F0163a5fc5E0ecB85Ef5Ec066E1133ac79f0",
    amount: "0.5"
    }
    ]
    }
    }

Multisend

post
Endpoint POST /public/multisend

Parameters

Body

  • estimationId

    *

    string

Responses

  • 200:OK
    {
    status: "string",
    data: {
    ids: [
    "string"
    ]
    }
    }
  • 200:OK

    Example

    {
    status: "success",
    data: {
    ids: [
    "63b59ec69139ae0e927fc8cb"
    ]
    }
    }