public class Transfer
extends java.lang.Object
| Constructor and Description |
|---|
Transfer(java.lang.String from,
java.lang.String to)
Transfers default amount (0.0) using two Harmony addresses between same
shards (shard 0)
|
Transfer(java.lang.String from,
java.lang.String to,
java.lang.String amount)
Transfers the specified amount using two Harmony addresses
|
Transfer(java.lang.String from,
java.lang.String to,
java.lang.String amount,
int fromShard,
int toShard)
Transfer the specified amount between Harmony addresses using the specified
shards
|
Transfer(java.lang.String from,
java.lang.String to,
java.lang.String amount,
long gasPrice)
Transfer the provided amount using the specified gasPrice
|
Transfer(java.lang.String from,
java.lang.String to,
java.lang.String amount,
long gasPrice,
int fromShard,
int toShard)
Transfer the specified amount using the specified gas price and shards
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
execute(int chainID,
java.lang.String passphrase,
boolean dryRun,
int waitToConfirmTime)
Method to execute the transfer.
|
public Transfer(java.lang.String from,
java.lang.String to)
from - to - public Transfer(java.lang.String from,
java.lang.String to,
java.lang.String amount)
from - to - amount - public Transfer(java.lang.String from,
java.lang.String to,
java.lang.String amount,
long gasPrice)
from - to - amount - gasPrice - public Transfer(java.lang.String from,
java.lang.String to,
java.lang.String amount,
int fromShard,
int toShard)
from - to - amount - fromShard - toShard - public Transfer(java.lang.String from,
java.lang.String to,
java.lang.String amount,
long gasPrice,
int fromShard,
int toShard)
from - to - amount - gasPrice - fromShard - toShard - public java.lang.String execute(int chainID,
java.lang.String passphrase,
boolean dryRun,
int waitToConfirmTime)
throws java.lang.Exception
chainID - represents which chain id to targetpassphrase - to unlock sender's keystoredryRun - does not send signed transactionwaitToConfirm - only waits if non-zero value, in secondsjava.lang.Exception