public class Nep5 extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
getContractAddress() |
Transaction |
makeTransfer(String sendAddr,
String recvAddr,
long amount,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
queryBalanceOf(String addr) |
String |
queryDecimals() |
String |
queryName() |
String |
querySymbol() |
String |
queryTotalSupply() |
String |
sendInit(Account acct,
Account payerAcct,
long gaslimit,
long gasprice) |
long |
sendInitPreExec(Account acct,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendTransfer(Account acct,
String recvAddr,
long amount,
Account payerAcct,
long gaslimit,
long gasprice) |
long |
sendTransferPreExec(Account acct,
String recvAddr,
long amount) |
void |
setContractAddress(String codeHash) |
public Nep5(DnaSdk sdk)
public void setContractAddress(String codeHash)
public String getContractAddress()
public String sendInit(Account acct, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic long sendInitPreExec(Account acct, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic String sendTransfer(Account acct, String recvAddr, long amount, Account payerAcct, long gaslimit, long gasprice) throws Exception
acct - recvAddr - amount - payerAcct - gaslimit - gasprice - Exceptionpublic long sendTransferPreExec(Account acct, String recvAddr, long amount) throws Exception
Exceptionpublic Transaction makeTransfer(String sendAddr, String recvAddr, long amount, Account payerAcct, long gaslimit, long gasprice) throws Exception
ExceptionCopyright © 2020. All rights reserved.