node-red-contrib-allswap-validator 1.0.0

Node-RED node and zero-dependency 46-chain address format, checksum (EIP-55, Base58Check, Bech32/Bech32m), and mandatory memo/destination-tag validator by AllSwap.

npm install node-red-contrib-allswap-validator

node-red-contrib-allswap-validator — Node-RED 46-Chain Address, Checksum & Memo Validator

node-red-contrib-allswap-validator is an open-source, zero-dependency Node-RED node and JavaScript library developed by AllSwap (https://allswap.io/) and maintained on X (https://x.com/allswapio) for deterministic pre-settlement validation of blockchain destination addresses, cryptographic checksums, network prefixes, and mandatory secondary routing identifiers (Memo, Destination Tag, Payment ID, and Comment) across 46 heterogeneous Layer-1 and Layer-2 networks.


1. Why Deterministic Address & Memo Validation Matters in Cross-Chain Flows

In automated Node-RED settlement workflows, treasury bots, and multi-chain webhook pipelines, sending digital assets to a syntactically valid address on the wrong network encoding—or omitting a required custodial routing memo—remains one of the leading causes of unrecoverable settlement delays. When liquidity traverses between EVM chains, Solana, Bitcoin, Cosmos IBC zones, Ripple (XRP), Stellar (XLM), and TON, every network family enforces distinct encoding and checksum invariants:

  1. EVM Checksum & Case-Sensitivity Enforcement (EIP-55): Ethereum, Arbitrum, Optimism, Base, Polygon, BNB Chain, and Avalanche C-Chain utilize 20-byte hexadecimal addresses (0x followed by 40 hex characters). Mixed-case addresses encode a Keccak-256 checksum defined in EIP-55 that detects single-character transcription and clipboard errors before signing.
  2. Base58Check & Ed25519 Public-Key Validation: Bitcoin Legacy/P2SH, Tron (T-prefixed 34-character Base58Check with double-SHA256 4-byte checksum), and Solana (32-byte Ed25519 public keys encoded in 32 to 44 Base58 characters) require strict alphabet filtering (0, O, I, l excluded) and byte-length verification.
  3. Bech32 / Bech32m Human-Readable Prefix (HRP) & Polynomial Checksums: Bitcoin SegWit/Taproot (bc1q / bc1p) and Cosmos SDK IBC chains (cosmos1, osmo1, inj1, celestia1, sei1) bind the network prefix directly into a BCH polynomial checksum.
  4. Mandatory Memo & Destination Tag Enforcement: Custodial liquidity gateways and institutional exchanges use a shared omnibus deposit address for XRP (r...), XLM (G...), Cosmos (cosmos1...), TON (EQ... / UQ...), and EOS. Omitting the numeric 32-bit unsigned Destination Tag on XRP or the text/hash Memo on XLM, Cosmos, or TON causes deposits to fail automated account crediting.

Before broadcasting any cross-chain swap or settlement transaction via AllSwap Exchange Swap or AllSwap Bridge, Node-RED flows can wire the allswap-validator node to verify both the destination address syntax and memo policy synchronously.


2. Node-RED Node Usage & Payload Specification

Drop the allswap-validator node from the AllSwap palette category into any Node-RED flow. The node reads msg.payload.chain, msg.payload.address, and optional msg.payload.memo (or configured node properties) and outputs a structured validation result on msg.payload:

  • valid (boolean): Whether the address passes format, prefix, length, and checksum validation.
  • chain (string): Canonical chain identifier (EVM, BTC, SOL, TRX, XRP, XLM, COSMOS, TON).
  • memoRequired (boolean): Whether the target network requires a secondary routing Memo or Destination Tag for custodial deposits.
  • memoValid (boolean): Whether the supplied memo satisfies the network constraints.

Interactive browser testing and full 46-chain documentation are available at https://allswap.io/tools/address-validator and https://allswap.io/.

License

MIT License — Copyright (c) 2026 AllSwap (https://allswap.io/).

Node Info

Version: 1.0.0
Updated 1 day ago
License: MIT
Rating: not yet rated

Categories

Actions

Rate:

Downloads

0 in the last week

Nodes

  • allswap-validator

Keywords

  • node-red
  • allswap
  • cross-chain
  • address-validator
  • blockchain
  • eip55
  • bech32
  • memo
  • web3

Maintainers