Solana address derivation, Ed25519 signing, in-enclave transaction parsing, custodial
solSendTransaction (self-paid and sponsored), and status monitoring are available today. Solana rent sponsorship remains a separate, opt-in product surface — see the caveats under Gas sponsorship below.Address derivation
0xkey supports Solana address derivation withADDRESS_TYPE_SOLANA. Solana addresses are a simple encoding of the ed25519 public key.
Transaction construction and signing
To construct and sign a Solana transaction we offer a@0xkey-io/solana NPM package. It offers a ZeroXKeySigner which integrates our remote signer with the official Solana web3js library.
For custodial send (server-side prepare → sign → broadcast), use prepareSolTransaction / solSendTransaction as described below.
Transaction Management and Gas Sponsorship
0xkey’s Transaction Management handles the full lifecycle of Solana transactions — construction, broadcast, and status monitoring — down to a few API calls.What 0xkey auto-fills
When you submit a transaction viasolSendTransaction, 0xkey automatically manages:
- Recent blockhash: fetched and set when you use prepare / when omitted at broadcast time
- Compute unit limit: estimated and set to avoid failed transactions (when not already present)
- Priority fee: set to ensure timely inclusion under current network conditions (when not already present)
Gas sponsorship (fee abstraction)
Setsponsor: true to enable fee sponsorship — your users never need to hold SOL to pay transaction fees. 0xkey places a platform fee-payer at account_keys[0], the user signs as the second required signer, and 0xkey covers fees (tracked in lamports against Gas Station limits).
This is Solana’s native dual-sign fee-payer model — not the EVM EIP-7702 Gas Station path. The product switch is the same (sponsor: true).
Supported networks:
- Solana mainnet
- Solana devnet (for testing)
Enable Gas Station in the 0xkey dashboard and configure Solana (lamports) spend limits before setting
sponsor: true.Solana rent sponsorship
Solana rent sponsorship is separate from fee sponsorship and is not part of the current custodialsponsor: true fee-payer path. Prefer program-driven account creation that does not rely on top-level CreateAccount paid by the platform fee-payer. See transaction construction.
Non-sponsored transactions
Setsponsor: false (default) to have the transaction fee paid by the sender’s wallet. 0xkey still manages blockhash, compute units, priority fees, broadcast, and status monitoring — you just don’t get fee abstraction.
Transaction status
After broadcast, 0xkey monitors your transaction until it is confirmed or fails. Query status via the Get Send Transaction Status endpoint. For a full walkthrough, see Sending Sponsored Solana Transactions.Transaction parsing, policies, and signing
0xkey has built a Solana parser which runs in a secure enclave, to parse unsigned transactions and extract metadata. Solana transactions are a list of instructions. We offer details about program keys, accounts, signers, and more. See theSolanaTransaction struct in our policy language page for a full list.
As a bonus, 0xkey also takes care of combining the signature with the original payload if you use the SIGN_TRANSACTION activity types: the input is the unsigned payload, and the output is the signed Solana transaction, ready to be broadcast onchain.
Solana IDLs
You can use Solana IDLs in conjunction with our policy engine to secure users’ transactions. See the guide for more details.Import and export formats
0xkey offers wallet or private key imports and export functionality. To be compatible with the Solana ecosystem, we support imports in mnemonics form (for wallet seeds, this is most common) or in base58 format (for single private key import or export). See the import and export guides for more details.Wallet signer
Did you know? 0xkey activities can be signed with an API key, a passkey…or a Solana wallet if you use our@0xkey-io/wallet-stamper package!
Examples and demos
You can find an example of Solana transaction construction and broadcasting using@0xkey-io/solana in examples/with-solana.
If you want to see @0xkey-io/wallet-stamper in action, head to examples/with-wallet-stamper.
Sponsored custodial sends: Sending Sponsored Solana Transactions.