Programmatic access to on-chain operations
The Blockchain API is your gateway to LinqProtocol's smart contracts. Create escrows, query providers, fund deployments - all via REST endpoints.
What the API does
The Blockchain API is a RESTful service that abstracts the complexity of interacting with LinqProtocol's smart contracts. The API constructs transactions and handles the formatting heavy lifting, while you still sign before submission.
Use cases:
- Automate deployment creation and funding
- Query provider capacity and pricing
- Build custom dashboards and integrations
- Integrate LinqProtocol into your CI/CD pipeline
Base URL:
https://blockchain-api.linqprotocol.com/api/v1/API access
Endpoints that read data are publicly accessible. Endpoints that modify state (create escrows, fund deployments) require authentication.
Authentication Method:
Bearer token in the Authorization header
Getting an API key
Contact [email protected] to request API access.
Escrow operations
/api/v1/escrow/offers/verifyVerifies an EIP-712 signature on an offer payload
/api/v1/escrow/createCreates and funds a new escrow from a signed offer
/api/v1/escrow/{id}/fundAdds additional funds to an existing escrow
/api/v1/escrow/{id}/fund/previewReturns the allowance and remaining balance without changing state
/api/v1/escrow/{id}/provider/updateChanges the assigned provider before a job starts
/api/v1/escrow/{id}/startSignals that the provider has begun work
/api/v1/escrow/{id}/withdrawAllows providers to withdraw earned funds
/api/v1/escrow/{id}/finalizeReleases remaining funds and marks the escrow as complete
Provider operations
Query Endpoints
/api/v1/registry/providersReturns addresses of registered providers. Add ?full=true for complete data
/api/v1/registry/providers/{address}Returns the full on-chain record for a provider
/api/v1/registry/providers/{address}/usedReturns current resource utilization for a provider
/api/v1/registry/providers/{address}/gpu-classes/{classId}Returns pricing for a specific GPU class
/api/v1/registry/providers/all/capacityReturns total and used capacity across all providers
Mutation Endpoints
/api/v1/registry/providers/registerRegisters a new provider with capacity, pricing, and metadata
/api/v1/registry/providers/baseUpdates per-unit price ranges for CPU, memory, and storage
/api/v1/registry/providers/gpu-classAdds or updates GPU class pricing
/api/v1/registry/providers/metaUpdates the provider's metadata hash
/api/v1/registry/providers/capacityAdjusts declared resource capacity
/api/v1/registry/providers/{address}Removes a provider from the registry (owner only)
Best practices
Versioning
All routes are under /api/v1. Breaking changes will use a new version path.
Rate Limiting
The API has rate limits. Contact us if you need higher limits.
Error Handling
Standard HTTP status codes:
400 - Bad request (check your payload)401 - Unauthorized (check your API key)403 - Forbidden (you don't own this resource)404 - Not found (resource doesn't exist)500 - Server error (retry or contact support)Swagger UI
Explore and test endpoints at: https://blockchain-api.linqprotocol.com/api/v1/docs