Crypto
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.
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.
A user withdraws 0.01 ETH ( wei) from his account
Wei is the smallest denomination of ether (ETH), the currency used on the Ethereum blockchain, where or 1,000,000,000,000,000,000 wei is equivalent to one ether.
1 ETH 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.
The user 0x48A469f119B1ccfFbe62111D65bcC60547d625FB has 0.01 ETH ( wei) in his account