Skip to main content

Module binarycodec

Module binarycodec 

Source
Expand description

Functions for encoding objects into the XRP Ledger’s canonical binary format and decoding them.

This module is the public API entry point. Internal serialization/deserialization logic lives in binary_wrappers

Re-exports§

pub use binary_wrappers::*;

Modules§

binary_wrappers
definitions
Functions for encoding objects into the XRP Ledger’s canonical binary format and decoding them.
exceptions
General XRPL Binary Codec Exceptions.
types
Top-level exports for types used in binary_codec.
utils
Utilities for binarycodec crate.

Functions§

decode
Decode a hex-encoded XRPL binary blob into a JSON object.
decode_ledger_data
Decode a serialized ledger header from hex into JSON.
encode
Encode a transaction (or any XRPL object) to hex-encoded binary.
encode_for_multisigning
Encode a transaction for multi-signing (prepends multi-sign prefix, appends the signing account ID).
encode_for_signing
Encode a transaction for signing (prepends the signing prefix).
encode_for_signing_batch
Encode a Batch transaction for signing.
encode_for_signing_claim
Encode a payment channel claim for signing.