Skip to main content
POST
Prepare an unsigned Solana transaction.
Status: Partial. sol_send_transaction and tron_send_transaction are supported (no Tron fee sponsorship yet). eth_send_transaction and gas sponsorship (Gas Station) are partial: available for supported EVM chains only. get_gas_usage and get_nonces may return empty or zero-valued responses. See the Roadmap.

Authorizations

X-Stamp
string
header
required

Body

application/json
organizationId
string
required

Unique identifier for a given Organization.

from
string
required

The sender address (base58 Solana public key) the transaction will be signed with.

caip2
string
required

The network identifier in CAIP-2 format (e.g., 'solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG' for devnet).

to
string
required

Recipient address (base58 Solana public key).

lamports
string
required

Amount to transfer in atomic units, decimal string. Native SOL transfer: lamports (1 SOL = 1e9 lamports). SPL transfer (token_mint set): token base units (10^decimals per whole token).

tokenMint
string

Optional SPL token mint (base58). When set, the unsigned transaction is an SPL Token TransferChecked between the sender's and recipient's associated token accounts instead of a native System transfer. The recipient's associated token account must already exist.

sponsor
boolean

When true, build a sponsored (gasless) transaction with the platform Solana fee-payer as account_keys[0] and the user (from) as the second required signer. Requires GAS_STATION_SOL_PAYMASTER to be configured for the target network.

Response

A successful response.

unsignedTransaction
string

Hex-encoded unsigned Solana (Legacy) message to be signed via SIGN_TRANSACTION_V2.

txType
string

Transaction type tag for the signer (always 'TRANSACTION_TYPE_SOLANA').

blockhash
string

Recent blockhash embedded in the unsigned message (base58).

lastValidBlockHeight
string<uint64>

Last block height at which the blockhash (and therefore the transaction) remains valid.

feePayer
string

Fee payer address embedded as account_keys[0]. For sponsor=true this is the platform Solana paymaster; otherwise it equals from.