You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These packages enable you to leverage Flow’s Cadence-Owned Account (COA) within Ethereum tooling (e.g., Wagmi, RainbowKit). They provide a unified approach for cross-VM apps on Flow and EVM, letting you perform EVM-like operations using Cadence accounts.
8
+
These packages allow you to leverage Flow’s Cadence-Owned Account (COA) within Ethereum tooling (for example, Wagmi, RainbowKit). They provide a unified approach for cross-VM apps on Flow and EVM, which lets you perform EVM-like operations will Cadence accounts.
9
9
10
-
For background and motivation, see the [FCL Ethereum Provider for Cross-VM Apps FLIP #316](https://github.com/onflow/flips/blob/c0fe9b71a9afb85fe70a69cf7c0870b5d327e679/application/20241223-fcl-ethereum-provider.md).
10
+
For background and motivation, see the [FCL Ethereum Provider for Cross-VM Apps FLIP #316].
|[@onflow/fcl-ethereum-provider](#onflowfcl-ethereum-provider)| Provides an EIP-1193-compliant Ethereum provider backed by an FCL-authenticated COA. |
15
-
|[@onflow/fcl-wagmi-adapter](#onflowfcl-wagmi-adapter)| Integrates Flow-based COAs with Wagmi, exposing them as Ethereum accounts in your dApp. |
16
-
|[@onflow/fcl-rainbowkit-adapter](#onflowfcl-rainbowkit-adapter)| Enables a Flow-based wallet option in your RainbowKit wallet selection modal. |
14
+
|[@onflow/fcl-ethereum-provider]| Provides an EIP-1193-compliant Ethereum provider backed by an FCL-authenticated COA. |
15
+
|[@onflow/fcl-wagmi-adapter]| Integrates Flow-based COAs with Wagmi, and exposes them as Ethereum accounts in your dApp. |
16
+
|[@onflow/fcl-rainbowkit-adapter]| Allows a Flow-based wallet option in your RainbowKit wallet selection modal. |
17
17
18
18
## `@onflow/fcl-ethereum-provider`
19
19
20
-
-**Description**: A drop-in EIP-1193 provider that authenticates users via [FCL](https://developers.flow.com/) and lets them sign transactions/messages with their COA.
20
+
-**Description**: A drop-in EIP-1193 provider that authenticates users via [Flow Client Library (FCL)] and lets them sign transactions and messages with their COA.
21
21
-**Use Cases**:
22
22
- Integrate Flow EVM with any generic EVM library or framework.
23
-
- Direct control over JSON-RPC calls (e.g., `provider.request({ method: 'eth_sendTransaction' })`).
24
-
-**Link to Docs**: [Read the @onflow/fcl-ethereum-provider Reference »](ethereum-provider.mdx)
23
+
- Direct control over JSON-RPC calls (for example, `provider.request({ method: 'eth_sendTransaction' })`).
24
+
-**Link to Docs**: [Read the @onflow/fcl-ethereum-provider Reference »]
25
25
26
26
## `@onflow/fcl-wagmi-adapter`
27
27
28
28
-**Description**: A Wagmi connector that uses `@onflow/fcl-ethereum-provider` under the hood so you can sign in with your COA through standard Wagmi flows.
29
29
-**Use Cases**:
30
-
- Add Flow-based COAs to an existing Wagmi-powered dApp as if they were Ethereum wallets.
31
-
-**Link to Docs**: [Read the @onflow/fcl-wagmi-adapter Reference »](wagmi-adapter.mdx)
30
+
- Add Flow-based COAs to a current Wagmi-powered dApp as if they were Ethereum wallets.
31
+
-**Link to Docs**: [Read the @onflow/fcl-wagmi-adapter Reference »]
32
32
33
33
## `@onflow/fcl-rainbowkit-adapter`
34
34
35
-
-**Description**: A RainbowKit adapter that surfaces a Flow-based wallet in the wallet selection modal, making it easy to sign transactions via COAs in a RainbowKit environment.
35
+
-**Description**: A RainbowKit adapter that surfaces a Flow-based wallet in the wallet selection modal, wheich makes it easy to sign transactions via COAs in a RainbowKit environment.
36
36
-**Use Cases**:
37
-
- Offer Flow-based wallets (e.g., Flow Wallet) alongside popular Ethereum wallets in RainbowKit.
38
-
-**Link to Docs**: [Read the @onflow/fcl-rainbowkit-adapter Reference »](rainbowkit-adapter.mdx)
37
+
- Offer Flow-based wallets (such as Flow Wallet) alongside popular Ethereum wallets in RainbowKit.
38
+
-**Link to Docs**: [Read the @onflow/fcl-rainbowkit-adapter Reference »]
39
+
40
+
<!-- Relative links, will not render on page -->
41
+
42
+
[FCL Ethereum Provider for Cross-VM Apps FLIP #316]: https://github.com/onflow/flips/blob/c0fe9b71a9afb85fe70a69cf7c0870b5d327e679/application/20241223-fcl-ethereum-provider.md
-`--min-account-balance <decimal>`: Minimum account balance or account creation cost
117
117
-`--contracts`: Deploy common contracts on start
118
118
-`--contract-removal`: Allow contract removal for development (default true)
119
119
-`--init`: Initialize a new account profile
120
120
121
-
-**Logging & Output**
121
+
-**Logging and Output**
122
122
-`--verbose, -v`: Verbose logging
123
123
-`--log-format <text|JSON>`: Logging output format (default `text`)
124
124
@@ -168,15 +168,15 @@ For the complete and current list of flags, run:
168
168
flow emulator --help
169
169
```
170
170
171
-
## Debugging & Testing
171
+
## Debugging and Testing
172
172
173
173
-**Code Coverage**: Add `--coverage-reporting` flag and visit `http://localhost:8080/emulator/codeCoverage`
174
174
-**Debugging**: Use `#debugger()` pragma in Cadence code for breakpoints
175
-
-**Fork mode note**: When using`flow emulator --fork`, only Flow chain state is available. External oracles/APIs and cross-chain reads are not live; mock these or run local stub services for E2E.
175
+
-**Fork mode note**: When you use`flow emulator --fork`, only Flow chain state is available. External oracles/APIs and cross-chain reads are not live; mock these or run local stub services for E2E.
176
176
177
177
## Snapshots
178
178
179
-
The Flow CLI provides a command to create emulator snapshots, which are points in blockchain history you can later jump to and reset the state to that moment. This can be useful for testing where you establish a beginning state, run tests and after revert back to the initial state.
179
+
The Flow CLI provides a command to create emulator snapshots, which are points in blockchain history you can later jump to and reset the state to that moment. This can be useful to test where you establish a beginning state, run tests and after revert back to the initial state.
180
180
181
181
### Quick snapshot workflow
182
182
@@ -201,25 +201,25 @@ Create a new emulator snapshot at the current block with a name of `myInitialSta
201
201
flow emulator snapshot create myInitialState
202
202
```
203
203
204
-
### Load an existing snapshot
204
+
### Load a current snapshot
205
205
206
206
To jump to a previously created snapshot we use the load command in combination with the name.
207
207
208
208
```shell
209
209
flow emulator snapshot load myInitialState
210
210
```
211
211
212
-
### List all existing snapshots
212
+
### List all snapshots
213
213
214
-
To list all the existing snapshots we previously created and can load to run:
214
+
To list all the snapshots we previously created and can load to run:
215
215
216
216
```shell
217
217
flow emulator list
218
218
```
219
219
220
-
## Additional Resources
220
+
## Additional resources
221
221
222
-
To learn more about using the Emulator, please have a look at the [public GitHub repository].
222
+
To learn more about how to use the Emulator, have a look at the [public GitHub repository].
Copy file name to clipboardExpand all lines: docs/build/tools/flow-cli/accounts/account-fund.md
+12-7Lines changed: 12 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,19 +6,19 @@ sidebar_position: 7
6
6
7
7
:::info
8
8
9
-
The [Flow Testnet Faucet](https://testnet-faucet.onflow.org/) allows users to create accounts and receive 1,000 Testnet FLOW tokens for testing and development purposes. You can also fund an existing Testnet accounts without needing to create one through the site, or through the CLI.
9
+
The [Flow Testnet Faucet] allows users to create accounts and receive 1,000 Testnet FLOW tokens for testing and development purposes. You can also fund a current Testnet account without the need to create one through the site, or through the CLI.
10
10
11
11
:::
12
12
13
-
Fund a valid Testnet Flow Account using the Flow CLI.
13
+
Fund a valid Testnet Flow Account with the Flow CLI.
14
14
15
15
```shell
16
16
flow accounts fund [address|name]
17
17
```
18
18
19
-
## Example Usage
19
+
## Example usage
20
20
21
-
### Fund by Address
21
+
### Fund by address
22
22
23
23
```
24
24
> flow accounts fund 8e94eaa81771313a
@@ -29,7 +29,7 @@ If there is an issue, please use this link instead: https://testnet-faucet.onflo
29
29
30
30
```
31
31
32
-
### Fund by Account Name
32
+
### Fund by account name
33
33
34
34
```
35
35
> flow accounts fund testnet-account
@@ -40,7 +40,7 @@ If there is an issue, please use this link instead: https://testnet-faucet.onflo
40
40
41
41
```
42
42
43
-
### Interactive Prompt
43
+
### Interactive prompt
44
44
45
45
```
46
46
> flow accounts fund
@@ -53,7 +53,7 @@ If there is an issue, please use this link instead: https://testnet-faucet.onflo
53
53
54
54
## Arguments
55
55
56
-
### Address or Account Name (Optional)
56
+
### Address or account name (optional)
57
57
58
58
- Name: `address|name`
59
59
- Valid Input: Flow Testnet account address or account name from `flow.json`
@@ -62,3 +62,8 @@ You can provide:
62
62
- A Flow [account address](../../../cadence/basics/accounts.md) (prefixed with `0x` or not)
63
63
- An account name configured in your `flow.json`
64
64
- No argument to get an interactive prompt for account selection
0 commit comments