FlowToken Vault in Storage

Copied from Discord:

According to the Cadence documentation, https://docs.onflow.org/tutorial/cadence/03-fungible-tokens/#transfer-tokens-to-another-user, owning tokens requires an account to have a Vault object.

My account is created by the flow faucet on testnet: https://testnet-faucet.onflow.org/
I didn’t set up the account to receive tokens but I received 1000 FLOW from the faucet.

What is going on? Don’t I have to set up my account to hold tokens first?

1 Like

The documentation is correct that every account needs to have a FlowToken vault and receiver to work with Flow tokens, but the emulator, testnet, and mainnet create every account already set up with a FlowToken Vault and receiver. So you don’t need to do anything else to set up the account in regards to the FlowToken.

It basically performs the actions in this transaction by default whenever an account is created:

So you can immediately work with Flow tokens as soon as your account is created. :smiley:

1 Like