Skip to main content
POST
/
v1
/
createBatchPayment
CreateBatchPayment
curl --request POST \
  --url https://api.mpcvault.com/v1/createBatchPayment \
  --header 'Content-Type: application/json' \
  --header 'x-mtoken: <api-key>' \
  --data '
{
  "btcBatchSendNative": {
    "from": "<string>",
    "recipients": [
      {
        "address": "<string>",
        "amount": "<string>",
        "notes": "<string>"
      }
    ]
  },
  "name": "<string>",
  "notes": "<string>"
}
'
{
  "batchPayment": {
    "uuid": "<string>",
    "status": "STATUS_UNSPECIFIED",
    "creationTimestamp": 123,
    "btcBatchSendNative": {
      "from": "<string>",
      "recipients": [
        {
          "address": "<string>",
          "amount": "<string>",
          "notes": "<string>"
        }
      ]
    },
    "name": "<string>",
    "notes": "<string>",
    "failedReason": "<string>",
    "approvalSigningRequest": {
      "aptosMessage": {
        "type": "TYPE_UNSPECIFIED",
        "from": "<string>",
        "content": {
          "address": "<string>",
          "application": "<string>",
          "chainId": "<string>",
          "message": "<string>",
          "nonce": "<string>"
        }
      },
      "uuid": "<string>",
      "status": "STATUS_UNSPECIFIED",
      "txHash": "<string>",
      "vaultUuid": "<string>",
      "failedReason": "<string>",
      "creationTimestamp": 123,
      "notes": "<string>",
      "simulation": "aSDinaTvuI8gbWludGxpZnk=",
      "evmInputDataDecode": {
        "function": "<string>",
        "args": [
          {
            "name": "<string>",
            "type": "<string>",
            "data": "<string>"
          }
        ]
      }
    },
    "sendSigningRequest": {
      "aptosMessage": {
        "type": "TYPE_UNSPECIFIED",
        "from": "<string>",
        "content": {
          "address": "<string>",
          "application": "<string>",
          "chainId": "<string>",
          "message": "<string>",
          "nonce": "<string>"
        }
      },
      "uuid": "<string>",
      "status": "STATUS_UNSPECIFIED",
      "txHash": "<string>",
      "vaultUuid": "<string>",
      "failedReason": "<string>",
      "creationTimestamp": 123,
      "notes": "<string>",
      "simulation": "aSDinaTvuI8gbWludGxpZnk=",
      "evmInputDataDecode": {
        "function": "<string>",
        "args": [
          {
            "name": "<string>",
            "type": "<string>",
            "data": "<string>"
          }
        ]
      }
    }
  },
  "error": {
    "executeSigningRequestsErrorCode": "EXECUTE_SIGNING_REQUESTS_ERROR_CODE_UNSPECIFIED",
    "message": "<string>"
  }
}
Creates a batch payment in a single request. Complete and send the batch payment in the MPCVault web app. In the Try It playground, select a batch type from the tabs and fill in the required fields.

Authorizations

x-mtoken
string
header
required

Your API token. Required for all API requests.

Body

application/json
btcBatchSendNative
BTCBatchSendNative · object
required
name
string

The name of the batch payment.

notes
string

The transaction notes for the batch payment.

Response

200 - application/json

Success

batchPayment
object
required
error
Execute SRs Error Code · object