Light mode version of Land Your Home
V1Chains leave

Post Chain Leave

POST
/v1/chains/{chainId}/leave

The user leaves the chain. Send { "transactionIds": [...] } to leave only some transactions; with no body they leave all of them. Destructive: see the folder notes.

Required variables:

  • baseUrl
  • apiKey (needs chains:write)
  • userToken
  • chainId

Authorization

bearerAuth userTokenAuth
AuthorizationBearer <token>

Partner API key (lyh_...): identifies the calling partner, its scopes and rate limit.

In: header

X-User-Token<token>

The user's OAuth 2.1 access token, issued by Land Your Home's OAuth server to this partner's OAuth client. Requests run as this user.

In: header

Path Parameters

chainId*string

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/chains/string/leave"
{  "data": {    "transactionIds": [      "b939a7de-a264-4855-b37d-d9721cea8797",      "cdcb83f0-2258-43c5-82ab-0f4f58018900"    ]  }}