Back to Fuels Ts

Setting up test wallets

apps/docs/src/guide/testing/setting-up-test-wallets.md

0.103.0603 B
Original Source

Setting up test wallets

You'll often want to create one or more test wallets when testing your contracts. Here's how to do it.

Create a single wallet

<<< @/../../docs/src/guide/wallets/snippets/access.ts#wallets{ts:line-numbers}

Setting up multiple test wallets

You can set up multiple test wallets using the launchTestNode utility via the walletsConfigs option.

To understand the different configurations, check out the walletsConfig in the test node options guide.

<<< @./snippets/launch-test-node-wallets.ts#multiple-wallets{ts:line-numbers}