Wallets
Many compose apps will need to make blockchain transactions and will need gas and payment funds to do so. By default, Compose will make you a smart wallet which allows you to pay gas fees in fiat as part of your normal monthly Goldsky bill. This allows simple USD based accounting for companies and users who are not “blockchain-native”. You can easily fund these smart wallets with any tokens you may require for your particular business logic (by default goldsky will pay gas fees if you haven’t funded the wallet yourself). Goldsky hosted wallets are created dynamically and idempotently in your app code, allowing any type of logic in wallet creation, for specifics see Context. However there may be times when specific EOA wallets will be needed for specific transactions such as on owner-only contract methods. In these cases you can store your private key securely in a secret, see below for details.To fund your built-in smart wallet (beyond Goldsky’s default gas-sponsorship behavior), you can retrieve its public key from the compose Dashboard at app.goldsky.com. See monitoring for details.
Examples
Secrets
Compose secrets are bound to the particular Compose App and are immutable once an app is deployed. To have a running app pick up new secrets values, you’ll need to redeploy This protects apps from accidental mistakes with secrets and enables versioning of secrets when the code changes need to be synced. The methodology for how secrets are managed in the cloud vs locally is slightly different.Manage Secrets for Local Dev
In local dev, you’ll put your secrets in your.env file. Every compose app created with goldsky compose init will come with a gitignored .env file by default.