diff --git a/src/pages/guide/use-accounts/add-funds.mdx b/src/pages/guide/use-accounts/add-funds.mdx index 91b6ae0e..bac91f30 100644 --- a/src/pages/guide/use-accounts/add-funds.mdx +++ b/src/pages/guide/use-accounts/add-funds.mdx @@ -6,52 +6,92 @@ mipd: true import * as Demo from '../../../components/guides/Demo.tsx' import * as Step from '../../../components/guides/steps' import * as Token from '../../../components/guides/tokens' +import { Tabs, Tab } from 'vocs' # Add Funds to Your Balance Get test tokens to start building on Tempo testnet. -## Direct Access + + -You can access the faucet directly here in the docs. +
- +Connect your wallet to receive test stablecoins directly. + +
+ - + + + + + + + + +
+Send test stablecoins to any address. + +
+ + + + + +
+ +Request tokens programmatically via the [Tempo API](https://api.tempo.xyz/docs). + +
-## Testnet Faucet RPC +```bash +curl "https://api.tempo.xyz/actions/faucet\ +?chainId=42431\ +&address=" +``` + +
+ +Replace `` with a lowercase wallet address. -The public testnet also offers an RPC endpoint for requesting test tokens. -The faucet endpoint is only available at the official Tempo testnet RPC endpoint. + + -Request test tokens using the `tempo_fundAddress` RPC method: +
+ +Request tokens using the `tempo_fundAddress` RPC method. + +
```bash cast rpc tempo_fundAddress \ --rpc-url https://rpc.moderato.tempo.xyz ``` -Replace `` with your wallet address. +
-## What You'll Receive +Replace `` with your wallet address. -The faucet provides test stablecoins: + + -- **pathUSD** - `0x20c0000000000000000000000000000000000000` -- **AlphaUSD** - `0x20c0000000000000000000000000000000000001` -- **BetaUSD** - `0x20c0000000000000000000000000000000000002` -- **ThetaUSD** - `0x20c0000000000000000000000000000000000003` +The faucet funds the following assets. -Each request drips a sufficient amount for testing and development. +| Asset | Address |Amount| +|-------|---------|----:| +| [pathUSD](https://explore.tempo.xyz/address/0x20c0000000000000000000000000000000000000) | `0x20c0000000000000000000000000000000000000` | `1M` | +| [AlphaUSD](https://explore.tempo.xyz/address/0x20c0000000000000000000000000000000000001) | `0x20c0000000000000000000000000000000000001` | `1M` | +| [BetaUSD](https://explore.tempo.xyz/address/0x20c0000000000000000000000000000000000002) | `0x20c0000000000000000000000000000000000002` | `1M` | +| [ThetaUSD](https://explore.tempo.xyz/address/0x20c0000000000000000000000000000000000003) | `0x20c0000000000000000000000000000000000003` | `1M` | ## Verify Your Balance After requesting tokens, verify your balance: ```bash -# Check AlphaUSD balance cast erc20 balance 0x20c0000000000000000000000000000000000001 \ \ --rpc-url https://rpc.moderato.tempo.xyz diff --git a/src/pages/quickstart/faucet.mdx b/src/pages/quickstart/faucet.mdx index b8ba270b..7b06e0ea 100644 --- a/src/pages/quickstart/faucet.mdx +++ b/src/pages/quickstart/faucet.mdx @@ -39,6 +39,43 @@ Send test stablecoins to any address. + + + +
+ +Request tokens programmatically via the [Tempo API](https://api.tempo.xyz/docs). + +
+ +```bash +curl "https://api.tempo.xyz/actions/faucet\ +?chainId=42431\ +&address=" +``` + +
+ +Replace `` with a lowercase wallet address. + + + + +
+ +Request tokens using the `tempo_fundAddress` RPC method. + +
+ +```bash +cast rpc tempo_fundAddress \ + --rpc-url https://rpc.moderato.tempo.xyz +``` + +
+ +Replace `` with your wallet address. +