Skip to main content

Overview

This guide covers sending SOL, building transactions, and signing transactions on Solana using the Flutter Solana package.

Prerequisites

Send SOL

Complete Send SOL Widget

Sign Transaction (Without Sending)

To sign a transaction without broadcasting it:

Lamports Conversion

Solana uses lamports as its smallest unit (1 SOL = 10^9 lamports):

Signer Methods

Error Handling

Best Practices

1. Validate Address

2. Check Balance Before Sending

3. Show Confirmation Dialog

Devnet Faucet

For testing, get free devnet SOL from the Solana Faucet.

Complete Example with Error Handling

Next Steps

Last modified on February 3, 2026