| 程序包 | 说明 |
|---|---|
| io.bytom.api | |
| io.bytom.exception | |
| io.bytom.http |
| 限定符和类型 | 方法和说明 |
|---|---|
static Wallet |
Wallet.backupWallet(Client client) |
Transaction.Template |
Transaction.Builder.build(Client client)
Builds a single transaction template.
|
static boolean |
Token.check(Client client,
String id,
String secret)
check token true or false
|
boolean |
TransactionFeed.Builder.create(Client client)
创建
|
Token |
Token.Builder.create(Client client)
create token by id 该接口远程连接不可用
|
Asset |
Asset.Builder.create(Client client)
Creates an asset object.
|
Account |
Account.Builder.create(Client client)
create-account
|
Receiver |
Account.ReceiverBuilder.create(Client client) |
static Key |
Key.create(Client client,
String alias,
String password)
create
|
static RawTransaction |
RawTransaction.decode(Client client,
String txId)
decode-raw-transaction raw-transaction
|
static boolean |
TransactionFeed.delete(Client client,
String alias)
delete
|
static boolean |
Token.delete(Client client,
String id)
删除token
|
void |
Account.delete(Client client,
String account_info) |
static boolean |
Key.delete(Client client,
String xpub,
String password)
return none if the key is deleted successfully
|
static Transaction.TransactionGas |
Transaction.estimateGas(Client client,
Transaction.Template template) |
static Gas |
Gas.gaRate(Client client) |
Transaction |
Transaction.QueryBuilder.get(Client client) |
Asset |
Asset.QueryBuilder.get(Client client) |
static UnconfirmedTransaction |
UnconfirmedTransaction.get(Client client,
String txId)
get-unconfirmed-transaction by txId
|
static TransactionFeed |
TransactionFeed.get(Client client,
String alias)
获取
|
Block |
Block.QueryBuilder.getBlock(Client client)
get-block
|
static int |
Block.getBlockCount(Client client)
get-block-count
|
Block.BlockDifficulty |
Block.QueryBuilder.getBlockDifficulty(Client client)
get-difficulty
|
static String |
Block.getBlockHash(Client client)
get-block-hash
|
Block.BlockHeader |
Block.QueryBuilder.getBlockHeader(Client client)
get-block-header
|
Block.BlockHashRate |
Block.QueryBuilder.getHashRate(Client client)
get-hash-rate
|
static NetInfo |
NetInfo.getNetInfo(Client client) |
static Miner.MinerWork |
Miner.getWork(Client client)
get-work
|
static boolean |
Miner.istMining(Client client)
是否挖矿
|
UnspentOutput.Items |
UnspentOutput.QueryBuilder.list(Client client) |
static UnconfirmedTransaction.Items |
UnconfirmedTransaction.list(Client client)
list unconfirmed-transactions ids
|
static TransactionFeed.Items |
TransactionFeed.list(Client client)
列表
|
Transaction.Items |
Transaction.QueryBuilder.list(Client client) |
static Token.Items |
Token.list(Client client)
列表 该接口远程连接不可用
|
Key.Items |
Key.QueryBuilder.list(Client client)
list
|
Balance.Items |
Balance.QueryBuilder.list(Client client) |
Asset.Items |
Asset.QueryBuilder.list(Client client) |
Account.Items |
Account.QueryBuilder.list(Client client)
list-accounts
|
Account.AddressBuilder.Items |
Account.AddressBuilder.list(Client client) |
UnspentOutput.Items |
UnspentOutput.Items.query() |
UnconfirmedTransaction.Items |
UnconfirmedTransaction.Items.query() |
TransactionFeed.Items |
TransactionFeed.Items.query() |
Transaction.Items |
Transaction.Items.query() |
Token.Items |
Token.Items.query() |
Key.Items |
Key.Items.query() |
Balance.Items |
Balance.Items.query() |
Asset.Items |
Asset.Items.query() |
Account.Items |
Account.Items.query() |
Account.AddressBuilder.Items |
Account.AddressBuilder.Items.query() |
static boolean |
Key.resetPassword(Client client,
String xpub,
String old_password,
String new_password) |
static boolean |
Wallet.restoreWallet(Client client,
Object accountImage,
Object assetImage,
Object keyImages) |
static boolean |
Miner.setMining(Client client,
boolean isMining)
设置是否挖矿
|
Message |
Message.SignBuilder.sign(Client client) |
Transaction.Template |
Transaction.SignerBuilder.sign(Client client,
Transaction.Template template,
String password)
Sends a transaction template to a remote password for signing.
|
static Transaction.SubmitResponse |
Transaction.submit(Client client,
Transaction.Template template) |
static boolean |
Miner.submiWork(Client client,
String blockHeader)
submit-work
|
boolean |
Asset.UpdateBuilder.update(Client client) |
static boolean |
TransactionFeed.update(Client client,
String alias,
String filter)
修改
|
Address |
Account.AddressBuilder.validate(Client client,
String address)
check whether the address is vaild or not.
|
boolean |
Message.VerifyBuilder.verifyMessage(Client client)
verify-message
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
JSONException
JSONException wraps errors due to marshaling/unmarshaling json payloads.
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
Response.asString()
Returns the response body as string.
|
T |
Client.ResponseCreator.create(Response response,
com.google.gson.Gson deserializer)
Deserializes an HTTP response into a Java object of type T.
|
boolean |
Client.request(String action,
Object body)
Perform a single HTTP POST request against the API for a specific action, return
true or false
|
<T> T |
Client.request(String action,
Object body,
Type tClass)
Perform a single HTTP POST request against the API for a specific action.
|
<T> T |
Client.requestGet(String action,
Object body,
String key,
Type tClass)
requestGet
|
<T> T |
Client.requestList(String action,
Object body,
Type tClass) |
| 构造器和说明 |
|---|
Client() |
Copyright © 2018. All rights reserved.