# Get Location Status

##

<figure><img src="/files/tdRFxHb5FHIlwZK1tjiA" alt="" width="375"><figcaption></figcaption></figure>

Depending on the use case, check whether the record is on the blockchain at the location:

1. The record owner waits at least 10 minutes for the write operation to be confirmed on the blockchain
2. The record owner checks the status of the location
3. If not confirmed, the record owner can either wait again or retry writing the record
4. The record owner optionally stores the evidence of the write operation
5. The record owner optionally sends or publishes the location to any other parties

#### **Example** **code:**

{% tabs %}
{% tab title="cURL" %}

```bash
curl $URL/api/v1/records/$LOC/status \
     -H "x-api-key: $KEY" \
     -H "accept: text/plain"
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch('${url}/api/v1/records/${loc}/status', {
  headers: {
    'x-api-key': '${key}',
    'accept': 'text/plain'
  }
});
```

{% endtab %}
{% endtabs %}

#### **Example immediate** cURL **response:**

```json
{
  "confirmation": null
}
```

#### **Example** cURL **response after waiting for an hour:**

```json
{
  "confirmation": {
    "confirmedBlocks": 6,
    "blockHash": "0e551049775fd9a3fc6516....5819eb375e4664b72adf17f41d",
    "blockTimestamp": "2024-01-02T13:14:17Z",
    "merkleProof": {
      "index": 1,
      "txOrId": "7d2aef40841f0109....c31c83a5505a4c147e",
      "target": "00000020ad15738f....67ffff7f2000000000",
      "nodes": [
        "10c7dc9d7a89c6fa05ba....1651e423edc230f2f1d823a5"
      ],
      ....
    }
  }
}
```

The Merkle proof is described in the [Reading from Blockchain](/nchain-event/bitcoin-sv-blockchain/reading-from-blockchain.md) section.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.teranode.group/nchain-event/independent-records/api-workflow/get-location-status.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
