public class LeaseTransactionV2 extends TransactionWithProofs implements LeaseTransaction
Modifier and Type | Field and Description |
---|---|
static byte |
LEASE |
MAX_PROOF_COUNT, proofs
V1, V2
Constructor and Description |
---|
LeaseTransactionV2(PrivateKeyAccount senderPublicKey,
String recipient,
long amount,
long fee,
long timestamp) |
LeaseTransactionV2(PublicKeyAccount senderPublicKey,
String recipient,
long amount,
long fee,
long timestamp,
List<ByteString> proofs) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
long |
getAmount() |
byte[] |
getBytes() |
long |
getFee() |
String |
getRecipient() |
PublicKeyAccount |
getSenderPublicKey() |
long |
getTimestamp() |
byte |
getType() |
byte |
getVersion() |
int |
hashCode() |
LeaseTransactionV2 |
withProof(int index,
ByteString proof) |
getProofs, setProofs
getId
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getId
public static final byte LEASE
public LeaseTransactionV2(PrivateKeyAccount senderPublicKey, String recipient, long amount, long fee, long timestamp)
public LeaseTransactionV2(PublicKeyAccount senderPublicKey, String recipient, long amount, long fee, long timestamp, List<ByteString> proofs)
public PublicKeyAccount getSenderPublicKey()
getSenderPublicKey
in interface Signable
getSenderPublicKey
in interface Transaction
public String getRecipient()
getRecipient
in interface LeaseTransaction
public long getAmount()
getAmount
in interface LeaseTransaction
public long getFee()
getFee
in interface Transaction
getFee
in interface LeaseTransaction
public long getTimestamp()
getTimestamp
in interface Transaction
getTimestamp
in interface LeaseTransaction
public byte getType()
getType
in interface Transaction
public byte getVersion()
getVersion
in interface Transaction
public LeaseTransactionV2 withProof(int index, ByteString proof)
Copyright © 2019. All rights reserved.