Can you mock API requset? #496
Answered
by
PatrickAlphaC
david-hung
asked this question in
Q&A
-
Hello, so I was trying to request data from a chainlink oracle, like the Google Weather Oracle, but they only have a kovan test network? Is there a way to request API data using my local network to test, because it's difficult getting lots of Kovan. I'm not sure how or if it's possible to mock a API request, like how he does its with the VRF in the video If you can help thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
PatrickAlphaC
Jun 23, 2022
Replies: 1 comment 2 replies
-
Yes! You have two options.
In our hardhat-starter-kit we actually have examples of working with mock API calls! Check it out: |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
PatrickAlphaC
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes!
You have two options.
In our hardhat-starter-kit we actually have examples of working with mock API calls! Check it out:
https://github.com/smartcontractkit/hardhat-starter-kit