Encode a payload as a CashAddress. This function is similar to
encodeCashAddress but supports non-standard prefixes and types.
Note that this function defaults to throwing encoding errors. To handle
errors in a type-safe way, set throwErrors to false.
For other address standards that closely follow the CashAddress
specification (but have alternative version byte requirements), use
encodeCashAddressFormat.
Encode a payload as a CashAddress. This function is similar to encodeCashAddress but supports non-standard
prefix
es andtype
s.Note that this function defaults to throwing encoding errors. To handle errors in a type-safe way, set
throwErrors
tofalse
.For other address standards that closely follow the CashAddress specification (but have alternative version byte requirements), use encodeCashAddressFormat.
For the reverse, see decodeCashAddressNonStandard.