By default, Fern generates SDK method names based on your OpenRPC method names. You can override this behavior using the x-fern-sdk-method-name extension.
Use x-fern-sdk-method-name to specify custom method names for your JSON-RPC methods:
This will generate SDK methods like:
Follow these conventions when naming SDK methods:
Use standard CRUD naming:
Use descriptive names for list operations:
Use action-oriented names:
You can specify different method names for different programming languages:
For methods with namespace prefixes, customize the final method name:
Generates:
For notification methods (one-way calls), use appropriate naming:
For methods that return promises or futures, consider async naming:
This ensures method names follow the conventions of each target language while maintaining clear and intuitive APIs for developers.