For the complete documentation index, see llms.txt. This page is also available as Markdown.

POST Verify settlement

Validates your settlement request and returns the result if valid.

post
Header parameters
apiKeystringRequired

The API key that was assigned to you by Native

Body
chainstring · enumRequired

Native blockchain name, eg: ethereum, bsc, etc

Example: ethereumPossible values:
recipientstringRequired

The address of the market maker or the settler

Pattern: ^0x[a-fA-F0-9]{40}$
traderstringRequired

The address of the trader

Pattern: ^0x[a-fA-F0-9]{40}$
Responses
201

Success

application/json
idstringRead-onlyRequired
noncestringRead-onlyRequired
recipientstringRead-onlyRequired
chainobjectRead-onlyRequired
creditChangeUsdnumberRead-onlyRequired
traderstringRead-onlyRequired
requestAtstring · date-timeRead-onlyRequired
enableAtstring · date-timeRead-onlyRequired
expiresAtstring · date-timeRead-onlyRequired
typestringRead-onlyRequired
post/v1/lend/verify-settlement
POST /lend/v1/lend/verify-settlement HTTP/1.1
Host: newapi.native.org
apiKey: text
Content-Type: application/json
Accept: */*
Content-Length: 115

{
  "chain": "ethereum",
  "recipient": "text",
  "positionUpdates": [
    {
      "tokenAddress": "text",
      "amount": "text"
    }
  ],
  "trader": "text"
}
{
  "id": "text",
  "nonce": "text",
  "recipient": "text",
  "chain": {},
  "positionUpdates": [
    {
      "tokenAddress": "text",
      "amount": "text"
    }
  ],
  "creditChangeUsd": 1,
  "trader": "text",
  "requestAt": "2026-01-01T00:00:00.000Z",
  "enableAt": "2026-01-01T00:00:00.000Z",
  "expiresAt": "2026-01-01T00:00:00.000Z",
  "type": "text"
}

Example response

{
    "id": "d49c39ed-ff63-41c0-bf3a-75f6d56f7346",
    "nonce": "6168514449590345",
    "recipient": "0x9B85B4A413Efe69684290816a3E814B4aA1EFf63",
    "chain": "base",
    "positionUpdates": [
        {
            "tokenAddress": "0x4200000000000000000000000000000000000006",
            "amount": "-5000000000"
        }
    ],
    "creditChangeUsd": -0.00001168615,
    "trader": "0x9B85B4A413Efe69684290816a3E814B4aA1EFf63",
    "requestAt": "2024-01-31T08:09:22.645Z",
    "enableAt": "2024-01-31T08:14:22.645Z",
    "expiresAt": "2024-01-31T08:15:22.645Z",
    "type": "settlement"
}

Error responses:

Last updated