Best practices and guidelines for integrating Beam and Retro protocols into the frontend
This guide outlines the best practices for integrating Beam and Retro protocols into our frontend application. Following these guidelines ensures consistency, maintainability, and easier future upgrades.
We use the custom SDK: codemelt-retro-api-sdk
Always use data types provided by the SDK.
This approach ensures type consistency and reduces refactoring efforts during upgrades.
Use SDK methods for data fetching whenever possible.
The SDK provides built-in sanity checks and error handling, improving reliability.
All RPC calls must be proxied through next.config.ts
This is crucial for Beam protocol with multiple RPCs.
Never expose RPC API keys in the frontend code.
Best practices and guidelines for integrating Beam and Retro protocols into the frontend
This guide outlines the best practices for integrating Beam and Retro protocols into our frontend application. Following these guidelines ensures consistency, maintainability, and easier future upgrades.
We use the custom SDK: codemelt-retro-api-sdk
Always use data types provided by the SDK.
This approach ensures type consistency and reduces refactoring efforts during upgrades.
Use SDK methods for data fetching whenever possible.
The SDK provides built-in sanity checks and error handling, improving reliability.
All RPC calls must be proxied through next.config.ts
This is crucial for Beam protocol with multiple RPCs.
Never expose RPC API keys in the frontend code.