HttpApi

interface HttpApi

Inheritors

Functions

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

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

Link copied to clipboard
abstract fun getGenesis(chainId: String): TBlock

获取创世区块

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

获取账户最新的区块信息

Link copied to clipboard
abstract fun getLatestTDBlockWithCatch(chainId: String, address: Address): CurrentTDBlock

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

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

获取交易的回执信息

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

预执行合约

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

刷新token

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

发送已签名的交易到链上