HttpApiImpl

Constructors

Link copied to clipboard
constructor(params: HttpApiParams)

Functions

Link copied to clipboard
open override fun getBalanceWithPending(address: Address): Balance

获取包括pending状态在内的账户余额

Link copied to clipboard
open override fun getGenesis(): TBlock

获取创世区块

Link copied to clipboard
open override fun getLatestBlock(address: Address): CurrentTDBlock

获取账户最新的区块信息

Link copied to clipboard
open override fun getLatestTDBlockWithCatch(address: Address): CurrentTDBlock

获取账户最新的区块信息,失败则获取创世区块信息

Link copied to clipboard
open override fun getReceipt(hash: String): Receipt

获取交易的回执信息

Link copied to clipboard
open override fun preCallContract(unsignedTx: Transaction): Receipt

预执行合约

Link copied to clipboard
open override fun refreshToken(newToken: String)

刷新token

Link copied to clipboard
open override fun sendRawTBlock(signedTx: Transaction): String

发送已签名的交易到链上