Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- endpoint :: [Char]
- endpointRemote :: String
- reqGetSyncStatus :: RPC SyncStatus
- reqGetTransaction :: Text -> RPC Transaction
- reqPegNetIssuance :: RPC NetIssuance
- reqPegNetBalances :: Text -> RPC NetBalances
- reqPegNetRates :: Int -> RPC Rates
- reqGetTransactionStatus :: Text -> RPC TransactionStatus
- reqGetTransactions :: Maybe Text -> Maybe Text -> Maybe Int -> Maybe Int -> Maybe Bool -> Maybe Bool -> Maybe Bool -> Maybe Bool -> Maybe Bool -> RPC [Transaction]
- reqGetRichList :: Maybe Text -> Int -> RPC [RichEntry]
- main :: IO ()
Documentation
Simple endpoint wrappers to use as different local or remotte API endoint, keep default values
reqGetSyncStatus :: RPC SyncStatus Source #
"get-sync-status" Return the current heights synced by pegnetd and the factomd it is communicating with
:: Text | Transaction id |
-> RPC Transaction | Requested Transaction |
"get-transaction" Returns the given pegnet transaction if it exists.
reqPegNetIssuance :: RPC NetIssuance Source #
Get the total supply for each pegnet asset.
:: Text | Address to get balances from |
-> RPC NetBalances | Resulting balances over all assets |
Get the pegnet asset balances for a given address
"get-pegnet-rates" Returns the pegnet conversion rates for a given block height.
reqGetTransactionStatus Source #
:: Text | Transaction chain entry hash |
-> RPC TransactionStatus | Current status of transaction |
"get-transaction-status"
Returns the status of a transaction.
The parameter entryhash
can be either a winning OPR entry hash,
a transaction chain entry hash, or an FCT Burn transaction id.
:: Maybe Text | |
-> Maybe Text | |
-> Maybe Int | |
-> Maybe Int | offset |
-> Maybe Bool | |
-> Maybe Bool | |
-> Maybe Bool | |
-> Maybe Bool | |
-> Maybe Bool | |
-> RPC [Transaction] | List of Transactions by specified parameters |
get-transactions Returns a set of up to 50 transactions for the given parameters. TODO: this many arguments including boolean combination is a case for a bad API design. Better hide it with convinience functions provided to library user