feat: update wallet_sendPreparedCalls to use new call id#991
Open
feat: update wallet_sendPreparedCalls to use new call id#991
Conversation
🌿 Documentation Preview
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the wallet_sendPreparedCalls API to introduce a new id field in both the request and response, while deprecating the existing preparedCallIds array. The change simplifies the API by using a single call ID instead of an array.
Changes:
- Added
idfield to the API schema and markedpreparedCallIdsas deprecated - Updated all documentation examples to use the new
idfield instead ofpreparedCallIds[0] - Simplified response handling across client SDK and API examples
Reviewed changes
Copilot reviewed 23 out of 23 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/openrpc/alchemy/wallet-api/wallet-api.yaml | Added id field to request/response schema and deprecated preparedCallIds |
| fern/wallets/pages/transactions/using-eip-7702/third-party.mdx | Updated destructuring to use id instead of preparedCallIds[0] |
| fern/wallets/pages/transactions/using-eip-7702/client.mdx | Updated to use id field in sendCalls response |
| fern/wallets/pages/transactions/swap-tokens/client.mdx | Updated to use id field throughout swap example |
| fern/wallets/pages/transactions/swap-tokens/api.mdx | Updated API response example to show id instead of preparedCallIds array |
| fern/wallets/pages/transactions/sponsor-gas/client.mdx | Updated to use id field in gas sponsorship example |
| fern/wallets/pages/transactions/send-transactions/client.mdx | Updated to use id field in basic transaction example |
| fern/wallets/pages/transactions/send-transactions/api.mdx | Updated shell script to extract id instead of preparedCallIds[0] |
| fern/wallets/pages/transactions/send-parallel-transactions/client.mdx | Updated parallel transactions to use individual id fields |
| fern/wallets/pages/transactions/send-parallel-transactions/api.mdx | Updated API response documentation and clarified single ID per call |
| fern/wallets/pages/transactions/send-batch-transactions/client.mdx | Updated batch transactions to use id field |
| fern/wallets/pages/transactions/retry-transactions/client.mdx | Updated retry logic to use id fields for both initial and replacement transactions |
| fern/wallets/pages/transactions/retry-transactions/api.mdx | Updated API response to show id instead of preparedCallIds |
| fern/wallets/pages/transactions/pay-gas-with-any-token/client.mdx | Updated to use id field in gas payment example |
| fern/wallets/pages/transactions/cross-chain-swap-tokens/client.mdx | Updated cross-chain swap to use id field |
| fern/wallets/pages/transactions/cross-chain-swap-tokens/api.mdx | Updated API response to show id instead of preparedCallIds |
| fern/wallets/pages/third-party/signers/turnkey.mdx | Updated Turnkey integration examples to use id field |
| fern/wallets/pages/third-party/signers/privy.mdx | Updated Privy integration examples to use id field |
| fern/wallets/pages/third-party/signers/custom-integration.mdx | Updated custom integration to use id and improved error message |
| fern/wallets/pages/smart-wallets/session-keys/sdk.mdx | Updated session keys examples to use id field |
| fern/wallets/pages/smart-wallets/quickstart/sdk.mdx | Updated quickstart to use id field |
| fern/wallets/pages/signer/authentication/server-wallets.mdx | Updated server wallet example to use id field |
| fern/wallets/pages/recipes/programmatic-wallet-creation.mdx | Updated programmatic wallet creation to use id field and updated example output |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
fern/wallets/pages/transactions/send-parallel-transactions/api.mdx
Outdated
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Related Issues
Changes Made
Testing
pnpm run validate)