public class Ripple extends Submit
Submit.CrossChainArgs, Submit.SchemaOpType, Submit.SubmitState, Submit.SyncCond, Submit.SyncStatecache, cb, condition, connection, crossChainArgs, eventManager, extraDrop, mapToken, needVerify, schemaCreateTx, schemaModifyTx, signed, strictMode, transaction| 限定符和类型 | 方法和说明 |
|---|---|
Ripple |
accountSet(int nFlag,
boolean bSet)
An AccountSet transaction modifies the properties of an account in the Ledger, can be used to setFlag or clearFlag
|
Ripple |
accountSet(String transferRate,
String transferFeeMin,
String transferFeeMax)
An AccountSet transaction modifies the properties of an account in the Ledger, can be used to setTransferFee.
|
Ripple |
escrowCancel(String sOwner,
int nCreateEscrowSeq)
Return escrowed currency to the sender
|
Ripple |
escrowCreate(String sDestAddr,
String value,
String dateFormatTMFinish,
String dateFormatTMCancel)
Sequester currency until the escrow process either finishes or is canceled
|
Ripple |
escrowCreate(String sDestAddr,
String value,
String sCurrency,
String sIssuer,
String dateFormatTMFinish,
String dateFormatTMCancel)
Sequester currency until the escrow process either finishes or is canceled
|
Ripple |
escrowExecute(String sOwner,
int nCreateEscrowSeq)
Deliver currency from a held payment to the recipient
|
Ripple |
pay(String accountId,
String value)
Start a payment transaction, can be used to activate account
|
Ripple |
pay(String accountId,
String value,
String sCurrency,
String sIssuer)
Start a payment transaction, can be used to transfer currency
|
Ripple |
payToContract(String contract_address,
String value,
int gasLimit) |
protected org.json.JSONObject |
prepareSigned() |
void |
setTxJson(org.json.JSONObject obj) |
Ripple |
trustSet(String value,
String sCurrency,
String sIssuer)
Create or modify a trust line linking two accounts
|
Ripple |
whitelistSet(org.json.JSONArray whitelists,
int setFlag) |
doSubmit, doSubmitNoPrepare, eventManager, getTableArray, isCrossChainArgsSet, mapError, setCrossChainArgs, setCrossChainArgs, setNeedVerify, setRestrict, submit, submit, submit, toTransactionpublic Ripple(Chainsql chainsql)
public void setTxJson(org.json.JSONObject obj)
protected org.json.JSONObject prepareSigned()
prepareSigned 在类中 Submitpublic Ripple pay(String accountId, String value)
accountId - The Address of an account.value - Count of ZXC to transfer,max value:1e11.public Ripple pay(String accountId, String value, String sCurrency, String sIssuer)
accountId - The Address of an account.value - Count of coins to transfer,max value:1e11.sCurrency - Arbitrary code for currency.sIssuer - currency Issuer addresspublic Ripple payToContract(String contract_address, String value, int gasLimit)
contract_address - The Address of a contract account.value - Count of ZXC to transfer.gasLimit - The maximum amount of gas availablepublic Ripple escrowCreate(String sDestAddr, String value, String dateFormatTMFinish, String dateFormatTMCancel) throws Exception
sDestAddr - Address to receive escrowed currencyvalue - Amounts of ZXC to escrowdateFormatTMFinish - The local time(format:yyyy-MM-dd HH:mm:ss)dateFormatTMCancel - The local time(format:yyyy-MM-dd HH:mm:ss)Exception - Exceptions.public Ripple escrowCreate(String sDestAddr, String value, String sCurrency, String sIssuer, String dateFormatTMFinish, String dateFormatTMCancel) throws Exception
sDestAddr - Address to receive escrowed currencyvalue - Amounts to escrowsCurrency - Arbitrary code for currency.sIssuer - currency IssuerdateFormatTMFinish - The local time(format:yyyy-MM-dd HH:mm:ss)dateFormatTMCancel - The local time(format:yyyy-MM-dd HH:mm:ss)Exception - Exceptions.public Ripple escrowExecute(String sOwner, int nCreateEscrowSeq)
sOwner - Address of the source account that funded the held payment.nCreateEscrowSeq - Transaction sequence of EscrowCreate transaction that created the held payment to finish.public Ripple escrowCancel(String sOwner, int nCreateEscrowSeq)
sOwner - Address of the source account that funded the held payment.nCreateEscrowSeq - Transaction sequence of EscrowCreate transaction that created the held payment to finish.public Ripple accountSet(int nFlag, boolean bSet)
nFlag - accountSet flag which can be enabled or disabled for an accountbSet - true:SetFlag; false:ClearFlagpublic Ripple accountSet(String transferRate, String transferFeeMin, String transferFeeMax) throws Exception
transferRate - decimal number string
[1.0 - 2.0] : set transferRate
1.0 : decimal number string, cancel tranferRate, no fee or charge fixed feetransferFeeMin - decimal number stringtransferFeeMax - decimal number stringExceptionpublic Ripple whitelistSet(org.json.JSONArray whitelists, int setFlag)
Copyright © 2021. All rights reserved.