> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.chainstack.com/feedback

```json
{
  "path": "/reference/bitcoin-validateaddress",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# validateaddress | Bitcoin

The `validateaddress` method checks if a given Bitcoin address is valid and provides detailed information about it. This includes whether the address is valid, its scriptPubKey, if it belongs to the wallet, and more.

<Check>
  **Get your own node endpoint today**

  [Start for free](https://console.chainstack.com/) and get your app to production levels immediately. No credit card required.

  You can sign up with your GitHub, X, Google, or Microsoft account.
</Check>

## Parameters

* `address` (required): The Bitcoin address to validate.

## Response

* `result` — an object containing various details about the address, such as its validity, ownership, script type, associated public key, and more.
* `error` — an object containing an error message if an error occurred, otherwise `null`.
* `id` — an integer representing the ID of the request.

## Use case

The `validateaddress` method is useful for verifying the validity of a Bitcoin address before sending transactions. It can also provide wallet-related information for addresses, aiding in wallet management and transaction preparation.


## OpenAPI

````yaml /openapi/bitcoin_node_api/validateaddress.json POST /788f110831fe13808302bd79796d55e8
openapi: 3.0.0
info:
  title: validateaddress example
  version: 1.0.0
  description: >-
    This is an API example for validateaddress, a method to validate a Bitcoin
    address and provide information  about it.
servers:
  - url: https://nd-202-842-353.p2pify.com
security: []
paths:
  /788f110831fe13808302bd79796d55e8:
    post:
      tags:
        - Blockchain Operations
      summary: validateaddress
      operationId: validateAddress
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  default: '1.0'
                method:
                  type: string
                  default: validateaddress
                params:
                  type: array
                  items:
                    type: string
                    description: The Bitcoin address to validate.
                  default:
                    - >-
                      bc1pmvg0vjl7cgayamkd4kvgyktx5849gul67c85pygvt52mpwmx6dtqp92l8r
                id:
                  type: integer
                  default: 1
      responses:
        '200':
          description: Information about the validation of the address.
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    type: object
                    properties:
                      isvalid:
                        type: boolean
                        description: Whether the address is a valid Bitcoin address.
                      address:
                        type: string
                        description: The Bitcoin address validated (if valid).
                      scriptPubKey:
                        type: string
                        description: The hex-encoded scriptPubKey generated by the address.
                      ismine:
                        type: boolean
                        description: >-
                          Whether the address belongs to the wallet (if wallet
                          support is enabled).
                      iswatchonly:
                        type: boolean
                        description: >-
                          Whether the address is watch-only (if wallet support
                          is enabled).
                      isscript:
                        type: boolean
                        description: Whether the address is a script.
                      script:
                        type: string
                        description: The type of script, if `isscript` is true.
                      hex:
                        type: string
                        description: >-
                          The hex-encoded redeemScript (for P2SH) or
                          witnessScript (for P2WSH), if applicable.
                      addresses:
                        type: array
                        items:
                          type: string
                        description: >-
                          Array of addresses associated with the script (for
                          multisig scripts).
                      sigsrequired:
                        type: integer
                        description: Number of signatures required (for multisig scripts).
                      pubkey:
                        type: string
                        description: >-
                          The hex-encoded public key (for P2PKH and P2WPKH
                          addresses).
                      iscompressed:
                        type: boolean
                        description: Whether the public key is compressed.
                      account:
                        type: string
                        description: >-
                          DEPRECATED. The account associated with the address
                          (will be removed in future  versions).
                      timestamp:
                        type: integer
                        description: Timestamp of the address if known.
                      hdkeypath:
                        type: string
                        description: The HD keypath, if the address is HD wallet related.
                      hdseedid:
                        type: string
                        description: The Hash160 of the HD seed.
                      hdmasterfingerprint:
                        type: string
                        description: The fingerprint of the master key.
                      labels:
                        type: array
                        items:
                          type: string
                        description: User-assigned labels for the address.
                  error:
                    type: object
                  id:
                    type: integer

````