Seipex Finance
DiscordDragonSwapAstroportOpenSeaPallet
  • Seipex Finance
  • Seipex Digital Assets
    • Seipex Credits (SPEX)
    • Founder's Pass NFT
  • Seipex VRF
    • Integration
      • VRF Consumer Interface
      • Request Randomness
      • Randomness Callback
      • Simplified Example
      • Proof Validation
      • Extended VRF Consumer Interface
      • Extended Randomness Callback
      • Verify Proof
      • Complete Example
      • Security Considerations
      • Gas Cost Considerations
  • Seipex API
    • Available Endpoints
  • Seipex Mercury
    • Available Endpoints
Powered by GitBook
On this page
  1. Seipex VRF
  2. Integration

Extended VRF Consumer Interface

Integrate a new, extended VRF Consumer interface on your contract.

interface IVRFConsumer {    
    function requestRandomness(
        bytes32 userProvidedSeed
    ) external returns (uint256);
    function getRequestById(
        uint256 nonce
    ) external view returns (RandomnessRequest memory);
    function getVRFPublicKey() external view returns (address);
}

struct RandomnessRequest {
    address requester;
    uint256 requestBlock;
    uint256 requestId;
    bytes32 userProvidedSeed;
    uint8 status;
    bytes32 randomNumber;
    bytes32 proof;
}

You can see a few new functions and a struct that you'll learn more about in the next sections.

PreviousProof ValidationNextExtended Randomness Callback

Last updated 9 months ago