Skip to content

DF-25179: Migrates wbtc-address-set EA to use V2 endpoint#5025

Open
cl-efornaciari wants to merge 2 commits into
mainfrom
feature/DF-25179/migrate-to-v2-endpoint
Open

DF-25179: Migrates wbtc-address-set EA to use V2 endpoint#5025
cl-efornaciari wants to merge 2 commits into
mainfrom
feature/DF-25179/migrate-to-v2-endpoint

Conversation

@cl-efornaciari

@cl-efornaciari cl-efornaciari commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Closes #ISSUE_NUMBER_GOES_HERE

Description

......

Changes

  • High level
  • changes that
  • you made

Steps to Test

Start wbtc-address-set:

cd /Users/ericfornaciari/workspace/external-adapters-js/packages/sources/wbtc-address-set

export ADDRESSES_ENDPOINT='https://wbtc.network/api/v2/custodialAddresses'
export CACHE_ENABLED=false
export LOG_LEVEL=debug
export EA_PORT=8081

yarn start

Confirm it works properly:

curl -sS -X POST 'http://localhost:8081' \
  -H 'Content-Type: application/json' \
  -d '{"id":"1","data":{"endpoint":"addresses"}}' | jq .
{
  "result": null,
  "data": {
    "result": [
      {
        "id": "69d627a4ddfaf842b153cc3b20f0b3a3",
        "address": "bc1qsu3umzp5s2ugrtxmdds5lxzssncf4hfzxh2wufcdp4n7cv4vy3gqkhwtff",
        "balance": "701948",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "69ce193dddfaf842b1eee827ee8c83fe",
        "address": "bc1q7n7a0llkggx9j55wma2p6d7mj92qhy467fnkrxkgyxme5z556s5sukeha5",
        "balance": "300000",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "68fa0eb93c5a78fdd922d69698ccb77d",
        "address": "bc1q8sxr369hmgm7saqucnhwa3ppm7elgle8ah6kmzwvp8hprgwwcraqvzrsst",
        "balance": "150000",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "68e8b2323c5a78fdd9264bece38a71a8",
        "address": "39a4H2y1EhXi7CvstvAhxTS2bDxpAH5fD6",
        "balance": "600",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "68e8b2303c5a78fdd9264b959f9ea5c4",
        "address": "bc1qlgxt8u2x3r26eefvq0zp9flqfhgaqkelrvlv8y0wwxn63z53uutqhz0j8l",
        "balance": "10000007210",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "68938efac0d8ab33bb991e4ad3e22439",
        "address": "3CdEWt1ARZJEejR2xtpdA3dUGk3f2eHGA8",
        "balance": "546",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "68415ce533ddc18a5753780a9e38a4c3",
        "address": "bc1qtharwcyel9ef9ckzhxa4xml6rpykr4umvs5uf5d2knq8w2p9293qcn26fj",
        "balance": "10000000330",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "68415ce533ddc18a57537807e98409ce",
        "address": "bc1qlggc7z544fyxhc2s30ktljns5fcff2pzf2tt0pdl7pftlgfkazrslxanhx",
        "balance": "99414",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "68104536da4a850aa6339ba25400e4d8",
        "address": "3EuEvwodW88xEuwecsLb76x16tLxcUZAxx",
        "balance": "499899665",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e13c7d739d96ad090d2e411298c4e0",
        "address": "bc1q8gy2ffusr5shl802fmrcdhx3m95wjauqfhp5ymzr4hm5rf92hh5qeydvhl",
        "balance": "77543000000",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e13c1e739d96ad090d2d8ddd040a08",
        "address": "bc1qxhgd6t3l4rkl4s7qnqacvy36hs8052pktetp25zny0r55qu4n3aqf3rl07",
        "balance": "6732411458",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e13bfd739d96ad090d2d4d1a176f01",
        "address": "bc1qj589mwxxqppxr73q4ueyzx8pdnc3fc2fk25xzangp3ku3pt68mls78rc0m",
        "balance": "120000000330",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fad0c71cf542",
        "address": "3P73PXL5Gk7qKVQWgWu3Frrc4QPNomqCWs",
        "balance": "500000",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7face86163309",
        "address": "3HKt3hyRQ3DSCcZsGPM5awME3AKMsJr3af",
        "balance": "8596539146",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7facd259d4270",
        "address": "35GGyCXMGfhLkz5mnsMyvt6Z37gtkwMzg4",
        "balance": "7637874279",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7faccef532f8a",
        "address": "3PRCCQMdWwjEKy89iVdL8LouknsgygwWpL",
        "balance": "301302044052",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7facbd4001b87",
        "address": "3K43ux5cCAxfKgymq5eHnHS1toC9nrERbT",
        "balance": "9024950521",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7faca472f3cdf",
        "address": "3MM2BiaXBACfKUtVsyNr2RDXyNEhunez6v",
        "balance": "867937",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fac920dd82db",
        "address": "3NfBFZRgKfHVJy7rSTutZyGpa5M2GpRdwu",
        "balance": "262071394693",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fac8d4850dcb",
        "address": "3Py2iN5SEwSCtT5QHkDU1qhbvmdmMZ8cpK",
        "balance": "62582995363",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fac7665a760d",
        "address": "3KAGrSyTsKLckBgN7AiAfojbScfjGAHwFz",
        "balance": "5984736105",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fac6a8bd78bc",
        "address": "3ARRJS9VNVkMdiESpxq2AGfpZUQRUvdGgd",
        "balance": "237934308243",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fac5fc8540e0",
        "address": "3MkzCjZjodyaBXz7W8i9NTjduEdykdkd89",
        "balance": "175047305523",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fac49ca760b7",
        "address": "3MzRi499Cbcr4795iRnznfC97EFji23h7n",
        "balance": "39968048564",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fac36903bed7",
        "address": "32fN3YjNhtAzUjBHfTVFtiPBFPgy1MkBAC",
        "balance": "35218797578",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fac286e455fc",
        "address": "36h9DtMdqYWTxSg1yys2exZPFQoQXv8QRL",
        "balance": "223071995213",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fac12e03c985",
        "address": "3FDtvkk7hpZq5GuEJxt3Ps95vjtdDEfJ4T",
        "balance": "224073391293",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fac08a60b827",
        "address": "3Muz5dT5EguQgTiXgQ1eqJYNkjjQuSMgsb",
        "balance": "188001213187",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fabf97cd16d5",
        "address": "3KWe9k7TG2j7xNw8BP9YHXBeHy1knC1xGS",
        "balance": "238623390693",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fabe18d49578",
        "address": "36ZsF5YgJDW25eZKS6gnZMqW4gr6wv9xp1",
        "balance": "239997486293",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fabd5bd2b2f5",
        "address": "36jGhq48YgvjJWtEpqrc57QzXcBJQyCsS7",
        "balance": "240038599893",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fabcb2ef7e99",
        "address": "31sW8NHLr9MELRdoGPWrEk6wBd1pj2uzkB",
        "balance": "240114335793",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fabb65824f13",
        "address": "3HHLh4HSK8wj1w3YW9i4Chdnuybgadhpz1",
        "balance": "240118370993",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7faba60e221bf",
        "address": "3MnCLWSq31hetgbVA1Xn1VxVVb31SPeSKa",
        "balance": "240181809493",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fab96b412940",
        "address": "3JqwUY7pUwEWu2hz6mwzZKSQnvKyRRXCQM",
        "balance": "21432352049",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fab88ac3563c",
        "address": "3QdyHj1i4y5CywEFWJ5PwoqGzDxGyJGPeb",
        "balance": "240181813293",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fab716eadb76",
        "address": "3CxK8MVHuqXW85z4MF7A4FYk8k6jKPFgPW",
        "balance": "23841717228",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fab6b1397d28",
        "address": "3EmKqHZhXic3TymhuY8NLS7Bdk91erm4V7",
        "balance": "240209389793",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fab5611651f0",
        "address": "3QmVyCw6YnEvt1jXLeF5863uHPLRaKhWs5",
        "balance": "109520449435",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fab41addf4fb",
        "address": "36RYMHxKrvNvrFcovZVXEQWC11LLbPE56V",
        "balance": "14851427812",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fab3fa820f96",
        "address": "3AdKaaTBFPQgpFen9YERPmrfV7QVvkYQfp",
        "balance": "312715",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fab275984ca0",
        "address": "3KeG7RzDwGaTywRfQgPCQaeyMgi7C89eQc",
        "balance": "120117159793",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fab169c2ed6f",
        "address": "3CdzzKFGY7ZahrMCM1tBgoxrgSPUWX4RVY",
        "balance": "120117159793",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fab0adea7e7d",
        "address": "3AfJyKGXVBUcaWdyJeWxsasq1dHPw8pRZz",
        "balance": "115008558636",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7faaf5877f280",
        "address": "3CuoRMhRXvsxdYsNL4kmKDJyAhaDB7SmBn",
        "balance": "120117161493",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7faaea50ed51b",
        "address": "36U3VfLRN9kbQQXRGwP5SGUYebSB3MqVnp",
        "balance": "120117161493",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7faadf5ee6182",
        "address": "3APCmmVbkpKSmLkTbGUvdPUyfqA4CZ25a4",
        "balance": "90337117903",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7faac254a1563",
        "address": "3GTk9xdRHnPQ61Pm7Jnv2Z8hsXv5FMVyeY",
        "balance": "2621071506",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7faab3e1195fc",
        "address": "3Jj1juATP11jHfBvRiu3BbzdJCNeRskqzJ",
        "balance": "120297989093",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7faaac40e324f",
        "address": "3LbLR4uiq7RFrWgDKHfdgktAC88qtwY2Li",
        "balance": "74728794017",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7faa9a6fef59e",
        "address": "35dn2Sfsi9qmqZke8SfSVcaggED9uJYQhn",
        "balance": "120297990793",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7faa8827e761e",
        "address": "3PkGNCt85M3aNQkBqiT5Psgmz8FjNujEKK",
        "balance": "120297990793",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7faa7e90c77c8",
        "address": "3Kx4doXvL4UhDrKJqn8FoS5wVU3VeS9ebM",
        "balance": "120297990793",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7faa67001f3f8",
        "address": "3EedqW1fD4QRFmrPgkZZZvzHRzj9f4xVSX",
        "balance": "120378073093",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7faa560ae26c9",
        "address": "3GE2pWumzKXnNMA9PFggsBwyk7NYSJvGGg",
        "balance": "120378073693",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7faa4e27c9f9b",
        "address": "39ydxDT3H6KygeXQn8f1tYXk6BtCTrsutw",
        "balance": "120379810493",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7faa37b26a0ab",
        "address": "3NmVi1xVYZj5YXU8wcQyoUfcVRCLcYhqqQ",
        "balance": "120379812693",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7faa2473cd0ed",
        "address": "3HauLvRoUBueiiLwebk19w6rnUTYJkdwNW",
        "balance": "120379812693",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7faa174d95ad9",
        "address": "31sADuWnUApAxzXJZTaEziCn9DhZVUajwK",
        "balance": "120379812693",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7faa036426cca",
        "address": "3PxV5m54ZwMDheUyFecvRVQHJK7WG1t49V",
        "balance": "120456751293",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa9f31581892",
        "address": "32Cav9GPxma3wRprn2FtPQ7gxmCZ8ZEmzv",
        "balance": "120456752493",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa9e1f67af7c",
        "address": "3BCWh8prqQDsZDi6Pmvut9HJrhii1Vk7Ak",
        "balance": "120456754193",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa9d8b16a2d8",
        "address": "3HM8YGKhwwnZKmrUEoGroEgaG3dv8xkVZz",
        "balance": "109828050341",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa9c6cdf9eeb",
        "address": "34MPipmU3suumfX7WxTUTxmLX2uVK1Np8R",
        "balance": "120456754193",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa9bb15ce43b",
        "address": "37kFT7mcJqgkqKbd66VbgkHSQgnys2V7hp",
        "balance": "120608807293",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa9a3ff5ebd3",
        "address": "3MLH54DXCtmydRocRZz9pEkfTTGWribBa3",
        "balance": "120608808493",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa994100392e",
        "address": "3HGSCuXjnfEncUCPQ4GzNrv3BHcmLZFdeT",
        "balance": "120608808993",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa98a906a9af",
        "address": "34Qg9U75RNPqAmZzF2amJ1XNGQyVek7HkQ",
        "balance": "120608808993",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa97e76ee138",
        "address": "3QbVP6bTSXN2tXG66MTKtHtiJ1coKXnrjP",
        "balance": "120608808993",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa966b75653b",
        "address": "36m2gCFRpkikK6AXUQGKLabKmd8PMjwx1Z",
        "balance": "120608808993",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa95d50feb42",
        "address": "3BPbdokvatbZEFJHuVUstG9zeSDLr5RdvL",
        "balance": "120608808993",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa9433091a61",
        "address": "3FKkCxSZe1c4xZiVyJVBTbvzs9Lj1snqVC",
        "balance": "360150029",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa93d675c343",
        "address": "3HpHptRrwK5x9i7uULvk116QhsAnRJfJb8",
        "balance": "120608810493",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa924a5e7eeb",
        "address": "3PnoF45bZhJcPKGLf4nQzyQVAEFsxBxQQa",
        "balance": "120608810493",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa914e55f1b9",
        "address": "31x6dwHmXYHqd7YiwvJNPX8ryvDj8Cdht1",
        "balance": "120608810493",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa902390dd0e",
        "address": "3CPEGQzA227hHR2jUf66MdgBJ5wPnDdaW9",
        "balance": "120608810493",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa8f28e2d595",
        "address": "32Ver3t9feJgByfNLF8pggtNFPMf22iC3Q",
        "balance": "120608810493",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa8e395f3b96",
        "address": "3BCm2gVB29QDFLWt768jjTwKoe1N1QVwSU",
        "balance": "120608811293",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa8d2bf2e557",
        "address": "3A25qkpmhCrYGEZh39wc71u89dSXGCYSvd",
        "balance": "120663507093",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa8c0048843e",
        "address": "3JvmhjuxvLVM8NQzAwwMvzWAK6zDLQ5Aor",
        "balance": "120663762193",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa8b9b22b942",
        "address": "3Agd6vor95XcHvf1MPKE69KEpNbZTKD6JF",
        "balance": "120663764193",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa8a3d751236",
        "address": "39P2pJ9EmN3qmPAm1TTZPzp6T5LSsJq3eQ",
        "balance": "120663764193",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa8930487ece",
        "address": "34CyVpeNgNNEoBdEoSSH6aTjrUZDavaUtr",
        "balance": "120663764193",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa884acfb610",
        "address": "3DJNy9xMcMsNdmdipTgqME3TJCRkv7uS2g",
        "balance": "120663764193",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa87fe851c3f",
        "address": "3NW5tDLFceDb1a75QkGampkuuceZ3YPMUX",
        "balance": "120663764193",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa860db8d9d7",
        "address": "3CQBneh4TJtHGUP4QS3mfJc75NoiGgKwV3",
        "balance": "120663764193",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa859263244d",
        "address": "3AKea5UYSyMc2oRRdQYhkn57nXWMm5woDz",
        "balance": "120663764193",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa84f97dfe89",
        "address": "38EovPeRhGniW3cpYLJwptCqJkx9Y1Pg7G",
        "balance": "120663764193",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa83bd7d051b",
        "address": "3HziaqLNy8PpyQFLdwr2yxCjwEjRUjN6Eg",
        "balance": "120663764193",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa82c2af783b",
        "address": "3FHRnMSaGMAaLcoHbA5EVcEuYVxTEZdTyp",
        "balance": "120663764193",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa81dbe57206",
        "address": "3P4EDeK5fxCLEQzM7iQ7n95DWgG1cXSaqG",
        "balance": "120663764193",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa80a9327fd2",
        "address": "3PRHbh8ajUXv5wPD11CxFRs1hWBo8vR3zW",
        "balance": "120663764193",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa7f67168c26",
        "address": "3Cr3vRcZD5q4XbXCVTo8sFCN9Xb7z5isth",
        "balance": "120663764993",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa7eb98917f1",
        "address": "3DhbEcm1SuJjTRxZBXxHyceYGm7GdRB2pM",
        "balance": "120669179293",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa7d92716439",
        "address": "35cv1mcZBJkvkjY2KQSdmbo7Mq7E2yEVZD",
        "balance": "1693",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa7ce5892782",
        "address": "35LMppVy98ofPKeUXUk79FUSkVC8yiXHUF",
        "balance": "120669179293",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa7b7ff1bdf5",
        "address": "3MwfxJqsy943oqYhbdKiaBrFSK9xbyiAi9",
        "balance": "120669179293",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa7acd91dd19",
        "address": "3573rMHLB3VABY7VaXMWhRoCBVspLGC4xV",
        "balance": "120669179293",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa79d8ea77bf",
        "address": "3FVsTChmR7WYgfnU3CAmrrD3kqmaRMaJCC",
        "balance": "120669183693",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa784ff59db8",
        "address": "3JMDjCYxxi5MF3aXRx8Dg13Rign3masTXj",
        "balance": "72765151961",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa77f7c4d86e",
        "address": "3PyK2LYBfYMUXsa8sMhTSHQZ8StQy3Xoz8",
        "balance": "120669184293",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa763c605fd0",
        "address": "33gNdUGQTBT7cUbNx4892keGA2L64ixrfJ",
        "balance": "37335975847",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa75c006904d",
        "address": "3CrWGaRncSudU3EZPEhvWqeU2PG1xutr5x",
        "balance": "119730510151",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa74da5f30f5",
        "address": "3A37hJV9JPWR4UMCXC3QvKSeVGiRwgGtiU",
        "balance": "118640179033",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa7322694c86",
        "address": "35bXvntqjj5LnEpRVqU9bLcAPtT9crggYj",
        "balance": "165436241693",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa72fbef719e",
        "address": "31oMgrBjhbAr1ZZjFUFYfDT1ZYvx3Qp9qL",
        "balance": "192804298833",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa716414ba02",
        "address": "3CDy1xZavmpd27jV6TZm5teH8U6hrdXRES",
        "balance": "192804297833",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa70e6d3cfb0",
        "address": "3J37HnDBzWN1sm65mbD9U5zvKrp2bzhuYJ",
        "balance": "1147",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      },
      {
        "id": "66e12e0f2ecdf082dea7fa6f6bfa4585",
        "address": "3HaHcbNmhJKgJ3dtbm2tg8XH87BJkRx7QE",
        "balance": "7687",
        "type": "custodial",
        "coin": "btc",
        "chainId": "mainnet",
        "network": "bitcoin"
      }
    ]
  },
  "timestamps": {
    "providerDataRequestedUnixMs": 1780615464169,
    "providerDataReceivedUnixMs": 1780615464563
  },
  "statusCode": 200,
  "meta": {
    "adapterName": "WBTC",
    "metrics": {
      "feedId": "N/A"
    }
  }
}

Start PoR EA locally:

cd /Users/ericfornaciari/workspace/external-adapters-js/packages/composites/proof-of-reserves

export WBTC_ADAPTER_URL='http://localhost:8081'
export POR_INDEXER_ADAPTER_URL='https://adapters.main.prod.cldev.sh/por-indexer'
export CACHE_ENABLED=false
export LOG_LEVEL=debug
export EA_PORT=8080

yarn start

Hit PoR with payload:

curl -sS -X POST 'http://localhost:8080' \
  -H 'Content-Type: application/json' \
  -d '{
    "id": "1",
    "data": {
      "protocol": "wbtc",
      "indexer": "por_indexer"
    }
  }' | jq .
{
  "result": "11654454222827",
  "statusCode": 200,
  "data": {
    "result": "11654454222827",
    "statusCode": 200,
    "decimals": 8
  },
  "meta": {
    "adapterName": "PROOF_OF_RESERVES"
  },
  "metricsMeta": {
    "feedId": "{\"data\":{\"protocol\":\"wbtc\",\"indexer\":\"por_indexer\"}}"
  }
}

Quality Assurance

  • If a new adapter was made, or an existing one was modified so that its environment variables have changed, update the relevant infra-k8s configuration file.
  • If a new adapter was made, or an existing one was modified so that its environment variables have changed, update the relevant adapter-secrets configuration file.
  • If a new adapter was made, or a new endpoint was added, update the test-payload.json file with relevant requests.
  • The branch naming follows git flow (feature/x, chore/x, release/x, hotfix/x, fix/x) or is created from Jira.
  • This is related to a maximum of one Jira story or GitHub issue.
  • Types are safe (avoid TypeScript/TSLint features like any and disable, instead use more specific types).
  • All code changes have 100% unit and integration test coverage. If testing is not applicable or too difficult to justify doing, the reasoning should be documented explicitly in the PR.

@changeset-bot

changeset-bot Bot commented Jun 4, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 3b1b8c8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@chainlink/wbtc-address-set-adapter Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cl-efornaciari cl-efornaciari marked this pull request as ready for review June 5, 2026 00:04
'@chainlink/wbtc-address-set-adapter': major
---

Update wbtc-address-set to use V2 API

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it is a major need to specify what needs to be done for upgrade

const result = response.data.result
const { data, total } = response.data

if (total > data.length) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't we implement pagination?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants