Skip to main content

Crypto

Your keys, your coins

Random.win is non-custodial, which means that we do not own the money that you deposit on our RNG, it is still owned by you even if you send it to us. This is possible because our smart contract only allow your Ethereum address to withdraw your funds. Random.win only owns the money that you spend on randomness requests.

How does it work ?

You deposit some ETH on our smart contract, which will top up an account tied to your Ethereum address onchain.

Whenever you request randomness with our API, your account will automatically be charged $6 by our smart contract according to the current ETH/USD price. If you don't have enough funds in your account when making a request, the request will fail and you won't be charged.

Deposit

You can add money to your account by calling the deposit function in our Accounts contract.

Click on the button Connect to Web3 at the top of the page to connect your wallet, then in 3. deposit enter the amount of ETH that you want to add to your account. Finally, click Write to confirm the transaction in your wallet.

Arbiscan A user deposits 0.01 ETH to his account

Withdraw

Similarly, you can withdraw your funds from your account by calling the withdraw function.

Fill amount with the amount of wei that you want to withdraw and click Write to confirm the transaction in your wallet.

Arbiscan A user withdraws 0.01 ETH ( 101610^{16} wei) from his account

What is wei ?

Wei is the smallest denomination of ether (ETH), the currency used on the Ethereum blockchain, where 101810^{18} or 1,000,000,000,000,000,000 wei is equivalent to one ether.

1 ETH =1018= 10^{18} wei

Check balance

You can check the balance of your account at any time by calling the balance function. The amount is displayed in wei.

Arbiscan The user 0x48A469f119B1ccfFbe62111D65bcC60547d625FB has 0.01 ETH ( 101610^{16} wei) in his account