|
rippled
|
Ledger Entry: PayChannel. More...
#include <PayChannel.h>


Public Member Functions | |
| PayChannel (std::shared_ptr< SLE const > sle) | |
| Construct a PayChannel ledger entry wrapper from an existing SLE object. | |
| SF_ACCOUNT::type::value_type | getAccount () const |
| Get sfAccount (soeREQUIRED) | |
| SF_ACCOUNT::type::value_type | getDestination () const |
| Get sfDestination (soeREQUIRED) | |
| protocol_autogen::Optional< SF_UINT32::type::value_type > | getSequence () const |
| Get sfSequence (soeOPTIONAL) | |
| bool | hasSequence () const |
| Check if sfSequence is present. | |
| SF_AMOUNT::type::value_type | getAmount () const |
| Get sfAmount (soeREQUIRED) | |
| SF_AMOUNT::type::value_type | getBalance () const |
| Get sfBalance (soeREQUIRED) | |
| SF_VL::type::value_type | getPublicKey () const |
| Get sfPublicKey (soeREQUIRED) | |
| SF_UINT32::type::value_type | getSettleDelay () const |
| Get sfSettleDelay (soeREQUIRED) | |
| protocol_autogen::Optional< SF_UINT32::type::value_type > | getExpiration () const |
| Get sfExpiration (soeOPTIONAL) | |
| bool | hasExpiration () const |
| Check if sfExpiration is present. | |
| protocol_autogen::Optional< SF_UINT32::type::value_type > | getCancelAfter () const |
| Get sfCancelAfter (soeOPTIONAL) | |
| bool | hasCancelAfter () const |
| Check if sfCancelAfter is present. | |
| protocol_autogen::Optional< SF_UINT32::type::value_type > | getSourceTag () const |
| Get sfSourceTag (soeOPTIONAL) | |
| bool | hasSourceTag () const |
| Check if sfSourceTag is present. | |
| protocol_autogen::Optional< SF_UINT32::type::value_type > | getDestinationTag () const |
| Get sfDestinationTag (soeOPTIONAL) | |
| bool | hasDestinationTag () const |
| Check if sfDestinationTag is present. | |
| SF_UINT64::type::value_type | getOwnerNode () const |
| Get sfOwnerNode (soeREQUIRED) | |
| SF_UINT256::type::value_type | getPreviousTxnID () const |
| Get sfPreviousTxnID (soeREQUIRED) | |
| SF_UINT32::type::value_type | getPreviousTxnLgrSeq () const |
| Get sfPreviousTxnLgrSeq (soeREQUIRED) | |
| protocol_autogen::Optional< SF_UINT64::type::value_type > | getDestinationNode () const |
| Get sfDestinationNode (soeOPTIONAL) | |
| bool | hasDestinationNode () const |
| Check if sfDestinationNode is present. | |
| bool | validate () const |
| Validate the ledger entry. | |
| LedgerEntryType | getType () const |
| Get the ledger entry type. | |
| uint256 const & | getKey () const |
| Get the key (index) of this ledger entry. | |
| std::optional< uint256 > | getLedgerIndex () const |
| Get the ledger index (sfLedgerIndex). | |
| bool | hasLedgerIndex () const |
| Check if the ledger entry has a ledger index. | |
| uint16_t | getLedgerEntryType () const |
| Get the ledger entry type field (sfLedgerEntryType). | |
| std::uint32_t | getFlags () const |
| Get the flags field (sfFlags). | |
| std::shared_ptr< SLE const > | getSle () const |
| Get the underlying SLE object. | |
Static Public Attributes | |
| static constexpr LedgerEntryType | entryType = ltPAYCHAN |
Protected Attributes | |
| std::shared_ptr< SLE const > | sle_ |
| The underlying serialized ledger entry being wrapped. | |
Ledger Entry: PayChannel.
Type: ltPAYCHAN (0x0078) RPC Name: payment_channel
Immutable wrapper around SLE providing type-safe field access. Use PayChannelBuilder to construct new ledger entries.
Definition at line 27 of file PayChannel.h.
|
explicit |
Construct a PayChannel ledger entry wrapper from an existing SLE object.
| std::runtime_error | if the ledger entry type doesn't match. |
Definition at line 36 of file PayChannel.h.
| SF_ACCOUNT::type::value_type xrpl::ledger_entries::PayChannel::getAccount | ( | ) | const |
| SF_ACCOUNT::type::value_type xrpl::ledger_entries::PayChannel::getDestination | ( | ) | const |
| protocol_autogen::Optional< SF_UINT32::type::value_type > xrpl::ledger_entries::PayChannel::getSequence | ( | ) | const |
Get sfSequence (soeOPTIONAL)
Definition at line 76 of file PayChannel.h.
| bool xrpl::ledger_entries::PayChannel::hasSequence | ( | ) | const |
Check if sfSequence is present.
Definition at line 89 of file PayChannel.h.
| SF_AMOUNT::type::value_type xrpl::ledger_entries::PayChannel::getAmount | ( | ) | const |
| SF_AMOUNT::type::value_type xrpl::ledger_entries::PayChannel::getBalance | ( | ) | const |
| SF_VL::type::value_type xrpl::ledger_entries::PayChannel::getPublicKey | ( | ) | const |
| SF_UINT32::type::value_type xrpl::ledger_entries::PayChannel::getSettleDelay | ( | ) | const |
Get sfSettleDelay (soeREQUIRED)
Definition at line 133 of file PayChannel.h.
| protocol_autogen::Optional< SF_UINT32::type::value_type > xrpl::ledger_entries::PayChannel::getExpiration | ( | ) | const |
Get sfExpiration (soeOPTIONAL)
Definition at line 144 of file PayChannel.h.
| bool xrpl::ledger_entries::PayChannel::hasExpiration | ( | ) | const |
Check if sfExpiration is present.
Definition at line 157 of file PayChannel.h.
| protocol_autogen::Optional< SF_UINT32::type::value_type > xrpl::ledger_entries::PayChannel::getCancelAfter | ( | ) | const |
Get sfCancelAfter (soeOPTIONAL)
Definition at line 168 of file PayChannel.h.
| bool xrpl::ledger_entries::PayChannel::hasCancelAfter | ( | ) | const |
Check if sfCancelAfter is present.
Definition at line 181 of file PayChannel.h.
| protocol_autogen::Optional< SF_UINT32::type::value_type > xrpl::ledger_entries::PayChannel::getSourceTag | ( | ) | const |
Get sfSourceTag (soeOPTIONAL)
Definition at line 192 of file PayChannel.h.
| bool xrpl::ledger_entries::PayChannel::hasSourceTag | ( | ) | const |
Check if sfSourceTag is present.
Definition at line 205 of file PayChannel.h.
| protocol_autogen::Optional< SF_UINT32::type::value_type > xrpl::ledger_entries::PayChannel::getDestinationTag | ( | ) | const |
Get sfDestinationTag (soeOPTIONAL)
Definition at line 216 of file PayChannel.h.
| bool xrpl::ledger_entries::PayChannel::hasDestinationTag | ( | ) | const |
Check if sfDestinationTag is present.
Definition at line 229 of file PayChannel.h.
| SF_UINT64::type::value_type xrpl::ledger_entries::PayChannel::getOwnerNode | ( | ) | const |
| SF_UINT256::type::value_type xrpl::ledger_entries::PayChannel::getPreviousTxnID | ( | ) | const |
Get sfPreviousTxnID (soeREQUIRED)
Definition at line 251 of file PayChannel.h.
| SF_UINT32::type::value_type xrpl::ledger_entries::PayChannel::getPreviousTxnLgrSeq | ( | ) | const |
Get sfPreviousTxnLgrSeq (soeREQUIRED)
Definition at line 262 of file PayChannel.h.
| protocol_autogen::Optional< SF_UINT64::type::value_type > xrpl::ledger_entries::PayChannel::getDestinationNode | ( | ) | const |
Get sfDestinationNode (soeOPTIONAL)
Definition at line 273 of file PayChannel.h.
| bool xrpl::ledger_entries::PayChannel::hasDestinationNode | ( | ) | const |
Check if sfDestinationNode is present.
Definition at line 286 of file PayChannel.h.
|
inherited |
Validate the ledger entry.
Definition at line 40 of file LedgerEntryBase.h.
|
inherited |
Get the ledger entry type.
Definition at line 57 of file LedgerEntryBase.h.
|
inherited |
Get the key (index) of this ledger entry.
The key uniquely identifies this ledger entry in the ledger state.
Definition at line 70 of file LedgerEntryBase.h.
|
inherited |
Get the ledger index (sfLedgerIndex).
This field is OPTIONAL and represents the index of the ledger entry.
Definition at line 85 of file LedgerEntryBase.h.
|
inherited |
Check if the ledger entry has a ledger index.
Definition at line 100 of file LedgerEntryBase.h.
|
inherited |
Get the ledger entry type field (sfLedgerEntryType).
This field is REQUIRED for all ledger entries and indicates the type of the ledger entry (e.g., AccountRoot, RippleState, Offer, etc.).
Definition at line 114 of file LedgerEntryBase.h.
|
inherited |
Get the flags field (sfFlags).
This field is REQUIRED for all ledger entries and contains type-specific flags that modify the behavior of the ledger entry.
Definition at line 128 of file LedgerEntryBase.h.
|
inherited |
Get the underlying SLE object.
Provides direct access to the wrapped serialized ledger entry object for cases where the type-safe accessors are insufficient.
Definition at line 142 of file LedgerEntryBase.h.
|
staticconstexpr |
Definition at line 30 of file PayChannel.h.
|
protectedinherited |
The underlying serialized ledger entry being wrapped.
Definition at line 149 of file LedgerEntryBase.h.