Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 3.14 KB

File metadata and controls

59 lines (41 loc) · 3.14 KB

DLC_BTC_POR

v3

Environment Variables

Required? Name Description Type Options Default
{NETWORK}_RPC_URL RPC url for a NETWORK. NETWORK is the value of network input param string
{NETWORK}_CHAIN_ID Chain id for a NETWORK. NETWORK is the value of network input param string
BITCOIN_RPC_URL THE RPC URL of bitcoin node string
EVM_RPC_BATCH_SIZE Number of vaults to fetch from a DLC contract at a time number 100
BITCOIN_NETWORK Bitcoin network name enum mainnet, regtest, testnet mainnet
CONFIRMATIONS The number of confirmations to query data from number 6
BITCOIN_RPC_GROUP_SIZE The number of concurrent RPC calls to BITCOIN_RPC_URL to make at a time. number 30
BACKGROUND_EXECUTE_MS The amount of time the background execute should sleep before performing the next request number 10000

Data Provider Rate Limits

There are no rate limits for this adapter.


Input Parameters

Required? Name Description Type Options Default
endpoint The endpoint to use string reserves reserves

Reserves Endpoint

reserves is the only supported name for this endpoint.

Input Params

Required? Name Aliases Description Type Options Default Depends On Not Valid With
network The name of the RPC network. string
dlcContract Contract address to fetch vaults. string

Example

Request:

{
  "data": {
    "endpoint": "reserves",
    "network": "arbitrum",
    "dlcContract": "0x20157DBAbb84e3BBFE68C349d0d44E48AE7B5AD2"
  }
}

MIT License