Create a lease from a provider offer
Operator-only. Publishes a resource request, waits for a provider offer, then signs and submits a lease block from the node's own wallet.
Authorization
adminBearer AuthorizationBearer <token>
Operator-only endpoints require the node's admin token, set with the XE_API_ADMIN_TOKEN environment variable. With no token configured the endpoint is disabled and answers 403.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://ldn.core.test.network/lease/request" \ -H "Content-Type: application/json" \ -d '{ "duration": 3600 }'{
"lease_hash": "f2a3b4c5d6e7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3"
}{
"error": "invalid signature"
}{
"error": "invalid signature"
}{
"error": "invalid signature"
}