Skip to main content

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:

  1. Create a wallet.
  2. Get Alice's account which was created in the first guide.
  3. Retrieve an address related to Alice's account.
  4. Request funds to the FAUCET_URL you defined in the .env file.
sdk/examples/how_tos/simple_transaction/request_funds.rs
loading...

Expected Output

rms1qpjt6zr7rfvl27le5xjcv0qhr90l92wtm6eu6v6jhtgvrjp7mwufq6nqxn8
{"address":"rms1qpjt6zr7rfvl27le5xjcv0qhr90l92wtm6eu6v6jhtgvrjp7mwufq6nqxn8","waitingRequests":11}