> For the complete documentation index, see [llms.txt](https://docs.nearby.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nearby.finance/protocol-layers/proof-of-location-location-layer/on-chain-verification.md).

# On-Chain Verification

### Introduction

The Proof of Location Layer allows location-related claims to be verified both off-chain and on-chain.

On-chain verification enables smart contracts, decentralized applications and protocol services to trust location proofs without relying on centralized intermediaries.

Verification is performed through cryptographic validation rather than organizational trust.

### Why On-Chain Verification Matters

Blockchain applications require deterministic verification.

Applications must be able to confirm that a proof is valid without relying on external services.

On-chain verification enables:

* Trustless validation
* Transparent verification
* Automated reward distribution
* Geographic access control
* Composable location-based applications

This transforms geolocation into a programmable blockchain primitive.

### Verification Process

The verification lifecycle follows a straightforward process.

#### Step 1: Proof Submission

A user submits a generated proof to the network.

#### Step 2: Smart Contract Validation

Verification contracts evaluate the proof using publicly available verification keys.

#### Step 3: Proof Acceptance

If the proof satisfies all requirements, verification succeeds.

#### Step 4: Application Execution

Verified proofs may trigger application-specific actions such as:

* Reward distribution
* Event access
* Governance participation
* Community membership
* Location-based permissions

### Base Integration

Nearby Protocol is built on Base.

The Proof of Location Layer leverages Base for:

* Proof verification
* State management
* Reward distribution
* Asset interactions
* Ecosystem interoperability

This provides a scalable environment for location-based applications.

### Composability

Verified proofs can be consumed by:

* Smart contracts
* Decentralized applications
* Reward systems
* Identity frameworks
* Access control mechanisms

This allows location verification to become a reusable infrastructure component across the ecosystem.

### Trustless Location Verification

On-chain verification removes the need for centralized location authorities.

Applications verify cryptographic proofs directly, creating a transparent and verifiable foundation for location-based interactions.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.nearby.finance/protocol-layers/proof-of-location-location-layer/on-chain-verification.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.
