HttpApi

interface HttpApi

Inheritors

Functions

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

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

Link copied to clipboard
abstract fun getGenesis(): TBlock

获取创世区块

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

获取账户最新的区块信息

Link copied to clipboard

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

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

获取交易的回执信息

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

预执行合约

Link copied to clipboard
abstract fun refreshToken(newToken: String)

刷新token

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

发送已签名的交易到链上