Skip to main content

Requesting Testnet Tokens

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:

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

You can also access the faucet using the 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.