arrng.io
  • Introduction
  • Supported Chains
  • How it works
  • RNG Source
  • Getting a cost estimate
  • Implementing in your contract
  • Verifiying RNG
  • Controller contract addresses
  • Fee
  • Refunds
  • arrscan.io
Powered by GitBook
On this page

Verifiying RNG

PreviousImplementing in your contractNextController contract addresses

Last updated 1 year ago

Verification of your RNG is very simple, and can be done directly on .

Go to: .

You will need the randomness and signature from your response from arrng. The easiest place to get these is , but for full confidence you can find them on-chain in a block explorer of your choice (e.g. etherscan).

Below is an example response on etherscan.

To see the response details scroll down to 'More Details', and click '+ Click to show more'.

In the section 'Input Data' select 'Decode Input Data'

You want the full text from apiResponse_ for the field called 'random' on the random.org verification page.

NOTE - etherscan modifies the formatting of this response, including removing commas and adding in carriage returns. To use data directly from etherscan you need to add back the commas and correct spacing to the JSON. This can be tricky. Alternatively, you can copy the response from (in the field 'API Response') and use that for verification, after checking that the content of the two is the same.

The full text from apiSignature_ goes in the 'signature' field.

In this example these are:

Random =

{"method":"generateSignedBlobs","hashedApiKey":"H7BMHKGIjChN9q3wgxWk3GwrHna/XeAK8xbIzMp3DwBgHH6KwNE1uj3CfO+76W/a7eKqfEHi6m8DU8L+PTNLVA==","n":1,"size":256,"format":"hex","pregeneratedRandomization":null,"data":["712e99b408c3f64002d03d895076ccc5168c08de220a7b0bdf0ca98be057df5d"],"license":{"type":"gambling-virtual","text":"Random values licensed for virtual item gambling only","infoUrl":null},"licenseData":null,"userData":"chain: 1, request: 2, txn: 0xd14bc41ed62b89732e99199a832c98816507cfa27c4e84f160d0cce97181b9d4","ticketData":null,"completionTime":"2024-01-08 23:07:34Z","serialNumber":183}

Signature =

TWfsB6A9iVetn1BbUuJnaR2mLLigb7JsRdx3wNLQNDS4Bdkd+bvst683PG1xK0AjGzPr4VOtRnick5rJ2ipkMkWSjBMjntTpNmwQhLKTeViZ5Pa4cD02lGunTqAAGji1HBuJS9MhSlr4vYndqKXdWBPF3UTXafzc6TKhqN1M4xv6fQdeTv6rei2vY4KnRjuJqzPWkeuTQSbLSsGJ00OlDij0oGXqiFz6oHr7UYvxtHQA6ZVBJZaxvNIAySS87kAUaVOCy644nKtIglJEexvJkWH6GSDqfal8tmDTFsx1lt57meBVHrXEIEykSmq/BWtGmQpS0cbxAbB3USX3d11tKNC6sN8L/tSbrBtJAe0NXHNRHVZtaUT1UujH14EVvINXr9sGLvDNoQRGPh/Ail0C52zNBzoaEpsxLQrLvxVoq468SJOTY06dUbLq/GggrLQlw88m2QlTG6+IIb/MY7QPaaUkxwdT88jbOtE6sygDDpLHKvrfyWkeqwiHBrFBMUq2AelDFDSJHvmXqsihQaKyWx9h+uETsld97nn4QofZrVkJOZfRKz6UNbWSuMFSjvp5zP5psl2I+REiRLhUTHiM/N5ITv6Pa/atIY49FA0DBPxQlsFFgoMKsMqgoQ6QpvV85+GfgvT04rSI+YLIdZNwYKFJH5TVOt3niafrWDtDKg4=
random.org
https://api.random.org/signatures/form
arrscan
https://etherscan.io/tx/0x7e5543de86c3202942dd48bcce83efe7bb819aaee25d56b83866f62cb27dc3ce
arrscan