Contract 0x4763ce00cec794931908bd299f63c9d13bbd8f67 3

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x28118c2151f806aaead8666c12b0997de7adfc381cf9f1d2a2afe8757ab054620x08b2da0a206026542022-10-03 17:54:1154 secs ago0xcd19a5475983d85bdb77991fa886105743a9cbe9 IN  0x4763ce00cec794931908bd299f63c9d13bbd8f670 AVAX0.00516124787527.425
0xe3226e7a25fe8882ddb36db582081a621cad56a2d67e6100e901810c62be69e30x08b2da0a206024002022-10-03 17:45:269 mins ago0xcd19a5475983d85bdb77991fa886105743a9cbe9 IN  0x4763ce00cec794931908bd299f63c9d13bbd8f670 AVAX0.00479692827
0x85732e44ee9f9843568fe8f44ade859d45de8a9e5100336779683d98be8fc2a40x08b2da0a206023882022-10-03 17:45:0010 mins ago0xcd19a5475983d85bdb77991fa886105743a9cbe9 IN  0x4763ce00cec794931908bd299f63c9d13bbd8f670 AVAX0.00667674927
0x86f83af17b3f7c8b1a20c12acc5c1c0fc184e702448061337c3f26f6629d44620x08b2da0a206023702022-10-03 17:44:2410 mins ago0xcd19a5475983d85bdb77991fa886105743a9cbe9 IN  0x4763ce00cec794931908bd299f63c9d13bbd8f670 AVAX0.004727850627.425
0x327dd17e9eb68af7b7f410c8edb2a2a3024df0b209e4154a62088a480187e8ff0x08b2da0a206022612022-10-03 17:40:2614 mins ago0xcd19a5475983d85bdb77991fa886105743a9cbe9 IN  0x4763ce00cec794931908bd299f63c9d13bbd8f670 AVAX0.00455948426.5
0xb2e22d2266381e1d18ffa997bb7a63d2cf3b004ca1535fc3fc965d97786f05fe0x08b2da0a206021742022-10-03 17:37:2817 mins ago0xcd19a5475983d85bdb77991fa886105743a9cbe9 IN  0x4763ce00cec794931908bd299f63c9d13bbd8f670 AVAX0.006740249429.85
0x57f076fa32955ae63cb54e93f2eec772c1175012fa73cc047d402ba3cd436b690x08b2da0a206021572022-10-03 17:36:5418 mins ago0xcd19a5475983d85bdb77991fa886105743a9cbe9 IN  0x4763ce00cec794931908bd299f63c9d13bbd8f670 AVAX0.006131427.5
0x6aebec2a3c69b410f24788e21a9534500f64bf1555737c97d1655feaf363d2f10x08b2da0a206021232022-10-03 17:35:4619 mins ago0xcd19a5475983d85bdb77991fa886105743a9cbe9 IN  0x4763ce00cec794931908bd299f63c9d13bbd8f670 AVAX0.00471578126.5
0xc25a0eef1333d368d1cc4748d7ca99f428b52eaee7ed6a63d0cdc3cd4b818b550x08b2da0a206021002022-10-03 17:35:0020 mins ago0xcd19a5475983d85bdb77991fa886105743a9cbe9 IN  0x4763ce00cec794931908bd299f63c9d13bbd8f670 AVAX0.00464258826.5
0x2936c57212ffe89feee939455c46777ae3dd0368a0e1ebac0e08a5fc83481e450x08b2da0a206020432022-10-03 17:33:0621 mins ago0xcd19a5475983d85bdb77991fa886105743a9cbe9 IN  0x4763ce00cec794931908bd299f63c9d13bbd8f670 AVAX0.00602326827
0x1e1e89591f3df812a721a7b4a9eab987e9a2491d9ea64cb5a5f548d86834f8510x08b2da0a206020082022-10-03 17:31:5523 mins ago0xcd19a5475983d85bdb77991fa886105743a9cbe9 IN  0x4763ce00cec794931908bd299f63c9d13bbd8f670 AVAX0.006886632527.5
0x2b577672ad4d1b4e0b3cd59978582793b026ce8098fc1189b5d313bc31bdb75d0x08b2da0a206019902022-10-03 17:31:1623 mins ago0xcd19a5475983d85bdb77991fa886105743a9cbe9 IN  0x4763ce00cec794931908bd299f63c9d13bbd8f670 AVAX0.005405783427.45
0x4ab701dea9e30ee1ef8d16fe726b6939ce95aec3a8a6e48febbb0a32ac20f3fb0x08b2da0a206019702022-10-03 17:30:3524 mins ago0xcd19a5475983d85bdb77991fa886105743a9cbe9 IN  0x4763ce00cec794931908bd299f63c9d13bbd8f670 AVAX0.0054011343527.425
0x7a743499aa6f981f9be23ba29722152321f4b8b6158ed82ac4934d71470ab9690x08b2da0a206019552022-10-03 17:30:0525 mins ago0xcd19a5475983d85bdb77991fa886105743a9cbe9 IN  0x4763ce00cec794931908bd299f63c9d13bbd8f670 AVAX0.00533857527.5
0x38d599ba81e9aa50441808b36327575f4d37102cc3f45c54010017e72b511a9d0x08b2da0a206019432022-10-03 17:29:4225 mins ago0xcd19a5475983d85bdb77991fa886105743a9cbe9 IN  0x4763ce00cec794931908bd299f63c9d13bbd8f670 AVAX0.00512609675427.23604885
0x2f482dd3d90e21abfea287ed1ffa3a6b05c7f71c9319d03767a3a2d3cbe752810x08b2da0a206019282022-10-03 17:29:0625 mins ago0xcd19a5475983d85bdb77991fa886105743a9cbe9 IN  0x4763ce00cec794931908bd299f63c9d13bbd8f670 AVAX0.00538409727
0xf7aa19c58269cb184ce726a7254be23575780d9c7ba01d0bc58ce6376eb701670x08b2da0a206018892022-10-03 17:27:4527 mins ago0xcd19a5475983d85bdb77991fa886105743a9cbe9 IN  0x4763ce00cec794931908bd299f63c9d13bbd8f670 AVAX0.00661978139327.038829342
0x62d8a431b45324ee6af95c1b5d409f88090dc42595075c91fdf84c5cede406b80x08b2da0a206018802022-10-03 17:27:2427 mins ago0xcd19a5475983d85bdb77991fa886105743a9cbe9 IN  0x4763ce00cec794931908bd299f63c9d13bbd8f670 AVAX0.00509787384527.038829342
0x9dd7896972a6b79ab1a0d1efb1fe8ff879c260899310dd08da2405a0b0e1ac7e0x08b2da0a206018682022-10-03 17:27:0028 mins ago0xcd19a5475983d85bdb77991fa886105743a9cbe9 IN  0x4763ce00cec794931908bd299f63c9d13bbd8f670 AVAX0.005260997527.5
0xb38bd169aa56548aab02eefeb7e60b6d85dbce0b8e8f08ac011443900b813f7c0x08b2da0a206018482022-10-03 17:26:1728 mins ago0xcd19a5475983d85bdb77991fa886105743a9cbe9 IN  0x4763ce00cec794931908bd299f63c9d13bbd8f670 AVAX0.005185482527.5
0x5d7f903332384685228eda6dac8157324534d5ed0d251e8c3faf8f3b99be288d0x08b2da0a206018202022-10-03 17:25:2129 mins ago0xcd19a5475983d85bdb77991fa886105743a9cbe9 IN  0x4763ce00cec794931908bd299f63c9d13bbd8f670 AVAX0.00680113527.5
0xf4f71efda403daa00fa02c1a0c51a4adc5afe949551b0f4728aedb0ccb89ee100x08b2da0a206018162022-10-03 17:25:1029 mins ago0xcd19a5475983d85bdb77991fa886105743a9cbe9 IN  0x4763ce00cec794931908bd299f63c9d13bbd8f670 AVAX0.003633107527.5
0x07582eee4768670f1ad8cf541e898b5025e0343277c6f5733cb267f699dfdc1f0x08b2da0a206018102022-10-03 17:24:5730 mins ago0xcd19a5475983d85bdb77991fa886105743a9cbe9 IN  0x4763ce00cec794931908bd299f63c9d13bbd8f670 AVAX0.0051767127.5
0xc479adca46cb466bffa207db5ff7c9633e7ae0d723a6a17d10768beba580b8810x08b2da0a206017832022-10-03 17:23:5831 mins ago0xcd19a5475983d85bdb77991fa886105743a9cbe9 IN  0x4763ce00cec794931908bd299f63c9d13bbd8f670 AVAX0.006723887527.5
0x26435a3629e2b5435464c268bf3444af5c8e58bfb2afa19efb29483ba154cc780x08b2da0a206017242022-10-03 17:21:5133 mins ago0xcd19a5475983d85bdb77991fa886105743a9cbe9 IN  0x4763ce00cec794931908bd299f63c9d13bbd8f670 AVAX0.00656756898526.825346
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BatchVRFCoordinatorV2

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 2 : BatchVRFCoordinatorV2.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

import "./VRFTypes.sol";

/**
 * @title BatchVRFCoordinatorV2
 * @notice The BatchVRFCoordinatorV2 contract acts as a proxy to write many random responses to the
 *   provided VRFCoordinatorV2 contract efficiently in a single transaction.
 */
contract BatchVRFCoordinatorV2 {
  VRFCoordinatorV2 public immutable COORDINATOR;

  event ErrorReturned(uint256 indexed requestId, string reason);
  event RawErrorReturned(uint256 indexed requestId, bytes lowLevelData);

  constructor(address coordinatorAddr) {
    COORDINATOR = VRFCoordinatorV2(coordinatorAddr);
  }

  /**
   * @notice fulfills multiple randomness requests with the provided proofs and commitments.
   * @param proofs the randomness proofs generated by the VRF provider.
   * @param rcs the request commitments corresponding to the randomness proofs.
   */
  function fulfillRandomWords(VRFTypes.Proof[] memory proofs, VRFTypes.RequestCommitment[] memory rcs) external {
    require(proofs.length == rcs.length, "input array arg lengths mismatch");
    for (uint256 i = 0; i < proofs.length; i++) {
      try COORDINATOR.fulfillRandomWords(proofs[i], rcs[i]) returns (
        uint96 /* payment */
      ) {
        continue;
      } catch Error(string memory reason) {
        uint256 requestId = getRequestIdFromProof(proofs[i]);
        emit ErrorReturned(requestId, reason);
      } catch (bytes memory lowLevelData) {
        uint256 requestId = getRequestIdFromProof(proofs[i]);
        emit RawErrorReturned(requestId, lowLevelData);
      }
    }
  }

  /**
   * @notice Returns the proving key hash associated with this public key.
   * @param publicKey the key to return the hash of.
   */
  function hashOfKey(uint256[2] memory publicKey) internal pure returns (bytes32) {
    return keccak256(abi.encode(publicKey));
  }

  /**
   * @notice Returns the request ID of the request associated with the given proof.
   * @param proof the VRF proof provided by the VRF oracle.
   */
  function getRequestIdFromProof(VRFTypes.Proof memory proof) internal pure returns (uint256) {
    bytes32 keyHash = hashOfKey(proof.pk);
    return uint256(keccak256(abi.encode(keyHash, proof.seed)));
  }
}

interface VRFCoordinatorV2 {
  function fulfillRandomWords(VRFTypes.Proof memory proof, VRFTypes.RequestCommitment memory rc)
    external
    returns (uint96);
}

File 2 of 2 : VRFTypes.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

/**
 * @title VRFTypes
 * @notice The VRFTypes library is a collection of types that is required to fulfill VRF requests
 * 	on-chain. They must be ABI-compatible with the types used by the coordinator contracts.
 */
library VRFTypes {
  // ABI-compatible with VRF.Proof.
  // This proof is used for VRF V2.
  struct Proof {
    uint256[2] pk;
    uint256[2] gamma;
    uint256 c;
    uint256 s;
    uint256 seed;
    address uWitness;
    uint256[2] cGammaWitness;
    uint256[2] sHashWitness;
    uint256 zInv;
  }

  // ABI-compatible with VRFCoordinatorV2.RequestCommitment.
  // This is only used for VRF V2.
  struct RequestCommitment {
    uint64 blockNum;
    uint64 subId;
    uint32 callbackGasLimit;
    uint32 numWords;
    address sender;
  }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000000
  },
  "metadata": {
    "bytecodeHash": "none"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"coordinatorAddr","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"requestId","type":"uint256"},{"indexed":false,"internalType":"string","name":"reason","type":"string"}],"name":"ErrorReturned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"requestId","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"lowLevelData","type":"bytes"}],"name":"RawErrorReturned","type":"event"},{"inputs":[],"name":"COORDINATOR","outputs":[{"internalType":"contract VRFCoordinatorV2","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256[2]","name":"pk","type":"uint256[2]"},{"internalType":"uint256[2]","name":"gamma","type":"uint256[2]"},{"internalType":"uint256","name":"c","type":"uint256"},{"internalType":"uint256","name":"s","type":"uint256"},{"internalType":"uint256","name":"seed","type":"uint256"},{"internalType":"address","name":"uWitness","type":"address"},{"internalType":"uint256[2]","name":"cGammaWitness","type":"uint256[2]"},{"internalType":"uint256[2]","name":"sHashWitness","type":"uint256[2]"},{"internalType":"uint256","name":"zInv","type":"uint256"}],"internalType":"struct VRFTypes.Proof[]","name":"proofs","type":"tuple[]"},{"components":[{"internalType":"uint64","name":"blockNum","type":"uint64"},{"internalType":"uint64","name":"subId","type":"uint64"},{"internalType":"uint32","name":"callbackGasLimit","type":"uint32"},{"internalType":"uint32","name":"numWords","type":"uint32"},{"internalType":"address","name":"sender","type":"address"}],"internalType":"struct VRFTypes.RequestCommitment[]","name":"rcs","type":"tuple[]"}],"name":"fulfillRandomWords","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a060405234801561001057600080fd5b50604051610bab380380610bab83398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b608051610b1a610091600039600081816055015261011d0152610b1a6000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806308b2da0a1461003b5780633b2bcbf114610050575b600080fd5b61004e610049366004610655565b6100a0565b005b6100777f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b805182511461010f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f696e70757420617272617920617267206c656e67746873206d69736d61746368604482015260640160405180910390fd5b60005b8251811015610320577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663af198b97848381518110610169576101696107b4565b6020026020010151848481518110610183576101836107b4565b60200260200101516040518363ffffffff1660e01b81526004016101a892919061080c565b6020604051808303816000875af1925050508015610201575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526101fe9181019061090c565b60015b61030c5761020d61093a565b806308c379a0036102915750610221610955565b8061022c5750610293565b6000610250858481518110610243576102436107b4565b6020026020010151610325565b9050807f4dcab4ce0e741a040f7e0f9b880557f8de685a9520d4bfac272a81c3c3802b2e836040516102829190610a6a565b60405180910390a2505061030e565b505b3d8080156102bd576040519150601f19603f3d011682016040523d82523d6000602084013e6102c2565b606091505b5060006102da858481518110610243576102436107b4565b9050807fbfd42bb5a1bf8153ea750f66ea4944f23f7b9ae51d0462177b9769aa652b61b5836040516102829190610a6a565b505b8061031881610a7d565b915050610112565b505050565b6000806103358360000151610394565b9050808360800151604051602001610357929190918252602082015260400190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291905280516020909101209392505050565b6000816040516020016103a79190610adc565b604051602081830303815290604052805190602001209050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60a0810181811067ffffffffffffffff82111715610413576104136103c4565b60405250565b610120810167ffffffffffffffff81118282101715610413576104136103c4565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f830116810181811067ffffffffffffffff8211171561047e5761047e6103c4565b6040525050565b60405161049181610419565b90565b600067ffffffffffffffff8211156104ae576104ae6103c4565b5060051b60200190565b600082601f8301126104c957600080fd5b6040516040810181811067ffffffffffffffff821117156104ec576104ec6103c4565b806040525080604084018581111561050357600080fd5b845b8181101561051d578035835260209283019201610505565b509195945050505050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461054c57600080fd5b919050565b803567ffffffffffffffff8116811461054c57600080fd5b803563ffffffff8116811461054c57600080fd5b600082601f83011261058e57600080fd5b8135602061059b82610494565b604080516105a9838261043a565b84815260a094850287018401948482019350888611156105c857600080fd5b8488015b868110156106475781818b0312156105e45760008081fd5b83516105ef816103f3565b6105f882610551565b8152610605878301610551565b87820152610614858301610569565b858201526060610625818401610569565b908201526080610636838201610528565b9082015285529385019381016105cc565b509098975050505050505050565b6000806040838503121561066857600080fd5b823567ffffffffffffffff8082111561068057600080fd5b818501915085601f83011261069457600080fd5b813560206106a182610494565b6040516106ae828261043a565b8381526101a0938402860183019383820192508a8511156106ce57600080fd5b958301955b848710156107865780878c0312156106eb5760008081fd5b6106f3610485565b6106fd8c896104b8565b815261070c8c60408a016104b8565b85820152608080890135604083015260a0808a0135606084015260c0808b01358385015260e0925061073f838c01610528565b8285015261010091506107548f838d016104b8565b908401526107668e6101408c016104b8565b9183019190915261018089013590820152835295860195918301916106d3565b509650508601359250508082111561079d57600080fd5b506107aa8582860161057d565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b8060005b60028110156108065781518452602093840193909101906001016107e7565b50505050565b6000610240820190506108208285516107e3565b602084015161083260408401826107e3565b5060408401516080830152606084015160a0830152608084015160c083015273ffffffffffffffffffffffffffffffffffffffff60a08501511660e083015260c0840151610100610885818501836107e3565b60e0860151915061089a6101408501836107e3565b85015161018084015250825167ffffffffffffffff9081166101a08401526020840151166101c0830152604083015163ffffffff9081166101e0840152606084015116610200830152608083015173ffffffffffffffffffffffffffffffffffffffff166102208301525b9392505050565b60006020828403121561091e57600080fd5b81516bffffffffffffffffffffffff8116811461090557600080fd5b600060033d11156104915760046000803e5060005160e01c90565b600060443d10156109635790565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff81602484011181841117156109b157505050505090565b82850191508151818111156109c95750505050505090565b843d87010160208285010111156109e35750505050505090565b6109f26020828601018761043a565b509095945050505050565b60008151808452602060005b82811015610a24578481018201518682018301528101610a09565b82811115610a355760008284880101525b50807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401168601019250505092915050565b60208152600061090560208301846109fd565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203610ad5577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b5060010190565b60408101818360005b6002811015610b04578151835260209283019290910190600101610ae5565b5050509291505056fea164736f6c634300080d000a000000000000000000000000d5d517abe5cf79b7e95ec98db0f0277788aff634

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000d5d517abe5cf79b7e95ec98db0f0277788aff634

-----Decoded View---------------
Arg [0] : coordinatorAddr (address): 0xd5d517abe5cf79b7e95ec98db0f0277788aff634

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000d5d517abe5cf79b7e95ec98db0f0277788aff634


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.