Skip to content

Can you mock API requset? #496

Answered by PatrickAlphaC
david-hung asked this question in Q&A
Discussion options

You must be logged in to vote

Yes!

You have two options.

  1. Run a local chainlink node yourself (not advised)
  2. Use a mock (like what we do with VRF)

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

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@david-hung
Comment options

@PatrickAlphaC
Comment options

Answer selected by PatrickAlphaC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants