Returns the fee the network will charge for a particular message (base64-encoded). Returns RPCResponse (Maybe Int) where the value is the fee in lamports, or Nothing if the fee couldn't be calculated.
Modulesolana-haskell-sdk-1.3.0.0GHC2021
Network.Solana.RPC.HTTP.Transaction
This module provides Solana JSON-RPC bindings related to transaction lifecycle operations: fee estimation, transaction broadcasting, simulation, airdrops (on devnet), and retrieving metadata for finalized transactions.
These endpoints are essential for any client application that signs and sends transactions.
- 1 type
- 10 values
- Packagesolana-haskell-sdk-1.3.0.0
- Exports11
- LanguageGHC2021
- LicenceApache-2.0
- SourceTransaction.hs
getFeeForMessage
2 declarationsReturns the fee the network will charge for a particular message (base64-encoded). Returns 'Maybe Int' fee in lamports.
getTransaction
3 declarationsReturns metadata and content for a confirmed transaction identified by its signature, using the given configuration. Returns Nothing if the signature is unknown or has expired.
Returns metadata and content for a confirmed transaction identified by
its signature. Sets maxSupportedTransactionVersion so that versioned
(v0) transactions can be decoded (without it, the node responds with
error -32015); as a result, v0 transactions are returned without their
address-lookup-table data, so instruction account indices may reference
addresses not present in the parsed account keys.
Returns Nothing if the signature is unknown or has expired.
Contains metadata and transaction information returned by getTransaction.
Constructors
TransactionResultslotTx :: SlotThe slot this transaction was processed in.
blockTimeTx :: Maybe Int64Estimated production time, as Unix timestamp (seconds since the Unix epoch) when the transaction was processed.
metaTx :: Maybe ObjectOptional transaction metadata.
transactionTx :: TransactionThe transaction content.
Instances4Show, Generic, FromJSON, Rep
Show TransactionResultDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.RPC.HTTP.TransactionGeneric TransactionResultDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.RPC.HTTP.TransactionFromJSON TransactionResultDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.RPC.HTTP.Transactiontype Rep TransactionResult = D1 ('MetaDataDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.RPC.HTTP.Transaction"TransactionResult"
"Network.Solana.RPC.HTTP.Transaction"
"solana-haskell-sdk-1.3.0.0-JMJNnl7jmEh90dthY33ZzW"
'False) (C1 ('MetaCons"TransactionResult"
'PrefixI 'True) ((S1 ('MetaSel ('Just"slotTx"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Slot) :*: S1 ('MetaSel ('Just"blockTimeTx"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int64))) :*: (S1 ('MetaSel ('Just"metaTx"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Object)) :*: S1 ('MetaSel ('Just"transactionTx"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Transaction))))
requestAirdrop
1 declarationRequests an airdrop of the specified number of lamports to the given address.
sendTransaction
3 declarationsDefault configuration used for sending transactions. Leaves preflight checks and retry behavior at the node's own defaults; callers who want fire-and-forget behavior (no preflight simulation, no rebroadcast) can use sendTransaction' with an explicit configuration instead.
Sends a base64-encoded transaction to the cluster using the default configuration.
Sends a base64-encoded transaction to the cluster with the specified configuration.
simulateTransaction
2 declarationsSimulates a base64-encoded transaction with the given configuration.
Simulates a base64-encoded transaction using a basic configuration with base64 encoding.