# Crypto Wallet Address Validator & EVM ABI API

> Validate BTC, ETH / EVM, TRON (USDT TRC20), Solana, XRP, TON, LTC and DOGE addresses with checksums; convert wei / gwei / sat exactly; ABI encode / decode.

- Endpoint: `GET | POST https://apibox.io.vn/v1/crypto-address`
- Category: Security & Crypto
- HTML docs: https://apibox.io.vn/docs/crypto-address/ (Vietnamese: https://apibox.io.vn/vi/docs/crypto-address/)
- Online tool: https://apibox.io.vn/tools/crypto-address/
- Authentication: `Authorization: Bearer <API key>` or `X-API-Key: <API key>` (free key: https://apibox.io.vn/dashboard/#signup)

A wrong character in a withdrawal address loses the money for good. `action=validate` (default) checks the format and checksum of an address and detects the network: Bitcoin legacy P2PKH / P2SH (base58check), SegWit v0 (bech32, BIP-173) and Taproot / v1+ (bech32m, BIP-350) on mainnet and testnet; Ethereum and every EVM chain with the EIP-55 mixed-case checksum (the correctly checksummed form is returned); TRON base58 addresses (the format USDT-TRC20 uses) and their 41… hex form; Solana (32-byte base58 keys); XRP classic addresses with destination tag and X-addresses; TON raw and user-friendly forms (bounceable / non-bounceable, CRC16); Litecoin, Dogecoin and Dash. `network=` restricts the check (e.g. `trc20`, `bsc`, `btc`) and explains when an address belongs to another chain. Send `addresses` to check up to 500 at once.

`action=units` converts amounts exactly with big integers: wei / gwei / ether, sat / BTC, sun / TRX, lamports / SOL, drops / XRP, nanoton / TON, or any token with `decimals`; it refuses values with more decimals than the base unit allows instead of rounding.

`action=abi` encodes and decodes Solidity ABI data from a JSON ABI (or a Hardhat / Foundry artifact) or human-readable signatures such as `transfer(address,uint256)`: calldata for a function call, decoding calldata (also `Error(string)` reverts and custom errors), return data and event logs (indexed topics + data), raw parameter encoding, with static and dynamic types, arrays and tuples. `action=selector` gives function selectors and event topics; `action=keccak` the keccak256 hash. Validation only: no network calls, no private keys, no transactions, and no sanctions screening.

## Parameters

| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
| `address` | query | string | no |  | Address to validate (default action). |
| `network` | query | string | no |  | Expected network: `bitcoin`, `ethereum` (or `bsc`, `polygon`, `erc20`…), `tron` / `trc20`, `solana`, `xrp`, `ton`, `litecoin`, `dogecoin`, `dash`. |
| `addresses` | body | array | no |  | Batch validation (max 500). |
| `destination_tag` | query | number | no |  | XRP destination tag to check (0–4294967295). |
| `action` | query | string | no | `validate` | `validate`, `units`, `abi`, `selector` or `keccak`. |
| `value` | query | string | no |  | units: the amount; `from` and `to` units (`wei`, `gwei`, `ether`, `sat`, `btc`, `sun`, `trx`, `token` + `decimals`…). |
| `abi` | body | string | no |  | abi: JSON ABI, artifact or signatures (one per line). Or `signature` for selector. |
| `function` | body | string | no |  | abi encode / decode_output: function name or full signature; `args` array of values. |
| `data` | body | string | no |  | abi decode: calldata / return data / log data (hex); `topics` for logs. |
| `mode` | body | string | no |  | abi: `encode`, `decode`, `decode_output`, `decode_log`, `encode_params`, `decode_params` (auto-detected). |

## Example request

```bash
curl "https://apibox.io.vn/v1/crypto-address?address=0x5aaeb6053f3e94c9b9a09f33669435e7ef1beaed" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Example response

```json
{
  "address": "0x5aaeb6053f3e94c9b9a09f33669435e7ef1beaed",
  "valid": true,
  "network": "ethereum",
  "chain": "EVM (Ethereum, BNB Chain, Polygon, Arbitrum, Optimism, Base, Avalanche C…)",
  "type": "account (EOA or contract)",
  "normalized": "0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed",
  "checksummed": "0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed",
  "checksum": "none (all lower / upper case)",
  "also_valid_on": [
    "every EVM chain (same address format)"
  ]
}
```

## Use cases

- Validate USDT TRC20 / ERC20 / BEP20 withdrawal addresses in an exchange or payment form
- Return the EIP-55 checksummed form of an Ethereum address before saving it
- Convert gas prices and token amounts between wei, gwei and ether without float errors
- Build or decode contract calldata and event logs in a backend or a no-code tool

## FAQ

### Does a valid address mean the wallet exists?

No. It means the format and checksum are correct. Any well-formed address can receive funds, but nobody may control it; this endpoint does not query any blockchain.

### Why does my lower-case ETH address say "checksum: none"?

All-lower-case or all-upper-case addresses carry no EIP-55 checksum, so typos cannot be detected. Use the checksummed form returned in "checksummed".

### Is an address on BSC or Polygon different from Ethereum?

No, every EVM chain uses the same address format. Make sure the token is sent on the network the receiver expects.
