BIP-322 is a Bitcoin standard for signing arbitrary messages with a Bitcoin address. It lets a wallet prove ownership of an address without making an on-chain transaction, which is useful for authentication, access control, and verifying wallet ownership off-chain.
Verify BIP-322 signature
Available on: Basic, Pro, Dedicated
GET https://api.bestinslot.xyz/v3/bip322/verify
Verifies a BIP-322 signature and returns whether it is valid for the given address and message.
Parameters
The Bitcoin address of the signer.
The signature, base64-encoded.
The signed message, base64-encoded.
Example
curl "https://api.bestinslot.xyz/v3/bip322/verify?address=bc1puhgw5ftrcnzfkkzrmzw8cuwmejjzaf5y2ql06cdrn002095dw8fs803glh&signature_b64=AUEde3at2iDQWz5VrXMxeOv8uIwTOlONPoRsO8wmA4iXz5ssIHLXxDP3fjVkb%2Fyp0pxjgwamKq1oe15fSV6wAOzUAQ%3D%3D&message_b64=bGlzdGVuaW5nIHRvIHN0YXJzIGJ5IHRoZSB4eA%3D%3D"
Response
{
"data": true,
"block_height": 799062
}
data is true if the signature is valid, and false otherwise.