Skip to main content
Try Cobo WaaS Skill in your AI coding assistant (Claude Code, Cursor, etc.). Describe your needs in natural language to auto-generate production-ready SDK code and debug faster 🚀
Validating an address before you use it as a transaction destination helps you avoid failed transactions and funds sent to malformed addresses. The canonical way to validate an address is to call the Cobo API, which performs the check server-side for the specified chain. Do not rely on hand-coded, per-chain address-format rules in your own integration, because address formats differ by chain and change over time.

Validate a single address (WaaS 2.0)

Use the Check address validity operation (GET /wallets/check_address_validity). Pass two query parameters: chain_id (the chain to validate against) and address (the address to check). The response contains a single boolean field, validity: true means the address is valid for that chain, and false means it is not. The response is a boolean only and does not include a reason field. Worked example — validating an XRP address: pass chain_id set to XRP and address set to the address you want to check. Because validation is performed server-side per chain_id, the same address is judged against the rules of the chain you specify.

Validate multiple addresses (WaaS 2.0)

Two batch operations are available:

Validate an address (WaaS 1.0)

If you are still on WaaS 1.0, use the equivalent legacy operations: It is recommended to migrate to WaaS 2.0 and use Check address validity.