Are you a Cadence developer looking for information about Accounts on Cadence? If so, check out the Cadence specific documentation here
There are three types of accounts on FlowEVM.
- Externally Owned Accounts (EOA): EOAs are controlled by private individuals using cryptographic keys and can initiate transactions directly. They are the primary account type for users to interact with the blockchain, holding and sending cryptocurrency or calling smart contract functions.
- Contract Accounts: These accounts hold smart contract code and are governed by this code's logic. Unlike EOAs, Contract Accounts do not initiate transactions on their own but can execute transactions in response to calls they receive from EOAs or other contracts.
- Cadence Owned Accounts (COA)
EOAs and Contract accounts on FlowEVM function the same as on other EVM networks. Read more about EOAs and Contract accounts on the Ethereum docs. EVM developers can use FlowEVM without having to use COAs. However, in order to leverage Flow features for FlowEVM developers need to use COAs.
Cadence Owned Accounts
Cadence Owned Accounts (COAs) are a new account type on FlowEVM which mediates interactions between FlowEVM and Cadence environments. COAs are intended for use by end-users, the same as EOAs. However, COAs execute FlowEVM transactions as directed from Cadence whereas EOAs run FlowEVM transactions identically to other EVMs via the JSON-RPC endpoint. Unlike EOAs, COAs do not have a key but are assigned a 20-byte EVM address upon creation from Cadence.
COAs exist in Cadence as a Resource type which is in turn owned by a Flow account on the Cadence VM. COAs facilitate
the execution of FlowEVM transactions using its
run method. They also enable the deployment of Solidity contracts from
Cadence, as well as other utility functions to interact with FlowEVM.
For more information on Cadence Owned Accounts, see the FlowEVM FLIP