Skip to content

linkpoolio/vrf-direct-funding

Repository files navigation

VRF Direct Funding COnsumer

I. About

This is a consumer contract that allows users to pay for VRF calls in LINK. The purpose of this contract is to demonstrate how to use the Chainlink VRF Direct Funding method. This contract is not intended to be used in production. It is intended to be used as a reference for developers who want to implement the Chainlink VRF Direct Funding method in their own contracts.

II. Pre-requisites

1. Clone repo

$ git clone [email protected]:linkpoolio/vrf-direct-funding-consumer.git

2. Create etherscan API key

3. Create .env file

# Network RPCs
export RPC_URL=

# Private key for contract deployment
export PRIVATE_KEY=

# Explorer API key used to verify contracts
export EXPLORER_KEY=

4. Install dependencies

# root
$ make install

5. Deploy contract

# root
$ make deploy

6. Test contract

# root
$ make test

About

VRF Direct Funding Consumer Contract

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published