Icon HelpCircleForumIcon Link

⌘K

Icon HelpCircleForumIcon Link
Nightly /
Connecting to Testnet

Icon LinkConnecting to Testnet

The Testnet is a public network that allows you to interact with a Fuel Virtual Machine and is used for testing and development purposes.

Icon InfoCircle

[!NOTE] Latest Testnet Dev Testnet

https://testnet.fuel.network/v1/graphql

We have some useful resources for the Testnet:


In the example below, we connect a Provider to the latest testnet and create a new wallet from a private key.

Icon InfoCircle

Note: New wallets on the Testnet will not have any assets! You can use the Faucet Icon Link to fund your wallet.

import { Provider, Wallet } from 'fuels';
 
const ADDRESS = '0x767caf5b08eba21c561078a4d5be09bbd7f16b9eca22699a61f1edd9e456126f';
 
const provider = await Provider.create('https://testnet.fuel.network/v1/graphql');
const wallet = Wallet.fromAddress(ADDRESS, provider);
 
const { balances } = await wallet.getBalances();
 
console.log('Balances', balances);