IBlock
, IBlockBalance
, IBlockLink
, IBlockPrevious
public class SendBlock extends Block implements IBlockPrevious, IBlockLink, IBlockBalance
send
block, and the associated data.Modifier and Type | Field | Description |
---|---|---|
static Function<com.google.gson.JsonObject,SendBlock> |
DESERIALIZER |
A function which converts a
JsonObject into a SendBlock instance. |
HASH_LENGTH
Modifier | Constructor | Description |
---|---|---|
protected |
SendBlock(String hash,
String signature,
WorkSolution work,
String previousBlockHash,
NanoAccount destinationAccount,
BigInteger balance) |
|
|
SendBlock(String signature,
WorkSolution work,
String previousBlockHash,
NanoAccount destinationAccount,
BigInteger balance) |
Modifier and Type | Method | Description |
---|---|---|
protected byte[][] |
generateHashables() |
|
BigInteger |
getBalance() |
|
NanoAccount |
getDestinationAccount() |
|
NanoAccount |
getLinkAsAccount() |
|
String |
getLinkData() |
|
String |
getPreviousBlockHash() |
buildJsonObject, calculateHashBytes, equals, fillJsonBlanks, getHash, getHashBytes, getJsonObject, getJsonObject, getSignature, getType, getTypeString, getWorkSolution, hashCode, isComplete, parse, parse, toJsonString, toJsonString, toString
getHash, getSignature, getType, getTypeString, getWorkSolution
public SendBlock(String signature, WorkSolution work, String previousBlockHash, NanoAccount destinationAccount, BigInteger balance)
protected SendBlock(String hash, String signature, WorkSolution work, String previousBlockHash, NanoAccount destinationAccount, BigInteger balance)
public final String getPreviousBlockHash()
getPreviousBlockHash
in interface IBlockPrevious
public final NanoAccount getDestinationAccount()
public final BigInteger getBalance()
getBalance
in interface IBlockBalance
public final String getLinkData()
getLinkData
in interface IBlockLink
public final NanoAccount getLinkAsAccount()
getLinkAsAccount
in interface IBlockLink
protected byte[][] generateHashables()
generateHashables
in class Block
Copyright © 2020. All rights reserved.