This repository was archived by the owner on Oct 16, 2025. It is now read-only.
Releases: MetaMask/eth-json-rpc-middleware
Releases · MetaMask/eth-json-rpc-middleware
20.0.0
19.0.1
19.0.0
Changed
- Bump
@metamask/eth-block-trackerfrom^12.0.0to^12.2.0(#413) - Bump
@metamask/eth-json-rpc-providerfrom^4.1.7to^5.0.0(#413) - Bump
@metamask/json-rpc-enginefrom^10.0.2to^10.1.0(#413) - Change all
PollingBlockTracker.getLatestBlock()calls to includeuseCache: true(#416)
Removed
- BREAKING: Remove
ethersProviderAsMiddleware(#415)
18.0.0
Changed
- BREAKING:
createFetchMiddlewareno longer takesfetch,btoa,rpcUrl, andoriginHttpHeaderKey(#402)- The existing signature (
rpcServiceandoptions) is now the only way to use this function; please use that instead.
- The existing signature (
- BREAKING: The RPC service object that
createFetchMiddlewaretakes must now come from@metamask/network-controller24.x (#404) - Tweak signature for
createFetchMiddlewareso it now accepts an partial RPC service object (#404)- The only required property is
request
- The only required property is
- Bump
@metamask/utilsto^11.7.0(#404)
Removed
- BREAKING: Remove support for
wallet_getCapabilities,wallet_sendCalls, andwallet_getCallsStatusfrom wallet middleware (#401)- These handlers have been moved to the
@metamask/eip-5792-middlewarepackage.
- These handlers have been moved to the
- BREAKING: Remove
PayloadWithOrigintype (#402)- There is no equivalent.
- BREAKING: Remove
createFetchConfigFromReqfunction (#402)- There is no equivalent.
17.1.0
17.0.1
17.0.0
Changed
- BREAKING: Support version
2.0.0of EIP-5792 (#370)- Add
atomicRequiredproperty toSendCallsStruct. - Make
fromoptional inSendCallsStruct. - Add
atomicproperty toGetCallsStatusResult. - Validate
addressinGetCapabilitiesParamsis added to wallet. - Use
-32602code for all EIP-5792 schema errors.
- Add
16.0.1
16.0.0
Added
- Support updated EIP-5792 specification (#363)
- Add optional
idtoSendCallsParams. - Add optional
capabilitiesto each call inSendCallsParams. - Add
optionalproperty to both top-level and call-level capabilities. - Add
SendCallsResulttype. - Add
id,version, and optionalcapabilitiestoGetCallsStatusResult. - Add
GetCallsStatusCodeenum. - Add
GetCallsStatusHooktype. - Add optional
chainIdsargument toGetCapabilitiesParams.
- Add optional
Changed
- BREAKING: Support updated EIP-5792 specification (#363)
- Return
SendCallsResultfromwallet_sendCallsinstead ofstring. - Change
GetCallsStatusParamsto containHexinstead ofstring. - Change
statusinGetCallsStatusResulttonumberinstead ofstring. - Replace
GetTransactionReceiptsByBatchIdHookwithGetCallsStatusHook.
- Return
Removed
- BREAKING: Support updated EIP-5792 specification (#363)
- Remove
GetCallsStatusReceipttype. - Remove
GetTransactionReceiptsByBatchIdHooktype.
- Remove
15.3.0
Added
- Support EIP-5792 (#359)
- Add support for RPC methods:
wallet_sendCallswallet_getCallsStatuswallet_getCapabilities
- Add optional hooks to
WalletMiddlewareOptions:getCapabilitiesgetTransactionReceiptsByBatchIdprocessSendCalls
- Add types:
GetCallsStatusParamsGetCallsStatusReceiptGetCallsStatusResultGetCapabilitiesHookGetCapabilitiesParamsGetCapabilitiesResultGetTransactionReceiptsByBatchIdHookProcessSendCallsHookSendCallsSendCallsParams
- Add support for RPC methods: