public class OngX extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getContractAddress() |
String |
getSyncAddress() |
Transaction |
makeApprove(String sendAddr,
String recvAddr,
long amount,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeTransfer(State[] states,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeTransfer(String sendAddr,
String recvAddr,
long amount,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeTransferFrom(String sendAddr,
String fromAddr,
String toAddr,
long amount,
String payer,
long gaslimit,
long gasprice) |
String |
ongSwap(Account account,
Swap[] swaps,
Account payer,
long gaslimit,
long gasprice) |
String |
ongxSetSyncAddr(Account[] accounts,
byte[][] allPubkeys,
int M,
String address,
Account payer,
long gaslimit,
long gasprice) |
String |
ongxSetSyncAddr(Account account,
String address,
Account payer,
long gaslimit,
long gasprice) |
String |
ongxSwap(Account account,
Swap swap,
Account payer,
long gaslimit,
long gasprice) |
long |
queryAllowance(String fromAddr,
String toAddr) |
long |
queryBalanceOf(String address) |
long |
queryDecimals() |
String |
queryName() |
String |
querySymbol() |
long |
queryTotalSupply() |
String |
sendApprove(Account sendAcct,
String recvAddr,
long amount,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendTransfer(Account sendAcct,
String recvAddr,
long amount,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendTransferFrom(Account sendAcct,
String fromAddr,
String toAddr,
long amount,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
unboundOng(String address) |
public OngX(OntSdk sdk)
public String getContractAddress()
public String sendTransfer(Account sendAcct, String recvAddr, long amount, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeTransfer(String sendAddr, String recvAddr, long amount, String payer, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeTransfer(State[] states, String payer, long gaslimit, long gasprice) throws Exception
Exceptionpublic String sendApprove(Account sendAcct, String recvAddr, long amount, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeApprove(String sendAddr, String recvAddr, long amount, String payer, long gaslimit, long gasprice) throws Exception
Exceptionpublic String sendTransferFrom(Account sendAcct, String fromAddr, String toAddr, long amount, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeTransferFrom(String sendAddr, String fromAddr, String toAddr, long amount, String payer, long gaslimit, long gasprice) throws Exception
Exceptionpublic long queryAllowance(String fromAddr, String toAddr) throws Exception
Exceptionpublic String ongxSetSyncAddr(Account[] accounts, byte[][] allPubkeys, int M, String address, Account payer, long gaslimit, long gasprice) throws Exception
Exceptionpublic String ongxSetSyncAddr(Account account, String address, Account payer, long gaslimit, long gasprice) throws Exception
Exceptionpublic String ongSwap(Account account, Swap[] swaps, Account payer, long gaslimit, long gasprice) throws Exception
Exceptionpublic String getSyncAddress() throws ConnectorException, IOException, IllegalAccessException, InstantiationException
Copyright © 2022. All rights reserved.