Swirl Liquid Staking
  • Intro
    • Liquid Staking Fundamentals
    • FAQ
  • Tech
    • IOTA Contract Infrastructure
      • Overview
      • Contract Details
  • Supported Wallets
  • How-to
    • Requesting Testnet Tokens
Powered by GitBook
On this page
  • Prerequisites
  • Requesting Test Tokens
  1. How-to

Requesting Testnet Tokens

PreviousSupported Wallets

Last updated 1 month ago

The IOTA Faucet is a useful tool for developers to obtain free test IOTA tokens, enabling them to deploy and interact with applications on the IOTA Testnet.

Prerequisites

Before requesting test tokens, ensure that:

  • You have a .

  • You are connected to the IOTA Testnet.

Requesting Test Tokens

Using cURL

To request testnet tokens directly from the faucet server, run the following cURL command:

curl --location --request POST 'https://faucet.testnet.iota.cafe/v1/gas' \
--header 'Content-Type: application/json' \
--data-raw '{
    "FixedAmountRequest": {
        "recipient": "<YOUR IOTA ADDRESS>"
    }
}'
  • Replace <YOUR IOTA ADDRESS> with your actual IOTA Testnet wallet address.

Using TypeScript SDK

await requestIotaFromFaucetV0({
    host: getFaucetHost('testnet'),
    recipient: <RECIPIENT_ADDRESS>,
});
    };
}
const transaction = new Transaction();
transaction.add(transferToSender(['0x1234']));
  • Replace <RECIPIENT_ADDRESS> with your IOTA Testnet wallet address.

You can also access the using the TypeScript SDK:

wallet address that supports IOTA tokens
faucet