Bitcoin
Bitcoin
Bitcoin
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
verifymessage checks that a base64 signature was produced by the private key behind a given Bitcoin address for a specific message. It lets someone prove control of an address — and therefore of the BTC sitting at it — without ever revealing the key or moving any coins. You pass the address, the signature, and the exact message, and the node recovers the signing key and confirms it matches the address. This is a stateless cryptographic check: no wallet is touched and nothing is written on chain. Call it with positional parameters against https://bitcoin.therpc.io/YOUR_API_KEY.
| # | Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|---|
| 1 | address | string | Sí | Address the message was signed with. |
| 2 | signature | string | Sí | Base64 signature produced by signmessage. |
| 3 | message | string | Sí | The message that was signed. |
| Tipo | Descripción |
|---|---|
| boolean | true if the signature is valid for the address and message, false otherwise. |
| Código | Mensaje | Causa |
|---|---|---|
-5 | Invalid address | The address is malformed or not a valid Bitcoin address. |
-3 | Malformed base64 encoding | The signature is not valid base64. |
false return means the signature simply did not match the address and message — it is a valid outcome, not an error. A malformed address (code -5) or non-base64 signature (code -3) raises an error instead; handle those two cases separately from a plain false.