Bitcoin
Bitcoin
Bitcoin
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
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.
| # | الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|---|
| 1 | address | string | نعم | Address the message was signed with. |
| 2 | signature | string | نعم | Base64 signature produced by signmessage. |
| 3 | message | string | نعم | The message that was signed. |
| النوع | الوصف |
|---|---|
| boolean | true if the signature is valid for the address and message, false otherwise. |
| الكود | الرسالة | السبب |
|---|---|---|
-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.