You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
Add a way to pass an RPC service to createFetchMiddleware (#357)
The new, recommended function signature is now createFetchMiddleware({ rpcService: AbstractRpcService; options?: { originHttpHeaderKey?: string; } }), where AbstractRpcService matches the same interface from @metamask/network-controller
This allows us to support automatic failover to a secondary node when the network goes down
Deprecate passing an RPC endpoint to createFetchMiddleware (#357)
See recommended function signature above
The existing signature createFetchMiddleware({ btoa: typeof btoa; fetch: typeof fetch; rpcUrl: string; originHttpHeaderKey?: string; }) will be removed in a future major version