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 likeSolana where the transaction size is limited.


📘

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

{
  "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"
}
{
  "status": "SUCCESS",
  // Signatures array with each signature in the hex format.
  "signatures": [
    {
      "signature": "0x023d9a5700b77971b8de539936143e0d82808809b856cc9ab9bcc41a02a3794ec516a44db6ed666f3e4f7549ae91939062ce076a9ef419febc21c41eebb98f0a"
    },
    {
      "signature": "0xee1af2c9bd70596a2bd41727126de50de3e834f29a5ef4afae1b9c4b7522779a071408faa667529260fb3d26ec312f81647cc5996f0562d98ec3757ea431c50a"
    }
  ]
}

🚧

Api Error Status

You can find error status returned by the api here.

© Copyright 2024, Passbird Research Inc.

Language
Authorization
Header
Click Try It! to start a request and see the response here!