Best Practices

Follow these best practices to ensure smooth operation and avoid common issues.

  • Always check balance first: Before adding balance, check if there's already sufficient balance.

  • Error handling: Implement proper error handling for blockchain transactions.

  • Default values: Use reasonable default values for balance amounts (e.g., 0.05 ETH).

  • Chain ID: Always ensure the correct chain is selected before adding balance.

  • Subscription check: Verify if the user is subscribed before adding a balance.

Last updated