Package foundation.omni.tx
Class PayloadBuilder
java.lang.Object
foundation.omni.tx.PayloadBuilder
This builder does not guarantee correctness, it is a thin wrapper around
ByteBuffer to make the transaction building code easy to read and compare to the Omni Spec.
Most applications should use xxx instead which correctly builds each transaction type.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
bytes()
static PayloadBuilder
create
(short version, Transactions.TransactionType type) Create a payload with an explicitly set transaction versionstatic PayloadBuilder
Create a payload with the default (latest) transaction versionputInt32
(int value) putInt32
(CurrencyID currencyID) putInt64
(long value)
-
Method Details
-
create
Create a payload with the default (latest) transaction version -
create
Create a payload with an explicitly set transaction version -
putInt32
-
putInt32
-
putInt64
-
putInt64
-
putString
-
bytes
public byte[] bytes()
-