Wallets
Solana Server Wallets
Create and manage Solana wallets for backend applications using thirdweb's secure server wallet infrastructure.
Funding Required
Solana server wallets are not sponsored. You must fund your wallet with SOL to transact.
- Wallet Management: Create and list Solana wallets
- Balance & Transactions: Check balances, send SOL/SPL tokens, query transaction status
- Signing: Sign messages and transactions without broadcasting
- Token Swaps: Get quotes and execute swaps (mainnet only)
- Raw Transactions: Build and broadcast custom transactions with full instruction control
Create a Solana server wallet from the dashboard or via API.
Transfer SOL to your wallet address to cover transaction fees.
Send tokens, sign messages, execute swaps, or submit custom transactions.
fetch("https://api.thirdweb.com/v1/solana/wallets?page=1&limit=100", { method: "GET", headers: { "x-secret-key": "<your-project-secret-key>", },});x-secret-keybackendx-client-idfrontendx-ecosystem-idoptionalx-ecosystem-partner-idoptionalpageinteger1limitinteger100fetch("https://api.thirdweb.com/v1/solana/wallets", { method: "POST", headers: { "x-secret-key": "<your-project-secret-key>", }, body: { label: "treasury-solana-wallet", },});x-secret-keybackendx-client-idfrontendx-ecosystem-idoptionalx-ecosystem-partner-idoptionalAuthorizationfrontendlabelRequiredtreasury-solana-walletfetch( "https://api.thirdweb.com/v1/solana/wallets/{address}/balance?tokenAddress=8JBLmveV4YF5AQ7EVnKJgyj6etGgVkPp3tYqQMTu3p5B", { method: "GET", headers: { "x-secret-key": "<your-project-secret-key>", }, },);x-secret-keybackendx-client-idfrontendx-ecosystem-idoptionalx-ecosystem-partner-idoptionaladdressstringRequired8JBLmveV4YF5AQ7EVnKJgyj6etGgVkPp3tYqQMTu3p5BchainIdstringRequiredtokenAddressstring8JBLmveV4YF5AQ7EVnKJgyj6etGgVkPp3tYqQMTu3p5BTransfer native SOL or SPL tokens. Automatically handles token account creation for SPL tokens.
fetch("https://api.thirdweb.com/v1/solana/send", { method: "POST", headers: { "x-secret-key": "<your-project-secret-key>", }, body: { from: "8JBLmveV4YF5AQ7EVnKJgyj6etGgVkPp3tYqQMTu3p5B", to: "FhtwVYF1wKAm7fWmE2N5P2eCv13wt2aT8W4Q9NQ9YcJH", amount: "1000000", chainId: "solana:devnet", },});x-secret-keybackendx-client-idfrontendx-ecosystem-idoptionalx-ecosystem-partner-idoptionalAuthorizationfrontendfromRequired8JBLmveV4YF5AQ7EVnKJgyj6etGgVkPp3tYqQMTu3p5BtoRequiredFhtwVYF1wKAm7fWmE2N5P2eCv13wt2aT8W4Q9NQ9YcJHamountRequired1000000chainIdRequiredsolana:devnetfetch("https://api.thirdweb.com/v1/solana/sign-message", { method: "POST", headers: { "x-secret-key": "<your-project-secret-key>", }, body: { from: "8JBLmveV4YF5AQ7EVnKJgyj6etGgVkPp3tYqQMTu3p5B", message: "Welcome to thirdweb", },});x-secret-keybackendx-client-idfrontendx-ecosystem-idoptionalx-ecosystem-partner-idoptionalAuthorizationfrontendfromRequired8JBLmveV4YF5AQ7EVnKJgyj6etGgVkPp3tYqQMTu3p5BmessageRequiredWelcome to thirdwebSign a transaction without broadcasting. Provide a serialized transaction or instructions to assemble one.
fetch("https://api.thirdweb.com/v1/solana/sign-transaction", { method: "POST", headers: { "x-secret-key": "<your-project-secret-key>", }, body: { from: "8JBLmveV4YF5AQ7EVnKJgyj6etGgVkPp3tYqQMTu3p5B", chainId: "solana:devnet", transaction: "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAECAwQFBg==", },});x-secret-keybackendx-client-idfrontendx-ecosystem-idoptionalx-ecosystem-partner-idoptionalAuthorizationfrontendfromRequired8JBLmveV4YF5AQ7EVnKJgyj6etGgVkPp3tYqQMTu3p5BchainIdRequiredsolana:devnettransactionAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAECAwQFBg==fetch("https://api.thirdweb.com/v1/solana/broadcast-transaction", { method: "POST", headers: { "x-secret-key": "<your-project-secret-key>", }, body: { chainId: "solana:devnet", signedTransaction: "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgIAAQIDBAUGBwgJ", },});x-secret-keybackendx-client-idfrontendx-ecosystem-idoptionalx-ecosystem-partner-idoptionalAuthorizationfrontendchainIdRequiredsolana:devnetsignedTransactionRequiredAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgIAAQIDBAUGBwgJSubmit a transaction composed of one or more instructions. Transactions are queued and processed asynchronously.
fetch("https://api.thirdweb.com/v1/solana/transactions", { method: "POST", headers: { "x-secret-key": "<your-project-secret-key>", }, body: { from: "8JBLmveV4YF5AQ7EVnKJgyj6etGgVkPp3tYqQMTu3p5B", chainId: "solana:devnet", instructions: [ { programId: "11111111111111111111111111111111", accounts: [ { address: "8JBLmveV4YF5AQ7EVnKJgyj6etGgVkPp3tYqQMTu3p5B", isSigner: true, isWritable: true, }, { address: "FhtwVYF1wKAm7fWmE2N5P2eCv13wt2aT8W4Q9NQ9YcJH", isSigner: false, isWritable: true, }, ], data: "02000000e888b30000000000", encoding: "hex", }, ], },});x-secret-keybackendx-client-idfrontendx-ecosystem-idoptionalx-ecosystem-partner-idoptionalAuthorizationfrontendfromRequired8JBLmveV4YF5AQ7EVnKJgyj6etGgVkPp3tYqQMTu3p5BchainIdRequiredsolana:devnetinstructionsRequired[ { "programId": "11111111111111111111111111111111", "accounts": [ { "address": "8JBLmveV4YF5AQ7EVnKJgyj6etGgVkPp3tYqQMTu3p5B", "isSigner": true, "isWritable": true }, { "address": "FhtwVYF1wKAm7fWmE2N5P2eCv13wt2aT8W4Q9NQ9YcJH", "isSigner": false, "isWritable": true } ], "data": "02000000e888b30000000000", "encoding": "hex" }]Mainnet Only
Token swaps are only available on Solana mainnet.
fetch( "https://api.thirdweb.com/v1/solana/swap?address=8JBLmveV4YF5AQ7EVnKJgyj6etGgVkPp3tYqQMTu3p5B&tokenIn=8JBLmveV4YF5AQ7EVnKJgyj6etGgVkPp3tYqQMTu3p5B&tokenOut=8JBLmveV4YF5AQ7EVnKJgyj6etGgVkPp3tYqQMTu3p5B", { method: "GET", headers: { "x-secret-key": "<your-project-secret-key>", }, },);x-secret-keybackendx-client-idfrontendx-ecosystem-idoptionalx-ecosystem-partner-idoptionaladdressstringRequired8JBLmveV4YF5AQ7EVnKJgyj6etGgVkPp3tYqQMTu3p5BtokenInstringRequired8JBLmveV4YF5AQ7EVnKJgyj6etGgVkPp3tYqQMTu3p5BtokenOutstringRequired8JBLmveV4YF5AQ7EVnKJgyj6etGgVkPp3tYqQMTu3p5BamountstringRequiredchainIdstringRequiredfetch("https://api.thirdweb.com/v1/solana/swap", { method: "POST", headers: { "x-secret-key": "<your-project-secret-key>", }, body: { address: "8JBLmveV4YF5AQ7EVnKJgyj6etGgVkPp3tYqQMTu3p5B", tokenIn: "So11111111111111111111111111111111111111112", tokenOut: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", amount: "100000000", chainId: "solana:mainnet", },});x-secret-keybackendx-client-idfrontendx-ecosystem-idoptionalx-ecosystem-partner-idoptionalAuthorizationfrontendaddressRequired8JBLmveV4YF5AQ7EVnKJgyj6etGgVkPp3tYqQMTu3p5BtokenInRequiredSo11111111111111111111111111111111111111112tokenOutRequiredEPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1vamountRequired100000000chainIdRequiredsolana:mainnet{ "result": { "signature": "5ttCNobho7nk5F1Hh4pU4d9T2o1yAFn3p1w8z8jk2jKd9KWCKN6dzyuT5xP1ny4wz9f5xCLjAF6Y9s9EoTW4aE1X", "inputMint": "So11111111111111111111111111111111111111112", "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "inputAmount": "100000000", "outputAmount": "95423156", "inputUsdValue": 10.5, "outputUsdValue": 10.48, "requestId": "uuid-1234-5678" }}curl -X POST "https://api.thirdweb.com/v1/solana/wallets" \-H "Content-Type: application/json" \-H "x-secret-key: YOUR_SECRET_KEY" \-d '{"label": "treasury-wallet"}'
{"result": {"address": "8JBLmveV4YF5AQ7EVnKJgyj6etGgVkPp3tYqQMTu3p5B","label": "treasury-wallet","createdAt": "2024-01-15T10:30:00Z","updatedAt": "2024-01-15T10:30:00Z"}}
| Network | Identifier |
|---|---|
| Mainnet | solana:mainnet |
| Devnet | solana:devnet |