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.
$ git clone [email protected]:linkpoolio/vrf-direct-funding-consumer.git
# Network RPCs
export RPC_URL=
# Private key for contract deployment
export PRIVATE_KEY=
# Explorer API key used to verify contracts
export EXPLORER_KEY=
# root
$ make install
# root
$ make deploy
# root
$ make test