Fetches all available data for the given account address, using the given configuration. Returns RPCResponse (Maybe AccountInfo), where Nothing indicates the account does not exist.
Modulesolana-haskell-sdk-1.3.0.0GHC2021
Network.Solana.RPC.HTTP.Account
This module provides bindings to various Solana JSON-RPC methods for fetching account information, balances, transaction signatures, and related metadata.
- 3 types
- 13 values
- Packagesolana-haskell-sdk-1.3.0.0
- Exports16
- LanguageGHC2021
- LicenceApache-2.0
- SourceAccount.hs
getAccountInfo
Fetches all available data for the given account address, requesting base64 encoding (the node's default base58 encoding rejects account data over 128 bytes). Returns Nothing if the account does not exist.
getBalance
Returns the balance, in lamports, of the specified account. Returns RPCResponse Lamport.
Returns the balance, in lamports, of the specified account.
getMultipleAccounts
2 declarationsReturns account information for a list of addresses, using the given configuration. For any missing account, the result contains Nothing in its place.
Returns account information for a list of addresses, requesting base64 encoding (the node's default base58 encoding rejects account data over 128 bytes). For any missing account, the result contains Nothing in its place.
getProgramAccounts
2 declarationsReturns all accounts owned by the specified program address, using the given configuration.
Returns all accounts owned by the specified program address, requesting base64 encoding (the node's default base58 encoding rejects account data over 128 bytes).
getLargestAccounts
3 declarationsContains the address and value of an account.
Constructors
AddressAndLamportsaddress :: SolanaPublicKeyAccount address
lamports :: LamportNumber of lamports in the account
Instances4Show, Generic, FromJSON, Rep
Show AddressAndLamportsDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.RPC.HTTP.AccountGeneric AddressAndLamportsDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.RPC.HTTP.AccountFromJSON AddressAndLamportsDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.RPC.HTTP.Accounttype Rep AddressAndLamports = D1 ('MetaDataDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.RPC.HTTP.Account"AddressAndLamports"
"Network.Solana.RPC.HTTP.Account"
"solana-haskell-sdk-1.3.0.0-JMJNnl7jmEh90dthY33ZzW"
'False) (C1 ('MetaCons"AddressAndLamports"
'PrefixI 'True) (S1 ('MetaSel ('Just"address"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SolanaPublicKey) :*: S1 ('MetaSel ('Just"lamports"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Lamport)))
Returns up to the 20 accounts with the highest balances in lamports. Results may be cached for up to two hours.
Returns up to the 20 accounts with the highest balances in lamports. Results may be cached for up to two hours.
getSignaturesForAddress
2 declarationsReturns confirmed transaction signatures involving the given address, in reverse chronological order.
Metadata for a confirmed transaction signature involving a given address.
Constructors
TransactionSignatureInformationsignature :: SolanaSignatureTransaction signature
slotTxSig :: SlotThe slot that contains the block with the transaction
err :: Maybe Valuememo :: Maybe StringMemo associated with the transaction, Nothing if no memo is present
blockTime :: Maybe Int64Estimated production time, as Unix timestamp (seconds since the Unix epoch) of when transaction was processed. Nothing if not available.
confirmationStatus :: Maybe StringThe transaction's cluster confirmation status;
Instances2Show, FromJSON
Show TransactionSignatureInformationDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.RPC.HTTP.AccountFromJSON TransactionSignatureInformationDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.RPC.HTTP.Account
getSignatureStatuses
3 declarationsReturns the confirmation status and slot info for the specified transaction signatures. Each signature should be the transaction’s first signature (used as a unique identifier).
Returns the confirmation status and slot info for the specified transaction signatures. Each signature should be the transaction’s first signature (used as a unique identifier).
Status metadata for a given transaction signature.
Constructors
TransactionSignatureStatusslotTxStatus :: SlotThe slot the transaction was processed
confirmationsTxStatus :: Maybe IntNumber of blocks since signature confirmation, Nothing if rooted, as well as finalized by a supermajority of the cluster.
errTxStatus :: Maybe ValueconfirmationStatusTxStatus :: Maybe StringThe transaction's cluster confirmation status.
Instances4Show, Generic, FromJSON, Rep
Show TransactionSignatureStatusDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.RPC.HTTP.AccountGeneric TransactionSignatureStatusDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.RPC.HTTP.AccountFromJSON TransactionSignatureStatusDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.RPC.HTTP.Accounttype Rep TransactionSignatureStatus = D1 ('MetaDataDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.RPC.HTTP.Account"TransactionSignatureStatus"
"Network.Solana.RPC.HTTP.Account"
"solana-haskell-sdk-1.3.0.0-JMJNnl7jmEh90dthY33ZzW"
'False) (C1 ('MetaCons"TransactionSignatureStatus"
'PrefixI 'True) ((S1 ('MetaSel ('Just"slotTxStatus"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Slot) :*: S1 ('MetaSel ('Just"confirmationsTxStatus"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just"errTxStatus"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Value)) :*: S1 ('MetaSel ('Just"confirmationStatusTxStatus"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String)))))