By default, the SDK uses public providers to make EVM read calls. Many public providers are heavily throttled and are not suitable for high traffic. For production use, we recommend setting up a custom JSON-RPC provider with your own API key.

Alchemy

To use the Alchemy bundler, provide an API key during account initialization:
const rhinestoneAccount = await createRhinestoneAccount({
  owners: {
    type: 'ecdsa',
    accounts: [accountA, accountB, accountC],
    threshold: 2,
  },
  provider: {
    type: 'alchemy',
    apiKey: alchemyApiKey,
  }
})
Reach out if you need support for other JSON-RPC providers!