Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Coupon Info to Faucet Instructions #1639

Merged
merged 28 commits into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
09aca99
update snowtrace screenshot
Jan 22, 2024
8ef658a
add coupon info to faucet instructions
Jan 29, 2024
4c33749
Revert "update snowtrace screenshot"
Jan 29, 2024
dfea802
fix linting erros
Jan 29, 2024
952b1c5
fix markdown
Jan 29, 2024
4c9c376
Merge branch 'master' into faucet
laviniat1996 Jan 29, 2024
d1c5ab2
💬Generate LLM translations
github-actions[bot] Jan 29, 2024
2def006
💬Generate LLM translations
github-actions[bot] Jan 29, 2024
d02f211
💬Generate LLM translations
github-actions[bot] Jan 29, 2024
de680ea
💬Generate LLM translations
github-actions[bot] Jan 29, 2024
5e6778e
💬Generate LLM translations
github-actions[bot] Jan 29, 2024
d8ef136
fix translation
Jan 30, 2024
f8b3390
fix translated links
Jan 30, 2024
1871e34
💬Generate LLM translations
github-actions[bot] Jan 30, 2024
e42f3db
💬Generate LLM translations
github-actions[bot] Jan 30, 2024
9a82cdd
💬Generate LLM translations
github-actions[bot] Jan 30, 2024
3ff876c
💬Generate LLM translations
github-actions[bot] Jan 30, 2024
30cfed9
fix translated tags
Jan 30, 2024
9587db5
fix translation markdown
Jan 30, 2024
7eae159
fix link
Jan 30, 2024
6e25336
💬Generate LLM translations
github-actions[bot] Jan 30, 2024
fe43a6b
💬Generate LLM translations
github-actions[bot] Jan 30, 2024
a269c24
💬Generate LLM translations
github-actions[bot] Jan 30, 2024
d28c367
fix tags
Jan 30, 2024
5621d72
fix
Jan 30, 2024
84537d3
fix
Jan 30, 2024
00b7896
Merge branch 'master' into faucet
laviniat1996 Jan 30, 2024
36fe7a2
Merge branch 'master' into faucet
dubrado Feb 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions docs/build/dapp/fuji-workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,12 @@ console.log({ cAddresses, privateKeys });

## Get a Drip from the Fuji Faucet

We can get a "drip" of AVAX from the Fuji faucet. Paste the address into the
[Fuji faucet website](https://faucet.avax.network). These AVAX are for the Fuji
Testnet and have no monetary value.
We can get a "drip" of AVAX from the Fuji faucet. If you already have
an AVAX balance greater than zero on Mainnet,
paste your C-Chain address there, and request test tokens. Otherwise,
please request a faucet coupon on
[Discord](https://discord.com/channels/578992315641626624/1193594716835545170).
These AVAX are for the Fuji Testnet and have no monetary value.

![Requesting AVAX](/img/fuji-workflow/faucet1.png)

Expand All @@ -184,7 +187,7 @@ the transaction.

The txID, `0x1419b04559bf140ab82216f7696110936fb7d4bc1f147e3b85fef7ca1008a19e`,
can be seen on the [Fuji Testnet
Explorer](https://testnet.snowtrace.io/tx/0x1419b04559bf140ab82216f7696110936fb7d4bc1f147e3b85fef7ca1008a19e).
Explorer](https://subnets-test.avax.network/c-chain/tx/0x86eef1a01b0a5fd45f2a71c217f99d63d427230a271d3319004f17fc26d7fb26).
Avalanche also has a [Mainnet Explorer](https://explorer.avax.network).

![Transaction details](/img/faucet-fuji-wf-alt-tx1.png)
Expand Down
5 changes: 4 additions & 1 deletion docs/build/dapp/launch-dapp.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,10 @@ API](https://eth.wiki/json-rpc/API).

For development purposes, you will need test tokens. Avalanche has a
[Faucet](https://faucet.avax.network/) that drips test tokens to the address of
your choice. Paste your C-Chain address there.
your choice. If you already have an AVAX balance greater than zero on Mainnet,
paste your C-Chain address there, and request test tokens. Otherwise,
please request a faucet coupon on
[Discord](https://discord.com/channels/578992315641626624/1193594716835545170).

If you need, you can also run a faucet locally, but building it from the [repository](https://github.com/ava-labs/avalanche-faucet).

Expand Down
8 changes: 5 additions & 3 deletions docs/build/dapp/smart-contracts/erc-20.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@ The setup is done. For now, we have 0 AVAX.

## Fund Your C-Chain Address

For funding on the Fuji Testnet, you can use the Test Network Faucet. Navigate
to [https://faucet.avax.network/](https://faucet.avax.network/) and paste your
C-Chain address.
Avalanche has a [Faucet](https://faucet.avax.network/) that drips test tokens to the address of
your choice. If you already have an AVAX balance greater than zero on Mainnet,
paste your C-Chain address there, and request test tokens. Otherwise,
please request a faucet coupon on
[Discord](https://discord.com/channels/578992315641626624/1193594716835545170).

## Create Mintable Token

Expand Down
10 changes: 9 additions & 1 deletion docs/build/dapp/smart-contracts/get-funds-faucet.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,16 @@ Testnet and have no monetary value.

![Requesting AVAX](/img/fuji-workflow/faucet1.png)

If you already have an AVAX balance greater than zero on Mainnet,
paste your C-Chain address there, and request test tokens.
The faucet will send some AVAX to the address and return a transaction ID
(txID). This txID can be used with the Fuji Testnet Explorer to learn more about
(txID).
This txID can be used with the Fuji Testnet Explorer to learn more about
the transaction.

![Receiving AVAX](/img/fuji-workflow/faucet2.png)

Otherwise, please request a faucet coupon on
[Discord](https://discord.com/channels/578992315641626624/1193594716835545170).

![Request Coupon](/img/fuji-workflow/faucet3.png)
8 changes: 5 additions & 3 deletions docs/build/dapp/smart-contracts/nfts/deploy-collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,11 @@ Testnet using the following specs:
### Getting Testnet Funds

Because we're deploying on the Fuji Network, you'll need to get AVAX on the Fuji
network. If you visit the [Avalanche Faucet](https://faucet.avax.network/), you
can request up to 2 Fuji AVAX per day. Please enter the C Chain address of the
account linked to your Core wallet in the previous step.
network. Avalanche has a [Faucet](https://faucet.avax.network/) that drips
test tokens to the address of your choice. If you already have an AVAX balance
greater than zero on Mainnet, paste your C-Chain address there, and request
test tokens. Otherwise, please request a faucet coupon on
[Discord](https://discord.com/channels/578992315641626624/1193594716835545170).

![Avalanche Faucet](intro-to-erc721s/1-faucet.png)

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 6 additions & 5 deletions docs/build/dapp/smart-contracts/remix-deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,12 @@ This wallet is available for [mobile](https://support.avax.network/en/articles/6

### **Using Test Network Faucet**

For funding on the test network, you can use the Test Network Faucet. Navigate
to [https://faucet.avax.network/](https://faucet.avax.network/) and paste your
C-Chain address. Faucet will automatically know that it needs to send the test
AVAX to C-Chain. Click the CAPTCHA checkbox and select 'Request AVAX' button.
Your address will receive test AVAX in a few seconds.
For funding on the test network, Avalanche has a
[Faucet](https://faucet.avax.network/) that drips test tokens to the address of
your choice. If you already have an AVAX balance greater than zero on Mainnet,
paste your C-Chain address there, and request test tokens. Otherwise,
please request a faucet coupon on
[Discord](https://discord.com/channels/578992315641626624/1193594716835545170).

### Funding on Local Testnet

Expand Down
9 changes: 6 additions & 3 deletions docs/build/dapp/smart-contracts/toolchains/foundry.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,12 @@ You can find more about SSH and how to use it

In order to deploy contracts, you need to have some AVAX. You can get testnet
AVAX from the [Avalanche Faucet](https://faucet.avax.network), which is an easy
way to get to play around with Avalanche. After getting comfortable with your
code, you can run it on Mainnet after making the necessary changes to your
workflow.
way to get to play around with Avalanche. If you already have an AVAX balance
greater than zero on Mainnet, paste your C-Chain address there, and request
test tokens. Otherwise, please request a faucet coupon on
[Discord](https://discord.com/channels/578992315641626624/1193594716835545170).
After getting comfortable with your code, you can run it on Mainnet
after making the necessary changes to your workflow.

## Write Contracts

Expand Down
9 changes: 8 additions & 1 deletion docs/build/subnet/deploy/fuji-testnet-subnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ _To connect to the Fuji Testnet instead of the main net, use argument `--network

Also it's worth pointing out that
[it only needs 1 AVAX to become a validator on the Fuji Testnet](/nodes/validate/what-is-staking.md#fuji-testnet)
and you can get the test token from the [faucet](https://faucet.avax.network/).
and you can get the test token from the [faucet](https://faucet.avax.network/). If you already have an AVAX
balance greater than zero on Mainnet, paste your C-Chain address there, and request test tokens. Otherwise,
please request a faucet coupon on
[Discord](https://discord.com/channels/578992315641626624/1193594716835545170).

To get the NodeID of this `Fuji` node, call the following curl command to [info.getNodeID](/reference/avalanchego/info-api.md#infogetnodeid):

Expand Down Expand Up @@ -217,6 +220,10 @@ the use of a ledger device is strongly recommended.
1. A newly created key has no funds on it. Send funds via transfer to its correspondent addresses
if you already have funds on a different address, or get it from the faucet at
[`https://faucet.avax.network`](https://faucet.avax.network/) using your **C-Chain address**.
If you already have an AVAX balance greater than zero on Mainnet,
paste your C-Chain address there, and request test tokens. Otherwise,
please request a faucet coupon on
[Discord](https://discord.com/channels/578992315641626624/1193594716835545170).

2. **Export** your key via the `avalanche key export` command. The output is your private key,
which will help you [import](https://support.avax.network/en/articles/6821877-core-extension-how-can-i-import-an-account)
Expand Down
11 changes: 8 additions & 3 deletions docs/build/subnet/utility/avalanche-subnet-faucet.md
Original file line number Diff line number Diff line change
Expand Up @@ -502,9 +502,14 @@ may have a different drop amount).

### Put Address and Request Coins

Put your wallet address where you want to get a drop, and click the **Request** button. Within a
second, you will get a **transaction hash** for the processed transaction. The hash would be a
hyperlink to Subnet's explorer. You can see the transaction status, by clicking on that hyperlink.
If you already have an AVAX balance greater than zero on Mainnet,
paste your C-Chain address there, and request test tokens. Otherwise,
please request a faucet coupon on
[Discord](https://discord.com/channels/578992315641626624/1193594716835545170).

Within a second, you will get a **transaction hash** for the processed transaction.
The hash would be a hyperlink to Subnet's explorer.
You can see the transaction status, by clicking on that hyperlink.

![faucet 3](/img/faucet/faucet3.png)

Expand Down
6 changes: 5 additions & 1 deletion docs/build/subnet/utility/cross-chain-evm-bridge.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ These are the requirement to follow this tutorial -
[Fuji](/build/dapp/fuji-workflow.md#set-up-fuji-network-on-core-optional) on Core
- Import `wWGM` token (asset) on the WAGMI network (Core). Here is the address - `0x3Ee7094DADda15810F191DD6AcF7E4FFa37571e4`
- `WGM` coins on the WAGMI chain. Drip `1 WGM` from the [WAGMI Faucet](https://faucet.trywagmi.xyz/).
- `AVAX` coins on the Fuji chain. Drip `10 AVAX` from the [Fuji Faucet](https://faucet.avax.network/)
- `AVAX` coins on the Fuji chain. Drip `10 AVAX` from the [Fuji Faucet](https://faucet.avax.network/).
If you already have an AVAX balance greater than zero on Mainnet,
paste your C-Chain address there, and request test tokens. Otherwise,
please request a faucet coupon on
[Discord](https://discord.com/channels/578992315641626624/1193594716835545170).
- Wrapped `WGM` tokens on the WAGMI chain. Send a few `WGM` coins to the `wWGM` token address (see
second point), to receive the same amount of `wWGM`. Always keep some `WGM` coins, to cover transaction
fees.
Expand Down
6 changes: 5 additions & 1 deletion docs/learn/avalanche/fuji.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ explore the platform without any risk. These testnet tokens have no value in the
only meant for experimentation purposes within the Fuji test network.

To receive testnet tokens, users can request funds from the
[Avalanche Faucet](/build/dapp/smart-contracts/get-funds-faucet.md).
[Avalanche Faucet](/build/dapp/smart-contracts/get-funds-faucet.md).
If there's already an AVAX balance greater than zero on Mainnet,
paste the C-Chain address there, and request test tokens. Otherwise,
please request a faucet coupon on
[Discord](https://discord.com/channels/578992315641626624/1193594716835545170).

## Additional Considerations

Expand Down
7 changes: 6 additions & 1 deletion docs/tooling/avalanchejs-guides/cross-chain-transfers.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ For this tutorial we will use `ts-node` to run the example scripts directly from
In order to send AVAX, you need to have some AVAX. You can use a pre-funded
account on local network or get testnet AVAX from the [Avalanche
Faucet](https://faucet.avax.network), which is an easy way to get to play around
with Avalanche. After getting comfortable with your code, you can run the code
with Avalanche.
If you already have an AVAX balance greater than zero on Mainnet,
paste your C-Chain address there, and request test tokens. Otherwise,
please request a faucet coupon on
[Discord](https://discord.com/channels/578992315641626624/1193594716835545170).
After getting comfortable with your code, you can run the code
on Mainnet after making necessary changes.

## Transferring AVAX Using AvalancheJS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ típicamente en la misma versión que la Avalanche Mainnet, pero a veces está
ejecutando una versión no lanzada de AvalancheGo. En general, puedes esperar que el comportamiento de Fuji sea más o menos el mismo que el de Avalanche Mainnet. Herramientas como exploradores
y billeteras deberían funcionar con la Testnet Fuji.

En este tutorial, pasaremos por un ejemplo de flujo de trabajo de Fuji para mostrar cómo se puede usar. Haremos lo siguiente:
En este tutorial, repasaremos un ejemplo de flujo de trabajo de Fuji para mostrar cómo se puede usar. Haremos lo siguiente:

1. Configurar la red Fuji en Core (opcional)
2. Generar una mnemónica de 24 palabras en inglés a través de AvalancheJS
Expand Down Expand Up @@ -141,7 +141,7 @@ podrías actualizar el script de ejemplo anterior al siguiente:
const cAddresses: string[] = [];
const privateKeys: string[] = [];
for (let i: number = 0; i <= 2; i++) {
// Derivando la dirección _i_-ésima de la cadena C de la BIP44 externa
// Derivando la dirección _i_-ésima de la cadena C-Chain BIP44 externa
const child: HDNode = hdnode.derive(`m/44'/60'/0'/0/${i}`);
keyChain.importKey(child.privateKey);
// Convirtiendo las direcciones BIP44 a direcciones hexadecimales
Expand All @@ -164,32 +164,25 @@ console.log({ cAddresses, privateKeys });
// }
```

## Obtén un Drip del Fuji Faucet
## Obtén un goteo del grifo Fuji

Podemos obtener un "drip" de AVAX del Fuji faucet. Pega la dirección en el
sitio web del [Fuji faucet](https://faucet.avax.network). Estos AVAX son para la Fuji
Testnet y no tienen valor monetario.
Podemos obtener un "goteo" de AVAX del grifo Fuji. Si ya tienes un saldo de AVAX mayor que cero en Mainnet, pega tu dirección de C-Chain allí y solicita tokens de prueba. De lo contrario, por favor solicita un cupón de grifo en [Discord](https://discord.com/channels/578992315641626624/1193594716835545170). Estos AVAX son para la red de pruebas Fuji y no tienen valor monetario.

![Solicitando AVAX](/img/fuji-workflow/faucet1.png)

El faucet enviará algunos AVAX a la dirección y devolverá un ID de transacción
(txID). Este txID se puede usar con el Fuji Testnet Explorer para obtener más información sobre
la transacción.
El grifo enviará algunos AVAX a la dirección y devolverá un ID de transacción (txID). Este txID se puede usar con el Explorer de la red de pruebas Fuji para obtener más información sobre la transacción.

![Recibiendo AVAX](/img/fuji-workflow/faucet2.png)

### Verificar los Detalles de la Transacción
### Verificar los detalles de la transacción

El txID, `0x1419b04559bf140ab82216f7696110936fb7d4bc1f147e3b85fef7ca1008a19e`,
se puede ver en el [Fuji Testnet
Explorer](https://testnet.snowtrace.io/tx/0x1419b04559bf140ab82216f7696110936fb7d4bc1f147e3b85fef7ca1008a19e).
Avalanche también tiene un [Mainnet Explorer](https://explorer.avax.network).
El txID, `0x1419b04559bf140ab82216f7696110936fb7d4bc1f147e3b85fef7ca1008a19e`, se puede ver en el [Explorer de la red de pruebas Fuji](https://subnets-test.avax.network/c-chain/tx/0x86eef1a01b0a5fd45f2a71c217f99d63d427230a271d3319004f17fc26d7fb26). Avalanche también tiene un [Explorer de Mainnet](https://explorer.avax.network).

![Detalles de la transacción](/img/faucet-fuji-wf-alt-tx1.png)

### Obtén el Saldo
### Obtener el saldo

También podemos usar el Fuji Explorer para obtener el saldo de la primera dirección[0x2d1d87fF3Ea2ba6E0576bCA4310fC057972F2559](https://explorer.avax-test.network/address/0x2d1d87fF3Ea2ba6E0576bCA4310fC057972F2559).
También podemos usar el Explorer de Fuji para obtener el saldo de la primera dirección - [0x2d1d87fF3Ea2ba6E0576bCA4310fC057972F2559](https://explorer.avax-test.network/address/0x2d1d87fF3Ea2ba6E0576bCA4310fC057972F2559).

![Saldo de la primera dirección derivada](/img/faucet-fuji-wf-alt-balance.png)

Expand All @@ -203,10 +196,10 @@ const address = "0x2d1d87fF3Ea2ba6E0576bCA4310fC057972F2559";

const main = async (): Promise<any> => {
provider.getBalance(address).then((balance) => {
// convertir una unidad de moneda de wei a ether
// convert a currency unit from wei to ether
const balanceInAvax = ethers.utils.formatEther(balance);
console.log(`saldo: ${balanceInAvax} AVAX`);
// saldo: 2 AVAX
console.log(`balance: ${balanceInAvax} AVAX`);
// balance: 2 AVAX
});
};

Expand All @@ -215,52 +208,48 @@ main();

## Enviando AVAX

El faucet envió 2 AVAX a la primera dirección que generamos. Vamos a enviar AVAX desde
la primera dirección a la segunda dirección.
El grifo envió 2 AVAX a la primera dirección que generamos. Vamos a enviar AVAX desde la primera dirección a la segunda dirección.

```typescript
// importar ethers.js
import { ethers } from "ethers";
// red: usando la testnet Fuji
const network = "https://api.avax-test.network/ext/bc/C/rpc";
// red: usando la red de pruebas Fuji
const red = "https://api.avax-test.network/ext/bc/C/rpc";
// proveedor: establecer una conexión RPC con la red
const provider = new ethers.providers.JsonRpcProvider(network);
const proveedor = new ethers.providers.JsonRpcProvider(red);

// Clave privada del remitente:
// dirección correspondiente 0x0x2d1d87fF3Ea2ba6E0576bCA4310fC057972F2559
let privateKey =
let clavePrivada =
"cd30aef1af167238c627593537e162ecf5aad1d4ab4ea98ed2f96ad4e47006dc";
// Crear una instancia de billetera
let wallet = new ethers.Wallet(privateKey, provider);
let billetera = new ethers.Wallet(clavePrivada, proveedor);
// Dirección del receptor
let receiverAddress = "0x25d83F090D842c1b4645c1EFA46B15093d4CaC7C";
let direccionReceptor = "0x25d83F090D842c1b4645c1EFA46B15093d4CaC7C";
// Cantidad de AVAX a enviar
let amountInAvax = "0.01";
let cantidadEnAvax = "0.01";
// Crear un objeto de transacción
let tx = {
to: receiverAddress,
to: direccionReceptor,
// Convertir la unidad de moneda de ether a wei
value: ethers.utils.parseEther(amountInAvax),
value: ethers.utils.parseEther(cantidadEnAvax),
};
// Enviar una transacción
wallet.sendTransaction(tx).then((txObj) => {
console.log(`"tx, https://testnet.snowtrace.io/tx/${txObj.hash}`);
billetera.sendTransaction(tx).then((objTx) => {
console.log(`tx, https://testnet.snowtrace.io/tx/${objTx.hash}`);
// Un resultado de transacción se puede verificar en un snowtrace con un enlace de transacción que se puede obtener aquí.
});
```

### Verificar el Éxito
### Verificar el éxito

Podemos verificar que la transacción,
`0x3a5f4198b3be8d24b272f8255912aae4dcf2fb1f97f70d1787434de7b3097aac`, fue
exitosa usando el Fuji Testnet Explorer. La transacción se puede ver
[aquí](https://testnet.snowtrace.io/tx/0x3a5f4198b3be8d24b272f8255912aae4dcf2fb1f97f70d1787434de7b3097aac).
Podemos verificar que la transacción, `0x3a5f4198b3be8d24b272f8255912aae4dcf2fb1f97f70d1787434de7b3097aac`, fue exitosa usando el Explorer de la red de pruebas Fuji. La transacción se puede ver [aquí](https://testnet.snowtrace.io/tx/0x3a5f4198b3be8d24b272f8255912aae4dcf2fb1f97f70d1787434de7b3097aac).

![Detalles de la transacción](/img/fuji-wf-alt-tx-2.png)

#### Obtén el Saldo
#### Obtener el saldo

También podemos usar el Fuji Explorer para obtener el saldo de la segunda dirección[0x25d83F090D842c1b4645c1EFA46B15093d4CaC7C](https://testnet.snowtrace.io/address/0x25d83F090D842c1b4645c1EFA46B15093d4CaC7C).
También podemos usar el Explorer de Fuji para obtener el saldo de la segunda dirección - [0x25d83F090D842c1b4645c1EFA46B15093d4CaC7C](https://testnet.snowtrace.io/address/0x25d83F090D842c1b4645c1EFA46B15093d4CaC7C).

Alternativamente, podemos usar ethersJS para obtener el saldo.

Expand All @@ -279,6 +268,18 @@ const main = async (): Promise<any> => {
});
};

main();


const main = async (): Promise<any> => {
provider.getBalance(address).then((balance) => {
// convertir una unidad de moneda de wei a ether
const balanceInAvax = ethers.utils.formatEther(balance);
console.log(`saldo: ${balanceInAvax} AVAX`);
// saldo: 0.02 AVAX
});
};

main();
```

Expand Down
Loading
Loading