Pulling data from AWS On-chain
summary
A working Hardhat project sends a vanilla JavaScript snippet to Chainlink Functions (beta) which signs AWS SigV4 requests to the AWS Currency Exchange API, encrypts AWS keys with the Chainlink env‑enc npm helper (.env.encrypted), and returns the price for GBP→USD. Local testing uses npx hardhat functions simulate and yields 1.26 USD (encoded as 126 after multiplying by 100). The DON runs the same code across multiple nodes (consensus, e.g. five replicas), requires a funded subscription, and uses a ~300,000 gas cap.
AI-written summary · about
chapters (12)
- 0:00Introduction and setup
- 1:24Connecting AWS to blockchain
- 3:21How Chainlink Functions work
- 6:57Architectural workflow
- 10:01Subscription management
- 13:24Security and secret handling
- 19:12Hands-on project setup
- 24:50AWS configuration
- 34:43Code and config walkthrough
- 51:24Setting encrypted secrets
- 1:01:20Executing the request
- 1:08:38Q&A and closing








