Kite
API ReferenceChains

Configure a chain

PUT
/api/chains/{id}/config

Authorization

rootKey
headerx-kite-root-key<token>

The server's root key. Grants access to every endpoint; add x-kite-app-id to act as one app

Path Parameters

id*string
Formatuuid

Request Body

application/json
  1. body
rpcUrls?array<>|
Itemsitems <= 10
slippageBps*|
Range0 <= value <= 9900
kiteFactoryAddress*string
Match^0x[0-9a-fA-F]{40}$
usdPeggedTokenId*string
Formatuuid
settlementTokenId*string
Formatuuid
settlementAddress?|
Match^0x[0-9a-fA-F]{40}$
onchainNotifierProviders*array<>
gasSponsorProviders*array<>
maxGasPrice?|
Match^[0-9]+$
Lengthlength <= 78

Response Body

Response for status 200

application/json
  1. response
id*string
Formatuuid
isActive*boolean
caip2Id*string
deletedAt*|
Formatdate-time
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
config*|null
Example Request
curl -X PUT 'https://testnet.usekite.site/api/chains/497f6eca-6276-4993-bfeb-53cbbbba6f08/config' \  -H 'Content-Type: application/json' \  -d '{  "slippageBps": 0,  "kiteFactoryAddress": "string",  "usdPeggedTokenId": "c72e8564-c07d-4a7b-9853-0eb8448cf2c7",  "settlementTokenId": "5e7e1039-acda-4faf-ad40-2a57452f567a",  "onchainNotifierProviders": [    "Alchemy"  ],  "gasSponsorProviders": [    "Alchemy"  ]}'
Example Response200
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "isActive": true,  "caip2Id": "string",  "deletedAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "config": {    "chainId": "9e7fb22a-9e5b-420e-8fd7-e3454fcfd5fd",    "rpcUrls": [      "string"    ],    "slippageBps": 0,    "kiteFactoryAddress": "string",    "usdPeggedTokenId": "c72e8564-c07d-4a7b-9853-0eb8448cf2c7",    "settlementTokenId": "5e7e1039-acda-4faf-ad40-2a57452f567a",    "settlementAddress": "string",    "onchainNotifierProviders": [      "Alchemy"    ],    "gasSponsorProviders": [      "Alchemy"    ],    "maxGasPrice": "string",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "settlementToken": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "chainId": "9e7fb22a-9e5b-420e-8fd7-e3454fcfd5fd",      "address": "string",      "symbol": "string",      "decimals": 0,      "name": "string",      "version": "string",      "icon": "string",      "supportsEIP3009": true,      "listed": true,      "deletedAt": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    },    "usdPeggedToken": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "chainId": "9e7fb22a-9e5b-420e-8fd7-e3454fcfd5fd",      "address": "string",      "symbol": "string",      "decimals": 0,      "name": "string",      "version": "string",      "icon": "string",      "supportsEIP3009": true,      "listed": true,      "deletedAt": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  }}