Skip to content

Commit

Permalink
Merge pull request #158 from SocketDotTech/rookmate-patch-1
Browse files Browse the repository at this point in the history
Recover test faucet on README.md
  • Loading branch information
rookmate authored Jan 28, 2025
2 parents db0fa8a + 56e5980 commit ab3e3ff
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,31 @@ Tests are run using the [Forge](https://github.com/foundry-rs/foundry/tree/maste
```bash
forge test
```

## Test Token Faucets

Use these faucets to receive test tokens on Arbitrum Sepolia and Optimism Sepolia testnets. Each request will send you 1000 units of the requested tokens (adjusted for token decimals). These can be used on the demo projects deployed when adding a new chain.

### Faucet Addresses
- Arbitrum Sepolia: [0x406c77947d91f965f09b458c07a66a033c3efea4](https://sepolia.arbiscan.io/address/0x406c77947d91f965f09b458c07a66a033c3efea4)
- Optimism Sepolia: [0xbebfcb5a41836490c6449ce755c8dc361c175aa3](https://sepolia-optimism.etherscan.io/address/0xbebfcb5a41836490c6449ce755c8dc361c175aa3)

### How to Use

You can request tokens using Foundry's `cast` command. Here's an example using Arbitrum Sepolia:

```bash
cast send 0x406c77947d91f965f09b458c07a66a033c3efea4 "getTokens(address,address[])" YOUR_ADDRESS "[TOKEN_ADDRESS]" --rpc-url https://sepolia-rollup.arbitrum.io/rpc --private-key $YOUR_PRIVATE_KEY
```

#### Example
To get test USDC on Arbitrum Sepolia:
```bash
cast send 0x406c77947d91f965f09b458c07a66a033c3efea4 "getTokens(address,address[])" YOUR_ADDRESS "[0x8537307810fC40F4073A12a38554D4Ff78EfFf41]" --rpc-url https://sepolia-rollup.arbitrum.io/rpc --private-key $YOUR_PRIVATE_KEY
```

Replace:
- `YOUR_ADDRESS` with your wallet address
- `$YOUR_PRIVATE_KEY` with your private key environment variable

For Optimism Sepolia, use the Optimism faucet address and RPC URL: `https://sepolia.optimism.io`

0 comments on commit ab3e3ff

Please sign in to comment.