lock

LOCK: extend a lock you hold, scoped to YOUR wallet.

LOCK: extend a lock you hold, scoped to YOUR wallet. Pass the key + the token you got from lock.acquire and a new ttlSeconds. Returns { renewed:true } only if your token still matches (you can't extend someone else's lock). Use it to keep a long-running critical section locked. Private to your wallet (the x402 payer).

post/api/lock/renew

Request

  • Base URL: https://2s.io
  • URL: https://2s.io/api/lock/renew
  • Auth: API key in header PAYMENT-SIGNATURE

Request body

keystring required

The lock name.

tokenstring required

The token returned by lock.acquire.

ttlSecondsinteger required

New lease duration in seconds.

Response

(unresolved $ref)

Changes

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