---
updatedAt: 2025-07-26T15:18:17.000Z
agentTools:
  projectIndex: https://docs.metakeep.xyz/llms.txt
---

# Sign Transaction (Batch)

/v2/app/sign/transaction

This API allows developers to `sign a batch` of transactions in a single call. This is useful if you want to `sign multiple` transactions in a single call e.g. approve a token, mint an NFT, and transfer the NFT on blockchains like`Solana` where the `transaction size is limited`.

<br />

> 📘 This API is only supported for the `Solana` apps at the moment.

# Sign Solana Transaction

To sign a Solana transaction, send the serialized transaction message in a transaction object. Here's what the request and response look like:

> 👍 Solana versioned transactions are supported

```json Sign Solana Transaction Request
{
  "transactions": [
    {
      "transactionObject": {
        // Serialized transaction message in hex format.
        // You can get this by calling `transaction.serializeMessage().toString("hex")`
        // For versioned transaction, convert `transaction.message.serialize()` to a `0x` prefixed hex string
        "serializedTransactionMessage": "0x010001034cb5abf6ad79fbf5abbccafcc269d85cd2651ed4b885b5869f241aedf0a5ba2900000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000301020200010c02000000e803000000000000"
      },
      "reason": "Sign transaction 1 reason"
    },
    {
      "transactionObject": {
        "serializedTransactionMessage": "0x8001000103ec6d8edfd14f19dc0e0d4257d742391ebbc76f888f07aec984c23c1fd21f742cc3cbfb66b5dc0f433e849fe091cd3cbab561465917ab90f90079c3446d8a94bb0000000000000000000000000000000000000000000000000000000000000000aa8b81c393009772ffdeb5826b9f8c8352775991961268503401dfa5ecfdafce01020200010c0200000000e1f5050000000000"
      },
      "reason": "Sign transaction 2 reason"
    }
  ],
  "reason": "Sign multiple transactions reason"
}
```
```json Sign Solana Transaction Response
{
  "status": "SUCCESS",
  // Signatures array with each signature in the hex format.
  "signatures": [
    {
      "signature": "0x023d9a5700b77971b8de539936143e0d82808809b856cc9ab9bcc41a02a3794ec516a44db6ed666f3e4f7549ae91939062ce076a9ef419febc21c41eebb98f0a"
    },
    {
      "signature": "0xee1af2c9bd70596a2bd41727126de50de3e834f29a5ef4afae1b9c4b7522779a071408faa667529260fb3d26ec312f81647cc5996f0562d98ec3757ea431c50a"
    }
  ]
}
```

<br />

> 🚧 Api Error Status
>
> You can find error status returned by the api [here](https://docs.metakeep.xyz/reference/api-error-status#v2appsigntransactionmultiple).

© Copyright 2024, Passbird Research Inc.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "production",
    "version": "3.4"
  },
  "servers": [
    {
      "url": "https://api.metakeep.xyz/"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v2/app/sign/transaction/multiple": {
      "post": {
        "summary": "Sign Transaction (Batch)",
        "description": "/v2/app/sign/transaction",
        "operationId": "v2appsigntransactionmultiple",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "transactions",
                  "reason"
                ],
                "properties": {
                  "transactions": {
                    "type": "array",
                    "description": "The list of transactions to sign in a batch with a reason for each transaction.",
                    "items": {
                      "properties": {
                        "transactionObject": {
                          "type": "string",
                          "description": "The transaction data object. For Solana chains, send the serialized transaction message as described above.",
                          "format": "json"
                        },
                        "reason": {
                          "type": "string",
                          "description": "The human readable explanation for this transaction. Useful for presenting to the user as an extra information ex: \"Swap wBTC to USDC\", and for auditing purposes."
                        }
                      },
                      "required": [
                        "transactionObject",
                        "reason"
                      ],
                      "type": "object"
                    }
                  },
                  "reason": {
                    "type": "string",
                    "description": "The human readable explanation for this transaction. Useful for presenting to the user as an extra information ex: \"Swap wBTC to USDC\", and for auditing purposes."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Solana response": {
                    "value": "{\n  \"status\": \"SUCCESS\",\n  \"signatures\": [\n    {\n      \"signature\": \"0x023d9a5700b77971b8de539936143e0d82808809b856cc9ab9bcc41a02a3794ec516a44db6ed666f3e4f7549ae91939062ce076a9ef419febc21c41eebb98f0a\"\n    },\n    {\n      \"signature\": \"0xee1af2c9bd70596a2bd41727126de50de3e834f29a5ef4afae1b9c4b7522779a071408faa667529260fb3d26ec312f81647cc5996f0562d98ec3757ea431c50a\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "SUCCESS"
                    },
                    "signatures": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "signature": {
                            "type": "string",
                            "example": "0x023d9a5700b77971b8de539936143e0d82808809b856cc9ab9bcc41a02a3794ec516a44db6ed666f3e4f7549ae91939062ce076a9ef419febc21c41eebb98f0a"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```