Account

An account is a wallet for the chain that we want to interact with. For now, an Agent can be used in any number of contracts within the same account.

This account is an Ape account so anything that you could do like importing or creating an account with Ape's framework is available.

The account is needed to sign the transactions of the contracts without human intervention, as this account is created in an encrypted keyfile, you must have created it with a passphrase. This passphrase is used to unlock this account.

This passphrase should be in the environment of the execution so the agent can retrieve it and unlock the account. The variable should be exported as <ACCOUNT>_PASSPHRASE variable. It is encouraged to have it as an environment variable so it is not committed to the code, which can be easily forgotten and published in a public repository.

Last updated