AccessControlledAggregator Reads
From Chainlink Community Wiki
Revision as of 19:48, 7 June 2022 by Devtrace (talk | contribs) (Created page with " === '''AccessControlledAggregator''' === ==== '''ETH / USD AccessControlledAggregator contract address: [https://etherscan.io/address/0x00c7A37B03690fb9f41b5C5AF8131735C7275446 0x00c7A37B03690fb9f41b5C5AF8131735C7275446]''' ==== The Access Controlled Aggregator is the Aggregator contract that each Chainlink Node sends its observations/transmissions to. This contract is read by the <code>EACAggregatorProxy</code> ==== '''Read Calls''' ==== This page contains all of th...")
AccessControlledAggregator
ETH / USD AccessControlledAggregator contract address: 0x00c7A37B03690fb9f41b5C5AF8131735C7275446
The Access Controlled Aggregator is the Aggregator contract that each Chainlink Node sends its observations/transmissions to.
This contract is read by the EACAggregatorProxy
Read Calls
This page contains all of the read calls you can make to the AccessControlledAggregator
contracts.
If you'd like to check out the write calls, please check the AccessControlledAggregator_Writes page.
allocatedFunds
The allocatedFunds query will provide you with the amount of LINK (in gwei -- 18 decimal places) that is yet to be withdrawn by Chainlink Nodes.
- Example Query:
curl -s -H "Content-Type: application/json" https://$YOUR_RPC_ENDPOINT -d '{"jsonrpc": "2.0", "id": 123, "method": "eth_call", "params":[{"from":null,"to":"0x00c7A37B03690fb9f41b5C5AF8131735C7275446","data":"0xd4cc54e4"}, "latest"]}' | jq -r .result
- Example Response:
0x00000000000000000000000000000000000000000000001c978fc68e5c470000
- Converting the Response to Friendly Values
- allocatedFunds
uint128
00000000000000000000000000000000000000000000001c978fc68e5c470000
- allocatedFunds =
527430000000000000000
- allocatedFunds =
- allocatedFunds
availableFunds
The availableFunds
call will provide you with the amount of LINK (in gwei -- 18 decimal places) that is available to pay Chainlink Nodes.
- Example Query:
curl -s -H "Content-Type: application/json" https://$YOUR_RPC_ENDPOINT -d '{"jsonrpc": "2.0", "id": 123, "method": "eth_call", "params":[{"from":null,"to":"0x00c7A37B03690fb9f41b5C5AF8131735C7275446","data":"0x46fcff4c"}, "latest"]}' | jq -r .result
- Example Response:
0x0000000000000000000000000000000000000000000000000000000000000000
- Converting the Response to Friendly Values
- availableFunds
uint128
0000000000000000000000000000000000000000000000000000000000000000
- availableFunds =
0
- availableFunds =
- availableFunds