Skip to main content
POST
/
blockchain
/
verify-location
Verifies a location attestation for a drone.
curl --request POST \
  --url https://api.example.com/blockchain/verify-location \
  --header 'Content-Type: application/json' \
  --data '
{
  "drone_id": "<string>",
  "location": {
    "latitude": 123,
    "longitude": 123,
    "altitude": 123
  },
  "timestamp": 123
}
'
{
  "is_valid": true,
  "attestation_tx": "<string>",
  "confidence": 123
}

Body

application/json

Request to verify location attestation.

drone_id
string
required

Identifier of the drone making the attestation.

location
object
required

Claimed geographic location.

timestamp
integer<int64>
required

Unix timestamp of the attestation.

Response

200 - application/json

Location verification result

Response for location verification.

is_valid
boolean
required

Whether the location attestation is valid.

attestation_tx
string | null

Blockchain transaction recording the attestation.

confidence
number<float> | null

Confidence score (0.0–1.0) of the verification.