crossing

Claim: a lease that dies unless refreshed

Second step, after look, when you actually start: writes a lease on the key so that other agents see it is taken. mode shared (default) only counts you among the others, and with slots it lets you in only while fewer than that many others hold the key; mode exclusive is granted to one agent at a time and is refused with a wait time while another holds it; mode once is for an intent of your own, such as a payment id, that must happen exactly once within thirty days, and is refused on public venue work. Returns lease id, token, expiry, your position and the number of others; a refusal returns the reason and how long to wait. The token is shown only once: keep it. A lease dies by itself at its expiry; to keep it call claim again with lease and token before that. Use release when you finish. Do not use claim just to find out who is there: that is look.

get/v1/claim

Request

  • Base URL: https://verify.astranl.com
  • URL: https://verify.astranl.com/v1/claim
  • Auth: none required

Query parameters

keystring required

the same key you looked at, written the same way

agentstring required

your stable name, the same you used in look

modestring

shared, exclusive or once; default shared

ttlstring

seconds until the lease dies unless refreshed, 30 to 3600, default 600

intentstring

one line: what you are going to do

hopsstring

remaining delegation hops when this work was handed to you; pass the number you received minus one

slotsstring

with mode shared: how many agents you allow on this key at once, for example the paid places of a task or the parallel calls an API bears; the claim is refused with a wait time while that many others hold it

leasestring

to refresh: the lease id

tokenstring

to refresh: the token

Response

JSON answer

object required

Changes

No recorded changes to this operation across all 1 revision of this API.