Event
Back to All
V.1.4.3
V.1.4.3
  • nChain Event User Guide
  • πŸ“”Overview
    • Introduction
    • Configuration Symbols
    • Features and Benefits
    • Core Concepts
    • Encoded and Unencoded ‑ Records
  • πŸ€”Using nChain Event
    • How to Use nChain Event
    • Initial Set-Up
  • πŸ”Independent Records
    • Introduction
    • Functional Description
      • Write Record
      • Read Record
      • Verify Record †
    • Use Cases
      • Lucky Number Tickets
      • Internet of Things (IoT) Data
      • Intellectual Property Rights (IPR) Evidence
      • Car Dealership
    • Tutorials
      • Data Integrity
      • Blockchain Unique Identifiers
    • API Workflow
      • Configure API
      • Write Record
      • Get Location Status
      • Read Record
      • Verify Record †
  • πŸ”—Linked Records Β§
    • Introduction
    • Functional Description
      • Create Link Record Β§
      • Read Link Record Β§
      • Update Link Record Β§
      • Delete Link Record Β§
      • Verify Link Record Β§ †
      • Navigate Linked Record Β§ ΒΆ
    • Use Cases
      • Luxury Handbag Provenance
      • Random Prize Draw
    • Tutorials
      • Collection Integrity
      • Provenance Integrity
    • API Workflow
      • Configure API
      • Create Link Record Β§
      • Get Link Location Status Β§
      • Read Link Record Β§
      • Update Link Record Β§
      • Delete Link Record Β§
      • Verify Link Record Β§ †
      • Navigate Link Record Β§ ΒΆ
  • βš™οΈAPI Documentation
    • nChain Event API
  • ⛓️Bitcoin SV Blockchain
    • Features and Benefits
    • Writing to Blockchain
    • Reading from Blockchain
    • Transaction Format
  • ⁉️Troubleshooting
    • Troubleshooting
    • Error Codes
    • Glossary
    • Contact Us
Powered by GitBook
On this page
  1. Independent Records
  2. API Workflow

Get Location Status

PreviousWrite RecordNextRead Record

Last updated 6 months ago

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:

curl $URL/api/v1/records/$LOC/status \
     -H "x-api-key: $KEY" \
     -H "accept: text/plain"
const response = await fetch('${url}/api/v1/records/${loc}/status', {
  headers: {
    'x-api-key': '${key}',
    'accept': 'text/plain'
  }
});

Example immediate cURL response:

{
  "confirmation": null
}

Example cURL response after waiting for an hour:

{
  "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 section.

πŸ”
Reading from Blockchain