BTC Address
GET/v0/btc-address
Validates whether a string is a valid Bitcoin mainnet address. When valid, the response includes the detected address type.
Try it
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| value | string | Yes | The Bitcoin address to validate |
Example Request
curl -H "Authorization: Bearer YOUR_API_KEY" \ "https://api.isvalid.dev/v0/btc-address?value=1A1zP1eP5QGefi2DMPTfTL5SLmv7Divf"
Response Fields
| Field | Type | Description |
|---|---|---|
| valid | boolean | Whether the value is a valid Bitcoin mainnet address |
| type | string | Address type: P2PKH (Legacy, starts with 1), P2SH (Script hash, starts with 3), P2WPKH (Native SegWit, starts with bc1q), or P2TR (Taproot, starts with bc1p). Omitted when valid is false. |
Example Response
{
"valid": true,
"type": "P2PKH"
}