Set API Key
Specify what API key to use.
The options.apiKey entry should be set to a developer's API key. Sign up on our dashboard to get yours.
If apiKey is left blank, the FunWallet SDK will default to MYny3w7xJh6PRlRgkJ9604sHouY2MTke6lCPpSHq, a non-production, rate-limited API key for testing.
configureApiKey.js
const { configureEnvironment } = require("fun-wallet")const API_KEY = "MYny3w7xJh6PRlRgkJ9604sHouY2MTke6lCPpSHq"const configureAPIKey = async () => {await configureEnvironment({apiKey: API_KEY})}configureAPIKey()