public class AccountLedgerServiceImpl extends Object implements AccountLedgerService
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
broadcastTransaction(String txHex)
广播交易
Broadcast Transaction
|
Result |
createTransaction(List<Input> inputs,
List<Output> outputs,
String remark)
创建交易
Create Transaction
|
Result |
getBalance(String address)
Get account balance
|
static AccountLedgerService |
getInstance() |
Result |
getTxByHash(String hash)
Get transaction details based on transaction hash
|
Result |
signTransaction(String txHex,
String priKey,
String address,
String password)
签名交易
Sign Transaction
|
Result |
transfer(String address,
String toAddress,
long amount,
String remark)
Transfer
|
Result |
transfer(String address,
String toAddress,
String password,
long amount,
String remark)
Transfer
|
public static AccountLedgerService getInstance()
public Result getTxByHash(String hash)
AccountLedgerServicegetTxByHash 在接口中 AccountLedgerServicehash - Transaction hashpublic Result transfer(String address, String toAddress, String password, long amount, String remark)
AccountLedgerServicetransfer 在接口中 AccountLedgerServiceaddress - Remittance account addresstoAddress - Beneficiary account Addresspassword - Remittance account passwordamount - Transfer amountremark - remarkpublic Result transfer(String address, String toAddress, long amount, String remark)
AccountLedgerServicetransfer 在接口中 AccountLedgerServiceaddress - Remittance account addresstoAddress - Beneficiary account Addressamount - Transfer amountremark - remarkpublic Result getBalance(String address)
AccountLedgerServicegetBalance 在接口中 AccountLedgerServiceaddress - addresspublic Result broadcastTransaction(String txHex)
AccountLedgerServicebroadcastTransaction 在接口中 AccountLedgerServicetxHex - txHexpublic Result createTransaction(List<Input> inputs, List<Output> outputs, String remark)
AccountLedgerServicecreateTransaction 在接口中 AccountLedgerServiceinputs - inputsoutputs - outputsremark - remarkpublic Result signTransaction(String txHex, String priKey, String address, String password)
AccountLedgerServicesignTransaction 在接口中 AccountLedgerServicetxHex - txHexpriKey - priKeyaddress - addresspassword - passwordCopyright © 2018. All rights reserved.