Skip to main content

validateaddress RPC Method

Loading...

Updated on
Feb 03, 2026

validateaddress RPC Method

Parameters

address
string
REQUIRED
Loading...

Returns

result
Loading...
isvalid
Loading...
address
Loading...
scriptPubKey
Loading...
isscript
Loading...
iswitness
Loading...
witness_version
Loading...
witness_program
Loading...
error
Loading...
Request
1
curl -X POST "https://docs-demo.btc.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "validateaddress",
6
"params": [
7
"bc1q5hy2fmqr7ua0a6rj6scekgszctxmlts8smwxcl"
8
],
9
"id": 1
10
}'
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
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free