|
rippled
|
Base class for all transaction builders. More...
#include <TransactionBuilderBase.h>

Public Member Functions | |
| TransactionBuilderBase ()=default | |
| TransactionBuilderBase (SF_UINT16::type::value_type transactionType, SF_ACCOUNT::type::value_type account, std::optional< SF_UINT32::type::value_type > sequence, std::optional< SF_AMOUNT::type::value_type > fee) | |
| Derived & | setAccount (AccountID const &value) |
| Set the account that is sending the transaction. | |
| Derived & | setFee (STAmount const &value) |
| Set the transaction fee. | |
| Derived & | setSequence (std::uint32_t const &value) |
| Set the sequence number. | |
| Derived & | setTicketSequence (std::uint32_t const &value) |
| Set the ticket sequence to use for this transaction. | |
| Derived & | setFlags (std::uint32_t const &value) |
| Set transaction flags. | |
| Derived & | setSourceTag (std::uint32_t const &value) |
| Set the source tag. | |
| Derived & | setLastLedgerSequence (std::uint32_t const &value) |
| Set the last ledger sequence. | |
| Derived & | setAccountTxnID (uint256 const &value) |
| Set the account transaction ID. | |
| Derived & | setPreviousTxnID (uint256 const &value) |
| Set the previous transaction ID. | |
| Derived & | setOperationLimit (std::uint32_t const &value) |
| Set the operation limit. | |
| Derived & | setMemos (STArray const &value) |
| Set the memos array. | |
| Derived & | setSigners (STArray const &value) |
| Set the signers array for multi-signing. | |
| Derived & | setNetworkID (std::uint32_t const &value) |
| Set the network ID. | |
| Derived & | setDelegate (AccountID const &value) |
| Set the delegate account for delegated transactions. | |
| STObject const & | getSTObject () const |
| Get the underlying STObject. | |
Protected Member Functions | |
| Derived & | sign (PublicKey const &publicKey, SecretKey const &secretKey) |
| Sign the transaction with the given keys. | |
Protected Attributes | |
| STObject | object_ {sfTransaction} |
Base class for all transaction builders.
Provides common field setters that are available for all transaction types.
Definition at line 26 of file TransactionBuilderBase.h.
|
default |
| xrpl::transactions::TransactionBuilderBase< Derived >::TransactionBuilderBase | ( | SF_UINT16::type::value_type | transactionType, |
| SF_ACCOUNT::type::value_type | account, | ||
| std::optional< SF_UINT32::type::value_type > | sequence, | ||
| std::optional< SF_AMOUNT::type::value_type > | fee | ||
| ) |
Definition at line 31 of file TransactionBuilderBase.h.
| Derived & xrpl::transactions::TransactionBuilderBase< Derived >::setAccount | ( | AccountID const & | value | ) |
Set the account that is sending the transaction.
| value | Account address (typically as a string) |
Definition at line 62 of file TransactionBuilderBase.h.
| Derived & xrpl::transactions::TransactionBuilderBase< Derived >::setFee | ( | STAmount const & | value | ) |
Set the transaction fee.
| value | Fee in drops (typically as a string or number) |
Definition at line 74 of file TransactionBuilderBase.h.
| Derived & xrpl::transactions::TransactionBuilderBase< Derived >::setSequence | ( | std::uint32_t const & | value | ) |
Set the sequence number.
| value | Sequence number |
Definition at line 86 of file TransactionBuilderBase.h.
| Derived & xrpl::transactions::TransactionBuilderBase< Derived >::setTicketSequence | ( | std::uint32_t const & | value | ) |
Set the ticket sequence to use for this transaction.
When using a ticket, the regular sequence number is set to 0.
| value | Ticket sequence number |
Definition at line 99 of file TransactionBuilderBase.h.
| Derived & xrpl::transactions::TransactionBuilderBase< Derived >::setFlags | ( | std::uint32_t const & | value | ) |
Set transaction flags.
| value | Flags value |
Definition at line 112 of file TransactionBuilderBase.h.
| Derived & xrpl::transactions::TransactionBuilderBase< Derived >::setSourceTag | ( | std::uint32_t const & | value | ) |
Set the source tag.
| value | Source tag |
Definition at line 124 of file TransactionBuilderBase.h.
| Derived & xrpl::transactions::TransactionBuilderBase< Derived >::setLastLedgerSequence | ( | std::uint32_t const & | value | ) |
Set the last ledger sequence.
| value | Last ledger sequence number |
Definition at line 136 of file TransactionBuilderBase.h.
| Derived & xrpl::transactions::TransactionBuilderBase< Derived >::setAccountTxnID | ( | uint256 const & | value | ) |
Set the account transaction ID.
| value | Account transaction ID (typically as a hex string) |
Definition at line 148 of file TransactionBuilderBase.h.
| Derived & xrpl::transactions::TransactionBuilderBase< Derived >::setPreviousTxnID | ( | uint256 const & | value | ) |
Set the previous transaction ID.
Used for emulate027 compatibility.
| value | Previous transaction ID |
Definition at line 161 of file TransactionBuilderBase.h.
| Derived & xrpl::transactions::TransactionBuilderBase< Derived >::setOperationLimit | ( | std::uint32_t const & | value | ) |
Set the operation limit.
| value | Operation limit |
Definition at line 173 of file TransactionBuilderBase.h.
| Derived & xrpl::transactions::TransactionBuilderBase< Derived >::setMemos | ( | STArray const & | value | ) |
Set the memos array.
| value | Array of memo objects |
Definition at line 185 of file TransactionBuilderBase.h.
| Derived & xrpl::transactions::TransactionBuilderBase< Derived >::setSigners | ( | STArray const & | value | ) |
Set the signers array for multi-signing.
| value | Array of signer objects |
Definition at line 197 of file TransactionBuilderBase.h.
| Derived & xrpl::transactions::TransactionBuilderBase< Derived >::setNetworkID | ( | std::uint32_t const & | value | ) |
Set the network ID.
| value | Network ID |
Definition at line 209 of file TransactionBuilderBase.h.
| Derived & xrpl::transactions::TransactionBuilderBase< Derived >::setDelegate | ( | AccountID const & | value | ) |
Set the delegate account for delegated transactions.
| value | Delegate account ID |
Definition at line 221 of file TransactionBuilderBase.h.
| STObject const & xrpl::transactions::TransactionBuilderBase< Derived >::getSTObject | ( | ) | const |
Get the underlying STObject.
Definition at line 232 of file TransactionBuilderBase.h.
|
protected |
Sign the transaction with the given keys.
This sets the SigningPubKey field and computes the TxnSignature.
| publicKey | The public key for signing |
| secretKey | The secret key for signing |
Definition at line 248 of file TransactionBuilderBase.h.
|
protected |
Definition at line 266 of file TransactionBuilderBase.h.