类 StarcoinClient
java.lang.Object
org.starcoin.utils.StarcoinClient
-
字段概要
-
构造器概要
-
方法概要
修饰符和类型方法说明batchDeployContractPackage(AccountAddress sender, Ed25519PrivateKey privateKey, List<String> filePathList, ScriptFunctionObj initScriptObj)
buildRawUserTransaction(AccountAddress sender, long seqNumber, TransactionPayload payload)
buildRawUserTransaction(AccountAddress sender, TransactionPayload payload)
buildTransferPayload(AccountAddress toAddress, TypeObj typeObj, BigInteger amount)
callScriptFunction(AccountAddress sender, Ed25519PrivateKey privateKey, ScriptFunctionObj scriptFunctionObj)
JSON RPC call method 'contract.call_v2'.deployContractPackage(AccountAddress sender, Ed25519PrivateKey privateKey, String filePath, ScriptFunctionObj initScriptObj)
dryRunTransaction(AccountAddress sender, Ed25519PrivateKey privateKey, TransactionPayload payload)
getAccountSequence(AccountAddress sender)
long
getAccountSequenceNumber(AccountAddress sender)
getResource(AccountAddress sender, ResourceObj resourceObj)
getTransactionInfo(String txn)
priceOracleGetScalingFactor(String priceOracleType)
Get price oracle scaling factor.priceOracleRead(String priceOracleType, String address)
Read price from oracle.submitHexTransaction(Ed25519PrivateKey privateKey, RawUserTransaction rawUserTransaction)
submitTransaction(AccountAddress sender, long seqNumber, Ed25519PrivateKey privateKey, TransactionPayload payload)
submitTransaction(AccountAddress sender, Ed25519PrivateKey privateKey, TransactionPayload payload)
transfer(AccountAddress sender, Ed25519PrivateKey privateKey, AccountAddress to, TypeObj typeObj, BigInteger amount)
-
字段详细资料
-
JSON_MEDIA_TYPE
public static final okhttp3.MediaType JSON_MEDIA_TYPE
-
-
构造器详细资料
-
StarcoinClient
-
StarcoinClient
-
-
方法详细资料
-
call
-
transfer
public String transfer(AccountAddress sender, Ed25519PrivateKey privateKey, AccountAddress to, TypeObj typeObj, BigInteger amount) -
buildTransferPayload
public TransactionPayload buildTransferPayload(AccountAddress toAddress, TypeObj typeObj, BigInteger amount) -
submitHexTransaction
public String submitHexTransaction(Ed25519PrivateKey privateKey, RawUserTransaction rawUserTransaction) -
callScriptFunction
public String callScriptFunction(AccountAddress sender, Ed25519PrivateKey privateKey, ScriptFunctionObj scriptFunctionObj) -
getAccountSequence
-
getAccountSequenceNumber
-
buildRawUserTransaction
public RawUserTransaction buildRawUserTransaction(AccountAddress sender, TransactionPayload payload) -
buildRawUserTransaction
public RawUserTransaction buildRawUserTransaction(AccountAddress sender, long seqNumber, TransactionPayload payload) -
dryRunTransaction
public String dryRunTransaction(AccountAddress sender, Ed25519PrivateKey privateKey, TransactionPayload payload) -
submitTransaction
public String submitTransaction(AccountAddress sender, Ed25519PrivateKey privateKey, TransactionPayload payload) -
submitTransaction
public String submitTransaction(AccountAddress sender, long seqNumber, Ed25519PrivateKey privateKey, TransactionPayload payload) -
deployContractPackage
public String deployContractPackage(AccountAddress sender, Ed25519PrivateKey privateKey, String filePath, ScriptFunctionObj initScriptObj) -
batchDeployContractPackage
public String batchDeployContractPackage(AccountAddress sender, Ed25519PrivateKey privateKey, List<String> filePathList, ScriptFunctionObj initScriptObj) -
getTransactionInfo
-
getResource
-
priceOracleRead
Read price from oracle.- 参数:
priceOracleType
- Oracle type.address
- Oracle address.- 返回:
- price.
-
priceOracleGetScalingFactor
Get price oracle scaling factor.- 参数:
priceOracleType
- Oracle type.- 返回:
- scaling factor.
-
contractCallV2
JSON RPC call method 'contract.call_v2'.- 参数:
functionId
- function Id.typeArgs
- type arguments.args
- arguments.- 返回:
- JSON RPC response body.
-