HttpApiClient class
Methods
broadcastMsg (Msg msg , {bool sync = false })
→ Future <APIResponse <List <Transaction > > >
Broadcasts a signed transaction
broadcastRawMsg (String hexMsg , {bool sync = false })
→ Future <APIResponse <List <Transaction > > >
broadcastSuperMsg (Msg msg , {Map <String , dynamic > ? withJsonAndSign , required Wallet signWallet , bool sync = false })
→ Future <APIResponse <List <Transaction > > >
getAccount (String ? address )
→ Future <APIResponse <Account > >
Gets account metadata for an address.
getAccountSequence (String address )
→ Future <APIResponse <AccountSequence > >
Gets an account sequence for an address.
getAtomicSwap ({required String swapID })
→ Future <APIResponse <AtomicSwap > >
Get an AtomicSwap by swap id
getAtomicSwaps ({int ? endTime , String ? from_address , int ? limit , int ? offset , int ? startTime , int ? to_address })
→ Future <APIResponse <AtomicSwapPage > >
Get atomic swaps by address.
At least one of toAddress and fromAddress should be provided as parameter
The maximum start - end query window is 3 months; Default query window is the latest 30 days.
getBlockTime ()
→ Future <APIResponse <Times > >
Gets the latest block time and the current time according to the HTTP service.
getBlockTransactions ({required int blockHeight })
→ Future <APIResponse <BlockTx > >
Get transactions in the block. Multi-send and multi-coin transactions are flattened as transactions. This API is deprecated.
getBlockTransactionsV2 ({required int blockHeight })
→ Future <APIResponse <BlockTxV2 > >
Get transactions in the block. Multi-send and multi-coin transactions are included as sub-transactions.
getCandlestickBars ({required String symbol , CandlestickInterval interval = CandlestickInterval.INTERVAL_1h , int ? limit , int ? startTime , int ? endTime })
→ Future <APIResponse <List <Candlestick > > >
Gets candlestick/kline bars for a symbol. Bars are uniquely identified by their open time.
getCandlestickBarsMini ({required String symbol , CandlestickInterval interval = CandlestickInterval.INTERVAL_1h , int ? limit , int ? startTime , int ? endTime })
→ Future <APIResponse <List <Candlestick > > >
Gets candlestick/kline bars for a mini-token symbol pair. Bars are uniquely identified by their open time.
If the time window is larger than limits, only the first n klines will return. In this case, please either shrink the window or increase the limit to get proper amount of klines.
getClosedOrders ({required String address , int ? endTime , int ? limit , int ? offset , OrderSide ? side , int ? startTime , String ? symbol , int ? total })
→ Future <APIResponse <OrderList > >
Gets closed (filled and cancelled) orders for a given address.
getClosedOrdersMini ({required String address , int ? endTime , int ? limit , int ? offset , OrderSide ? side , int ? startTime , String ? symbol , int ? total })
→ Future <APIResponse <OrderList > >
Gets closed (filled and cancelled) orders for a given address.
Default query window is latest 7 days; The maximum start - end query window is 3 months.
getFees ({int ? limit , int ? offset })
→ Future <APIResponse <List <Fee > > >
Gets the current trading fees settings.
getMarkets ({int ? limit , int ? offset })
→ Future <APIResponse <List <Market > > >
Gets the list of market pairs that have been listed.
getMiniMarkets ({int ? offset , int ? limit })
→ Future <APIResponse <List <Market > > >
Gets a list of mini market pairs.
getMiniTickerStats24hr ({String ? symbol })
→ Future <APIResponse <List <TickerStatistics > > >
Gets 24 hour price change statistics for a market pair symbol. Updated every second. Rate Limit: 5 requests per IP per second.
getMiniTokens ({int ? offset , int ? limit })
→ Future <APIResponse <List <MiniToken > > >
Gets a list of available mini tokens.
getNodeInfo ()
→ Future <APIResponse <NodeInfo > >
Gets runtime information about the node.
getOpenOrders ({required String address , int ? limit , int ? offset , String ? symbol , int ? total })
→ Future <APIResponse <OrderList > >
Gets open orders for a given address.
getOpenOrdersMini ({required String address , int ? limit , int ? offset , String ? symbol , int ? total })
→ Future <APIResponse <OrderList > >
Gets open orders for a given address. Rate Limit: 5 requests per IP per second.
getOrder (String orderID )
→ Future <APIResponse <Order > >
Gets metadata for an individual order by its ID.
getOrderBook (String marketPair )
→ Future <APIResponse <MarketDepth > >
Gets the order book depth data for a given pair symbol.
getOrderMini (String orderID )
→ Future <APIResponse <Order > >
Gets metadata for an individual order by its ID. Rate Limit: 5 requests per IP per second.
getPeers ()
→ Future <APIResponse <List <Peer > > >
Gets the list of network peers.
getSingleTransaction (String txHash , {String format = 'json' })
→ Future <APIResponse <Transaction > >
Gets transaction metadata by transaction ID.
getTickerStats24hr ({String ? symbol })
→ Future <APIResponse <List <TickerStatistics > > >
Gets 24 hour price change statistics for a market pair symbol. Updated every second.
getTokens ({int ? limit , int ? offset })
→ Future <APIResponse <List <Token > > >
Gets a list of tokens that have been issued.
getTrades ({String ? address , String ? buyerOrderId , int ? endTime , int ? blockHeight , int ? limit , int ? offset , String ? quoteAsset , String ? sellerOrderId , OrderSide ? side , int ? startTime , String ? symbol , int ? total })
→ Future <APIResponse <TradePage > >
Gets a list of historical trades.
Default query window is latest 7 days; The maximum start - end query window is 3 months.
getTradesMini ({String ? address , String ? buyerOrderId , int ? endTime , int ? blockHeight , int ? limit , int ? offset , String ? quoteAsset , String ? sellerOrderId , OrderSide ? side , int ? startTime , String ? symbol , int ? total })
→ Future <APIResponse <List <TradePage > > >
Gets a list of historical trades. Query Window: Default query window is latest 7 days; The maximum start - end query window is 3 months. Rate Limit: 5 requests per IP per second.
getTradingFee ({String ? address , int ? endTime , int ? limit , int ? offset , int ? startTime , int ? total })
→ Future <APIResponse <BlockExchangeFeePage > >
Get historical trading fees of the address, including fees of trade/canceled order/expired order. Transfer and other transaction fees are not included. Order by block height DESC. Query Window: Default query window is latest 7 days; The maximum start - end query window is 3 months. Rate Limit: 5 requests per IP per second.
getTransactions ({required String address , int ? blockHeight , int ? endTime , int ? limit , int ? offset , TxSide ? side , int ? startTime , String ? txAsset , TxType ? txType })
→ Future <APIResponse <TxPage > >
Gets a list of transactions. Multisend transaction is not available in this API. Currently 'confirmBlocks' and 'txAge' are not supported.
Default query window is latest 24 hours; The maximum start - end query window is 3 months.
getValidators ()
→ Future <APIResponse <Validators > >
Gets the list of validators used in consensus.
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited