Parameters
string
required
Transaction signature (base-58 encoded)
object
Response
object
Object containing:
number
The slot the transaction was processed in
object
object
object
array
Array of account public keys (base-58 encoded)
string
Recent blockhash used for transaction
array
Array of transaction signatures (base-58 encoded)
object
object
Error object if transaction failed
number
Fee paid for the transaction
array
Array of account balances before the transaction
array
Array of account balances after the transaction
array
Array of inner instruction objects
array
Array of log messages
array
Array of token balances before the transaction
array
Array of token balances after the transaction
array
Array of reward objects
Code Examples
Basic Request
Using web3.js
Notes
- Returns transaction details for a given signature
- The transaction must be confirmed to be returned
- The response includes detailed information about the transaction
- The transaction can be parsed in different encodings
- The transaction must be a valid signature
Best Practices
- Use appropriate commitment level based on your needs
- Cache results when appropriate to reduce RPC load
- Monitor for transaction status changes
- Consider using websocket subscription for real-time updates
- Handle network errors and retry when appropriate
Common Errors
Use Cases
-
Transaction Analysis
-
Transaction Monitoring
-
Transaction Planning