-
Notifications
You must be signed in to change notification settings - Fork 6
leverage omnichain features [APE-1138] #4
Copy link
Copy link
Open
Description
ape-frame/ape_frame/providers.py
Line 57 in c2c1545
| "wallet_switchEthereumChain", |
newer frame versions connect to all added networks, so we don't need to switch to a network to send requests.
the docs are lacking but from what i can tell, there are at least two methods available:
-
found here. we can add a
chainIdparameter to any request and it will be processed on the corresponding chain. this seems very simple to implement and looks like a preferred way to go. -
found here and loosely based on caip-27. here a request is wrapped into
wallet_requeststructure:
{
"jsonrpc": "2.0",
"id": 1,
"method": "wallet_request",
"params": {
"chainId": "eip155:1",
"request": {
"method": "eth_blockNumber",
"params": [],
},
},
}both seem to work but the first option sounds way easier. the only thing to clarify is whether frame plans to keep support for it.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels