public class StarcoinClient extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static okhttp3.MediaType |
JSON_MEDIA_TYPE |
| 构造器和说明 |
|---|
StarcoinClient(ChainInfo chainInfo) |
StarcoinClient(String url,
int chainId) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
call(String method,
List<String> params) |
String |
callScriptFunction(AccountAddress sender,
Ed25519PrivateKey privateKey,
ScriptFunctionObj scriptFunctionObj) |
String |
deployContractPackage(AccountAddress sender,
Ed25519PrivateKey privateKey,
String filePath,
ScriptFunctionObj initScriptObj) |
String |
dryRunTransaction(AccountAddress sender,
Ed25519PrivateKey privateKey,
TransactionPayload payload) |
AccountResource |
getAccountSequence(AccountAddress sender) |
String |
getResource(AccountAddress sender,
ResourceObj resourceObj) |
String |
getTransactionInfo(String txn) |
String |
submitHexTransaction(Ed25519PrivateKey privateKey,
RawUserTransaction rawUserTransaction) |
String |
submitTransaction(AccountAddress sender,
Ed25519PrivateKey privateKey,
TransactionPayload payload) |
String |
transfer(AccountAddress sender,
Ed25519PrivateKey privateKey,
AccountAddress to,
TypeObj typeObj,
BigInteger amount) |
public StarcoinClient(String url, int chainId)
public StarcoinClient(ChainInfo chainInfo)
public String transfer(AccountAddress sender, Ed25519PrivateKey privateKey, AccountAddress to, TypeObj typeObj, BigInteger amount)
public String submitHexTransaction(Ed25519PrivateKey privateKey, RawUserTransaction rawUserTransaction)
public String callScriptFunction(AccountAddress sender, Ed25519PrivateKey privateKey, ScriptFunctionObj scriptFunctionObj)
public AccountResource getAccountSequence(AccountAddress sender)
public String dryRunTransaction(AccountAddress sender, Ed25519PrivateKey privateKey, TransactionPayload payload)
public String submitTransaction(AccountAddress sender, Ed25519PrivateKey privateKey, TransactionPayload payload)
public String deployContractPackage(AccountAddress sender, Ed25519PrivateKey privateKey, String filePath, ScriptFunctionObj initScriptObj)
public String getResource(AccountAddress sender, ResourceObj resourceObj)
Copyright © 2021. All rights reserved.