Skip to main content

validateaddress RPC Method

Returns information about the given bitcoin address.

Updated on
Feb 03, 2026

Parameters

address
string
REQUIRED

The bitcoin address to validate

Returns

result
object

Validation result for the address

isvalid
boolean

If the address is valid or not

address
string

(Optional) The validated bitcoin address

scriptPubKey
string

(Optional) The hex encoded scriptPubKey generated by the address

isscript
boolean

(Optional) It verifies if the key is a script or not

iswitness
boolean

(Optional) It verifies if the address is a witness address or not

witness_version
integer

(Optional) The version number of the witness program

witness_program
string

(Optional) The hex value of the witness program

error
string

(Optional) Error message when isvalid is false

error_locations
array

(Optional) Character indexes related to the validation error

error
object | null

(Optional) JSON-RPC error when the request failed; omitted or null on success

code
integer

Error code

message
string

Error message

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"isvalid": true,
5
"address": "bc1q5hy2fmqr7ua0a6rj6scekgszctxmlts8smwxcl",
6
"scriptPubKey": "0014a5c8a4ec03f73afee872d4319b2202c2cdbfae07",
7
"isscript": false,
8
"iswitness": true,
9
"witness_version": 0,
10
"witness_program": "a5c8a4ec03f73afee872d4319b2202c2cdbfae07"
11
},
12
"id": 1
13
}
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"isvalid": true,
5
"address": "bc1q5hy2fmqr7ua0a6rj6scekgszctxmlts8smwxcl",
6
"scriptPubKey": "0014a5c8a4ec03f73afee872d4319b2202c2cdbfae07",
7
"isscript": false,
8
"iswitness": true,
9
"witness_version": 0,
10
"witness_program": "a5c8a4ec03f73afee872d4319b2202c2cdbfae07"
11
},
12
"id": 1
13
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free