Skip to main content
Versioned-transaction cosigning lets the user authorize a swap by signing a prebuilt Solana transaction that encodes the exact execution parameters. The user signs it locally, preserving the required signature order, and returns it as the approval. Funds remain secure until the resolver executes the swap according to the authorized transaction.

Signature order

When approval_mechanism is cosign, params_to_sign.transaction is a hex-encoded versioned transaction. After signing, the signatures must be in this order:

Example