arrng.io

supported chains

Supported chain 1
Supported chain 2
Supported chain 3
Supported chain 4
Supported chain 5
Supported chain 6
Supported chain 7
IMPORT

Get the controller address for your chain: docs.arrng.io
import {ArrngConsumer} from @arrng/contracts/ArrngConsumer.sol; contract YourContract isArrngConsumer { constructor(address controller) ArrngConsumer(controller) {} << your code >> }

REQUEST

arrngController.requestRandomWords {value: msg.value} (1);
(you must pass native token for gas)

USE

function fulfillRandomWords( uint256 id, uint256[] memory numbers ) internal override { << do something with numbers[0] >> }

VERIFIABLE RANDOMNESS

  • Signed and verifiable off-chain rng
  • Uses class-leading random.org
  • Response and signature on-chain
  • Multi-chain
  • Easy to use
  • No subsription contract
  • No tokens to buy
  • No complicated setup
  • Quick and efficient
GitbookGitHubnpmetherscan