Skip to content

Latest commit

 

History

History
92 lines (68 loc) · 3.54 KB

File metadata and controls

92 lines (68 loc) · 3.54 KB

Chainlink External Adapter for Celsius Address List Wallet

2.0.20 v2

This adapter fetches a list of addresses for the Proof of Reserves adapter. The custodial chain addresses are pulled from the Celsius Address Manager contract on an Ethereum chain. It is similar to the Chain Reserve Wallet adapter, except the input to the smart contract method is a string instead of uint8.

This document was generated automatically. Please see README Generator for more info.

Environment Variables

Required? Name Description Type Options Default
RPC_URL The Ethereum RPC URL where the smart contract holding the custodial addresses is deployed. string
CHAIN_ID The chain id to connect to string 1

Data Provider Rate Limits

There are no rate limits for this adapter.


Input Parameters

Every EA supports base input parameters from this list

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

Wallet Endpoint

This endpoint returns a list of custodial chain addresses from an Ethereum smart contract.

wallet is the only supported name for this endpoint.

Input Params

Required? Name Aliases Description Type Options Default Depends On Not Valid With
chainId The name of the target custodial chain string mainnet
contractAddress The address of the Address Manager contract holding the custodial addresses. string
network The name of the target custodial network protocol string bitcoin

Example

Request:

{
  "id": "1",
  "data": {
    "chainId": "mainnet",
    "contractAddress": "0x0123456789abcdef0123456789abcdef01234567",
    "network": "bitcoin",
    "endpoint": "wallet"
  },
  "debug": {
    "cacheKey": "yZJXHU2Ti5vX4r/EZwuu/pi9uMI="
  }
}

Response:

{
  "jobRunID": "1",
  "data": {
    "result": [
      {
        "address": "bc1q4gwx0f6yqurq0gwj9ktwlevrp3eu8snn5kaaax",
        "chainId": "mainnet",
        "network": "bitcoin"
      }
    ]
  },
  "result": [
    {
      "address": "bc1q4gwx0f6yqurq0gwj9ktwlevrp3eu8snn5kaaax",
      "chainId": "mainnet",
      "network": "bitcoin"
    }
  ],
  "statusCode": 200
}

MIT License