Bitcoin
Bitcoin
Bitcoin
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
validateaddress checks whether a string is a well-formed Bitcoin address and decodes its structure. Given an address that could receive BTC, the node reports whether it is valid, the scriptPubKey it corresponds to, and details such as whether it is a script address, a witness (segwit) address, and which witness version and program it uses. It works purely from the address format — it does not consult or unlock any wallet and never exposes keys, which makes it safe to call on a public endpoint. Send the request with positional parameters to https://bitcoin.therpc.io/YOUR_API_KEY.
scriptPubKey (hex) for a given address so you can match it against transaction outputs or build a watch-only descriptor.witness_version — to drive UI hints or fee estimates.| # | Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|---|
| 1 | address | string | Sí | Bitcoin address to validate. |
| Tipo | Descripción |
|---|---|
| object | isvalid, address, scriptPubKey (hex), isscript, iswitness, witness_version, witness_program; error and error_locations when invalid. |
isvalid: false instead. Read the isvalid field rather than relying on a try/catch around the call.