Package org.xrpl.xrpl4j.crypto.signing
Interface SignedTransaction<T extends Transaction>
- Type Parameters:
T
- The type ofTransaction
that was signed.
- All Known Implementing Classes:
ImmutableSignedTransaction
Holds the bytes for a signed XRPL transaction.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The hash prefix used by the XRPL to identify transaction hashes. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Transaction>
ImmutableSignedTransaction.Builder<T>builder()
A builder.default Hash256
hash()
The hash of thesignedTransactionBytes()
which can be used as a handle to the transaction even though the transaction hasn't yet been submitted to the XRP Ledger.The bytes of this message.The transaction with a signature blob attached.ThesignedTransaction()
encoded into bytes that are suitable for submission to the XRP Ledger.The original transaction with no signature attached.
-
Field Details
-
SIGNED_TRANSACTION_HASH_PREFIX
The hash prefix used by the XRPL to identify transaction hashes.- See Also:
-
-
Method Details
-
builder
A builder.- Type Parameters:
T
- An instance ofTransaction
.- Returns:
- An
ImmutableSignedTransaction.Builder
.
-
unsignedTransaction
T unsignedTransaction()The original transaction with no signature attached.- Returns:
- A
Transaction
.
-
signedTransaction
T signedTransaction()The transaction with a signature blob attached.- Returns:
- A
Transaction
.
-
signedTransactionBytes
UnsignedByteArray signedTransactionBytes()ThesignedTransaction()
encoded into bytes that are suitable for submission to the XRP Ledger.- Returns:
- A byte-array containing the signed transaction blob.
-
signature
Signature signature()The bytes of this message.- Returns:
- A byte-array.
-
hash
The hash of thesignedTransactionBytes()
which can be used as a handle to the transaction even though the transaction hasn't yet been submitted to the XRP Ledger. This field is derived by computing the SHA512-Half of the Signed Transaction hash prefix concatenated withsignedTransactionBytes()
.- Returns:
- A
Hash256
containing the transaction hash.
-