Request Funds
Once you have created your account,
you can start using the IOTA SDK for value transactions. Since these examples target the testnet, you can request funds
using the request_funds_from_faucet
function.
Online Faucet
You can request test funds from the Shimmer Testnet Faucet.
Code Example
The following example will:
- Create a wallet.
- Get Alice's account which was created in the first guide.
- Retrieve an address related to Alice's account.
- Request funds to the
FAUCET_URL
you defined in the.env
file.
- Rust
- Nodejs
- Python
sdk/examples/how_tos/simple_transaction/request_funds.rs
loading...
bindings/nodejs/examples/how_tos/simple_transaction/request-funds.ts
loading...
bindings/python/examples/how_tos/simple_transaction/request_funds.py
loading...
Expected Output
rms1qpjt6zr7rfvl27le5xjcv0qhr90l92wtm6eu6v6jhtgvrjp7mwufq6nqxn8
{"address":"rms1qpjt6zr7rfvl27le5xjcv0qhr90l92wtm6eu6v6jhtgvrjp7mwufq6nqxn8","waitingRequests":11}