public class TransferInput
extends java.lang.Object
AdvancedSendAsset
,
AdvancedSendAsset
Constructor and Description |
---|
TransferInput() |
Modifier and Type | Method and Description |
---|---|
TransferInput |
assetId(java.lang.String id)
Sets the asset ID to transfer.
|
TransferInput |
assetIndex(java.lang.String index)
Sets the index for non-fungible assets.
|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
TransferInput |
from(java.lang.String address)
Sets the source of the funds.
|
int |
hashCode() |
TransferInput |
to(java.lang.String address)
Sets the destination of the funds.
|
TransferInput |
value(java.lang.String value)
Sets the number of assets to transfer.
|
public TransferInput from(java.lang.String address)
address
- the sourcepublic TransferInput to(java.lang.String address)
address
- the destinationpublic TransferInput assetId(java.lang.String id)
If null or omitted then ENJ will be traded instead.
id
- the IDpublic TransferInput assetIndex(java.lang.String index)
index
- the indexpublic TransferInput value(java.lang.String value)
If transferring ENJ, the value is the amount to send in Wei (10^18 e.g. 1 ENJ = 1000000000000000000).
value
- the amountpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object