Skip to main content

Overview

Transactions are the primary way to interact with the Solana blockchain. Hermis provides comprehensive tools for creating, signing, and sending transactions with proper error handling and confirmation tracking.

Transaction Lifecycle

1

Create

Build a transaction with instructions
2

Sign

Sign with wallet’s private key
3

Send

Broadcast to Solana network
4

Confirm

Wait for block confirmation
5

Finalize

Transaction is finalized on chain

Creating Transactions

Basic Transfer

Signing Transactions

Sign Only

Sign Multiple

Sending Transactions

With Confirmation

With Options

Transaction Confirmation

Commitment Levels

Processed

Fastest - Transaction processed but not confirmed

Confirmed

Recommended - Confirmed by supermajority

Finalized

Safest - Finalized by the network

Tracking Status

This hook works universally with transaction signatures from both web3.js and Kit architectures.

SPL Token Transactions

Transfer Tokens

Error Handling

Hermis uses HermisError for type-safe transaction error handling:

Common Error Patterns

Handle insufficient funds with typed context:
Handle transaction send failures:
Handle transaction signing failures:
Handle any HermisError with automatic formatting:

Retry Logic

Transaction Fees

Estimating Fees

Priority Fees

Best Practices

Always set recent blockhash
Set fee payer explicitly
Wait for confirmation
Handle errors gracefully
Simulate before sending
Check account balances first
Use appropriate commitment levels
Implement retry logic

What’s Next?

Send Transaction

Practical transaction examples

Token Operations

SPL token transactions