| 程序包 | 说明 |
|---|---|
| com.baidu.xuper.api |
| 限定符和类型 | 方法和说明 |
|---|---|
static Account |
Account.create()
Create a account using random private key
|
static Account |
Account.create(ECKeyPair keyPair) |
static Account |
Account.create(InputStream inputStream) |
static Account |
Account.create(int strength,
int language)
create an account.
|
static Account |
Account.create(String keyPath) |
static Account |
Account.createAndSaveToFile(String path,
String passwd,
Integer strength,
Integer language) |
static Account |
Account.getAccountFromFile(String path,
String password)
get an account from file and password.
|
static Account |
Account.getAccountFromPlainFile(String path)
import account from plain files which are JSON encoded
|
static Account |
Account.retrieve(String mnemonic,
int language)
retrieve account from mnemonic.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Transaction |
XuperClient.createContractAccount(Account from,
String accountName) |
Transaction |
XuperClient.deployEVMContract(Account from,
byte[] bin,
byte[] abi,
String contract,
Map<String,String> initArgs) |
Transaction |
XuperClient.deployNativeContract(Account from,
byte[] code,
String contract,
String runtime,
Map<String,byte[]> initArgs)
deploy native contract
|
Transaction |
XuperClient.deployWasmContract(Account from,
byte[] code,
String contract,
String runtime,
Map<String,byte[]> initArgs)
deploy wasm contract
|
Transaction |
XuperClient.invokeContract(Account from,
String module,
String contract,
String method,
Map<String,byte[]> args) |
Transaction |
XuperClient.invokeEVMContract(Account from,
String contract,
String method,
Map<String,String> args,
BigInteger amount) |
Transaction |
XuperClient.queryContract(Account from,
String module,
String contract,
String method,
Map<String,byte[]> args) |
Transaction |
XuperClient.queryEVMContract(Account from,
String contract,
String method,
Map<String,String> args) |
Proposal |
Proposal.setInitiator(Account initiator) |
Transaction |
Transaction.sign(Account singer) |
Transaction |
XuperClient.transfer(Account from,
String to,
BigInteger amount,
String fee) |
Transaction |
XuperClient.transfer(Account from,
String to,
BigInteger amount,
String fee,
String desc) |
Transaction |
XuperClient.upgradeNativeContract(Account from,
byte[] code,
String name) |
Transaction |
XuperClient.upgradeWasmContract(Account from,
byte[] code,
String name) |
Copyright © 2022. All rights reserved.