public class OG
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.Integer |
DEFAULT_TOKENID |
java.lang.String |
EMPTY_ADDRESS |
java.lang.String |
EMPTY_DATA |
java.lang.String |
EMPTY_ERROR |
java.lang.Integer |
RECEIPT_STATUS_FAILED |
java.lang.Integer |
RECEIPT_STATUS_OVMFAILED |
java.lang.Integer |
RECEIPT_STATUS_SUCCESS |
java.lang.Integer |
RECEIPT_STATUS_UNKNOWNTYPE |
| Constructor and Description |
|---|
OG(java.lang.String url) |
| Modifier and Type | Method and Description |
|---|---|
SendTransactionResp |
CallContract(Account account,
java.lang.String contractAddress,
java.math.BigInteger value,
java.lang.String funcName,
java.util.List<org.web3j.abi.datatypes.Type> inputs,
java.util.List<org.web3j.abi.TypeReference<?>> outputParams) |
SendTransactionResp |
CallContractAndJoin(Account account,
java.lang.String contractAddress,
java.math.BigInteger value,
java.lang.String funcName,
java.util.List<org.web3j.abi.datatypes.Type> inputs,
java.util.List<org.web3j.abi.TypeReference<?>> outputParams,
IContractCallback callback) |
SendTransactionResp |
DeployContract(Account account,
java.math.BigInteger value,
java.lang.String bytecode,
java.util.List<org.web3j.abi.datatypes.Type> constructorParameters) |
SendTransactionResp |
DeployContractAndJoin(Account account,
java.math.BigInteger value,
java.lang.String bytecode,
java.util.List<org.web3j.abi.datatypes.Type> constructorParameters,
IConfirmCallback callback) |
SendTransactionResp |
DestroyToken(Account account,
java.lang.Integer tokenID) |
SendTransactionResp |
DestroyTokenAndJoin(Account account,
java.lang.Integer tokenID,
IConfirmCallback callback) |
SendTransactionResp |
InitialTokenOffering(Account account,
java.math.BigInteger value,
java.lang.Boolean additionalIssue,
java.lang.String tokenName) |
SendTransactionResp |
InitialTokenOfferingAndJoin(Account account,
java.math.BigInteger value,
java.lang.Boolean additionalIssue,
java.lang.String tokenName,
IConfirmCallback callback) |
SendTransactionResp |
OfferMoreToken(Account account,
java.math.BigInteger value,
java.lang.Integer tokenID) |
SendTransactionResp |
OfferMoreTokenAndJoin(Account account,
java.math.BigInteger value,
java.lang.Integer tokenID,
IConfirmCallback callback) |
QueryBalanceResp |
QueryBalance(java.lang.String address,
java.lang.Integer tokenID)
Query balance of an address.
|
QueryContractResp |
QueryContract(java.lang.String contractAddress,
java.lang.String funcName,
java.util.List<org.web3j.abi.datatypes.Type> inputs,
java.util.List<org.web3j.abi.TypeReference<?>> outputParams) |
QueryNonceResp |
QueryNonce(java.lang.String address)
Query nonce of an address.
|
QueryReceiptResp |
QueryReceipt(java.lang.String hash)
Query receipt of a transaction.
|
QueryReceiptResp |
QueryReceiptUntilTimeout(java.lang.String hash,
java.lang.Long timeout,
java.lang.Long interval) |
QueryTokenResp |
QueryToken(java.lang.Integer tokenID) |
QueryTransactionResp |
QueryTransaction(java.lang.String hash)
Query transaction by transaction hash.
|
QueryTransactionListResp |
QueryTransactionsByHeight(java.lang.Long height)
Query all transactions that confirmed a same sequencer.
|
SendTransactionResp |
SendTransaction(Account account,
java.lang.String to,
java.math.BigInteger value) |
SendTransactionResp |
SendTransactionAndJoin(Account account,
java.lang.String to,
java.math.BigInteger value,
IConfirmCallback callback) |
SendTransactionResp |
TransferToken(Account account,
java.lang.String to,
java.lang.Integer tokenID,
java.math.BigInteger value) |
SendTransactionResp |
TransferTokenAndJoin(Account account,
java.lang.String to,
java.lang.Integer tokenID,
java.math.BigInteger value,
IConfirmCallback callback) |
public final java.lang.Integer DEFAULT_TOKENID
public final java.lang.String EMPTY_ADDRESS
public final java.lang.String EMPTY_DATA
public final java.lang.String EMPTY_ERROR
public final java.lang.Integer RECEIPT_STATUS_SUCCESS
public final java.lang.Integer RECEIPT_STATUS_OVMFAILED
public final java.lang.Integer RECEIPT_STATUS_UNKNOWNTYPE
public final java.lang.Integer RECEIPT_STATUS_FAILED
public SendTransactionResp SendTransaction(Account account, java.lang.String to, java.math.BigInteger value) throws java.io.IOException
account - to - value - java.io.IOExceptionpublic SendTransactionResp SendTransactionAndJoin(Account account, java.lang.String to, java.math.BigInteger value, IConfirmCallback callback) throws java.io.IOException, java.lang.InterruptedException
account - to - value - callback - java.io.IOExceptionjava.lang.InterruptedExceptionpublic SendTransactionResp TransferToken(Account account, java.lang.String to, java.lang.Integer tokenID, java.math.BigInteger value) throws java.io.IOException
account - to - tokenID - value - java.io.IOExceptionpublic SendTransactionResp TransferTokenAndJoin(Account account, java.lang.String to, java.lang.Integer tokenID, java.math.BigInteger value, IConfirmCallback callback) throws java.io.IOException, java.lang.InterruptedException
account - to - tokenID - value - callback - java.io.IOExceptionjava.lang.InterruptedExceptionpublic SendTransactionResp InitialTokenOffering(Account account, java.math.BigInteger value, java.lang.Boolean additionalIssue, java.lang.String tokenName) throws java.io.IOException
account - value - additionalIssue - tokenName - java.io.IOExceptionpublic SendTransactionResp InitialTokenOfferingAndJoin(Account account, java.math.BigInteger value, java.lang.Boolean additionalIssue, java.lang.String tokenName, IConfirmCallback callback) throws java.io.IOException, java.lang.InterruptedException
account - value - additionalIssue - tokenName - callback - java.io.IOExceptionjava.lang.InterruptedExceptionpublic SendTransactionResp OfferMoreToken(Account account, java.math.BigInteger value, java.lang.Integer tokenID) throws java.io.IOException
account - value - tokenID - java.io.IOExceptionpublic SendTransactionResp OfferMoreTokenAndJoin(Account account, java.math.BigInteger value, java.lang.Integer tokenID, IConfirmCallback callback) throws java.io.IOException, java.lang.InterruptedException
account - value - tokenID - callback - java.io.IOExceptionjava.lang.InterruptedExceptionpublic SendTransactionResp DestroyToken(Account account, java.lang.Integer tokenID) throws java.io.IOException
account - tokenID - java.io.IOExceptionpublic SendTransactionResp DestroyTokenAndJoin(Account account, java.lang.Integer tokenID, IConfirmCallback callback) throws java.io.IOException, java.lang.InterruptedException
account - tokenID - callback - java.io.IOExceptionjava.lang.InterruptedExceptionpublic SendTransactionResp DeployContract(Account account, java.math.BigInteger value, java.lang.String bytecode, java.util.List<org.web3j.abi.datatypes.Type> constructorParameters) throws java.io.IOException
account - value - bytecode - constructorParameters - java.io.IOExceptionpublic SendTransactionResp DeployContractAndJoin(Account account, java.math.BigInteger value, java.lang.String bytecode, java.util.List<org.web3j.abi.datatypes.Type> constructorParameters, IConfirmCallback callback) throws java.io.IOException, java.lang.InterruptedException
account - value - bytecode - constructorParameters - callback - java.io.IOExceptionjava.lang.InterruptedExceptionpublic SendTransactionResp CallContract(Account account, java.lang.String contractAddress, java.math.BigInteger value, java.lang.String funcName, java.util.List<org.web3j.abi.datatypes.Type> inputs, java.util.List<org.web3j.abi.TypeReference<?>> outputParams) throws java.io.IOException
account - contractAddress - value - funcName - inputs - outputParams - java.io.IOExceptionpublic SendTransactionResp CallContractAndJoin(Account account, java.lang.String contractAddress, java.math.BigInteger value, java.lang.String funcName, java.util.List<org.web3j.abi.datatypes.Type> inputs, java.util.List<org.web3j.abi.TypeReference<?>> outputParams, IContractCallback callback) throws java.io.IOException, java.lang.InterruptedException
account - contractAddress - value - funcName - inputs - outputParams - callback - java.io.IOExceptionjava.lang.InterruptedExceptionpublic QueryContractResp QueryContract(java.lang.String contractAddress, java.lang.String funcName, java.util.List<org.web3j.abi.datatypes.Type> inputs, java.util.List<org.web3j.abi.TypeReference<?>> outputParams) throws java.io.IOException
contractAddress - funcName - inputs - outputParams - java.io.IOExceptionpublic QueryTokenResp QueryToken(java.lang.Integer tokenID) throws java.io.IOException
tokenID - java.io.IOExceptionpublic QueryReceiptResp QueryReceipt(java.lang.String hash) throws java.io.IOException
hash - 32 length byte array formatted in hex.java.io.IOExceptionpublic QueryBalanceResp QueryBalance(java.lang.String address, java.lang.Integer tokenID) throws java.io.IOException
address - 20 length byte array formatted in hex.tokenID - the id of the token.java.io.IOExceptionpublic QueryNonceResp QueryNonce(java.lang.String address) throws java.io.IOException
address - 20 length byte array formatted in hex.java.io.IOExceptionpublic QueryTransactionResp QueryTransaction(java.lang.String hash) throws java.io.IOException
hash - 32 length byte array formatted in hex.java.io.IOExceptionpublic QueryTransactionListResp QueryTransactionsByHeight(java.lang.Long height) throws java.io.IOException
height - sequencer height.java.io.IOExceptionpublic QueryReceiptResp QueryReceiptUntilTimeout(java.lang.String hash, java.lang.Long timeout, java.lang.Long interval) throws java.io.IOException, java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionCopyright © 2020. All Rights Reserved.