Skip to content

Files

This branch is 799 commits ahead of xyield/xrpl-go:main.

binary-codec

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 19, 2024
Dec 23, 2024
Nov 7, 2024
Dec 23, 2024
Nov 8, 2024
Dec 23, 2024
Dec 23, 2024
Nov 7, 2024
Nov 11, 2024
Dec 23, 2024
Dec 23, 2024

Binary Codec

This package contains functions to encode/decode to/from the ripple binary serialization format.

API

Encode

encoded, err := binarycodec.Encode(jsonObject)

Decode

json, err := binarycodec.Decode(hexEncodedString)

EncodeForMultisigning

encoded, err := binarycodec.EncodeForMultisigning(jsonObject, xrpAccountID)

EncodeForSigning

encoded, err := binarycodec.EncodeForSigning(jsonObject)

EncodeForSigningClaim

encoded, err := binarycodec.EncodeForSigningClaim(jsonObject)

EncodeQuality

encoded, err := binarycodec.EncodeQuality(amountString)

DecodeQuality

decoded, err := binarycodec.DecodeQuality(encoded)

DecodeLedgerData

ledgerData, err := binarycodec.DecodeLedgerData(hexEncodedString)