Skip to main content
POST
Submit Solana transaction

Authorizations

Authorization
string
header
required

Cognito JWT token for regular user authentication

Body

Request body for submitting the user's detached signature for a previously prepared Solana transaction. The server verifies this signature against the stored messageBytes, adds any Spritz-owned signatures such as the fee payer, serializes the final transaction, and broadcasts it.

Request body for submitting the user's detached signature for a previously prepared Solana transaction. The server verifies this signature against the stored messageBytes, adds any Spritz-owned signatures such as the fee payer, serializes the final transaction, and broadcasts it.

txId
string
required

Server transaction id returned by the prepare endpoint.

Minimum string length: 1
userSignature
string
required

Base64-encoded 64-byte ed25519 signature over the decoded messageBytes returned by prepare. Never send a fully signed transaction here — only the detached user signature.

Minimum string length: 1

Response

Submit response. The transaction has been broadcast to the Solana cluster. If submit is retried after a successful broadcast, the existing signature is returned.

Submit response. The transaction has been broadcast to the Solana cluster. If submit is retried after a successful broadcast, the existing signature is returned.

txId
string
required

Server transaction id.

signature
string
required

Solana transaction signature (base58).

signatureRole
string
required

Role of the signature returned (e.g., fee_payer).

Example:

"fee_payer"

status
string
required

Transaction status (e.g., submitted).

Example:

"submitted"

explorerUrl
string
required

URL to view the transaction on a Solana explorer.