Skip to main content
POST
/
v1
/
createSigningRequest
CreateSigningRequest
curl --request POST \
  --url https://api.mpcvault.com/v1/createSigningRequest \
  --header 'Content-Type: application/json' \
  --header 'x-mtoken: <api-key>' \
  --data '
{
  "aptosMessage": {
    "from": "<string>",
    "type": "TYPE_UNSPECIFIED",
    "content": {
      "address": "<string>",
      "application": "<string>",
      "chainId": "<string>",
      "message": "<string>",
      "nonce": "<string>"
    }
  },
  "notes": "<string>",
  "vaultUuid": "<string>",
  "callbackClientSignerPublicKey": "<string>",
  "broadcastTx": true
}
'
{
  "signingRequest": {
    "aptosMessage": {
      "from": "<string>",
      "type": "TYPE_UNSPECIFIED",
      "content": {
        "address": "<string>",
        "application": "<string>",
        "chainId": "<string>",
        "message": "<string>",
        "nonce": "<string>"
      }
    },
    "uuid": "<string>",
    "status": "STATUS_UNSPECIFIED",
    "failedReason": "<string>",
    "txHash": "<string>",
    "creationTimestamp": 123,
    "notes": "<string>",
    "vaultUuid": "<string>",
    "callbackClientSignerPublicKey": "<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 signing request that can be completed in the MPCVault mobile app (manual) or with the API client signer (programmatic). In the Try It playground, select a transaction 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
aptosMessage
object
required
notes
string

symbol_value:"send 1 eth to 0x71C7656EC7ab88bd32g47dgdhhssq245f6d8976F" comment:notes is the transaction notes for the signing request.

vaultUuid
string

required:true symbol_value:"9f5ee5fb-07f5-470c-a2ff-081e2d6d107a" comment:vault_uuid is the UUID of the vault that the signing request will be created in.

callbackClientSignerPublicKey
string

symbol_value:"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL3OzFAKNGHsMtBpTemiAI3V1AxRsdeghjcmkidagdk test" comment:It is used to identify the where we should send the callback to. If empty, we will show the signing request in the MPCVault mobile app for manual signing.Note that if the signing request is created by an api wallet, this field must be set as api wallets can only be signed by the api client signer at the moment.

broadcastTx
boolean

comment:If true, the tx will be automatically broadcasted after signing. Not supported for Message types, RawMessage, or txs on non-system (custom EVM) chains. All other standard txs on system chains are supported.

Response

200 - application/json

Success

signingRequest
aptos_message · object

signing_request is the signing request that was created.

error
execute_signing_requests_error_code · object