toggle menu
lattice-kt
1.0-SNAPSHOT
jvm
switch theme
search in API
lattice
/
com.example.lattice.provider
/
HttpApiImpl
Http
Api
Impl
class
HttpApiImpl
(
params
:
HttpApiParams
)
:
HttpApi
Members
Constructors
Http
Api
Impl
Link copied to clipboard
constructor
(
params
:
HttpApiParams
)
Functions
get
Balance
With
Pending
Link copied to clipboard
open
override
fun
getBalanceWithPending
(
address
:
Address
)
:
Balance
获取包括pending状态在内的账户余额
get
Genesis
Link copied to clipboard
open
override
fun
getGenesis
(
)
:
TBlock
获取创世区块
get
Latest
Block
Link copied to clipboard
open
override
fun
getLatestBlock
(
address
:
Address
)
:
CurrentTDBlock
获取账户最新的区块信息
get
Latest
TDBlock
With
Catch
Link copied to clipboard
open
override
fun
getLatestTDBlockWithCatch
(
address
:
Address
)
:
CurrentTDBlock
获取账户最新的区块信息,失败则获取创世区块信息
get
Receipt
Link copied to clipboard
open
override
fun
getReceipt
(
hash
:
String
)
:
Receipt
获取交易的回执信息
pre
Call
Contract
Link copied to clipboard
open
override
fun
preCallContract
(
unsignedTx
:
Transaction
)
:
Receipt
预执行合约
refresh
Token
Link copied to clipboard
open
override
fun
refreshToken
(
newToken
:
String
)
刷新token
send
Raw
TBlock
Link copied to clipboard
open
override
fun
sendRawTBlock
(
signedTx
:
Transaction
)
:
String
发送已签名的交易到链上