Transactions & Fees
getSignaturesForAddress
Returns signatures for confirmed transactions for an address
Parameters
Account address (base-58 encoded)
Response
Array of signature information objects
Transaction signature (base-58 encoded)
Slot in which the transaction was processed
Error if transaction failed, null if transaction succeeded
Memo associated with the transaction
Unix timestamp of when the transaction was processed
Transaction confirmation status
Code Examples
Basic Request
Request with Config
Using web3.js
Notes
- Returns confirmed transaction signatures for an address
- Results are returned in reverse chronological order
- Pagination can be achieved using the
before
parameter - The response is immediate as it reads from the current state
- Different commitment levels can be specified
Best Practices
- Use appropriate limit based on your needs
- Implement pagination for large result sets
- Cache results when appropriate to reduce RPC load
- Consider using websocket subscription for real-time updates
- Handle network errors and retry when appropriate
Common Errors
Code | Message | Solution |
---|---|---|
-32601 | Method not found | Verify you’re connected to a Solana RPC node |
-32602 | Invalid params | Check address and config parameters |
-32007 | Signature information unavailable | Node may be bootstrapping or syncing |
Use Cases
-
Transaction History
-
Transaction Monitoring
-
Transaction Analysis