ChainAgnostic/CAIPs

[CAIP-25] Proposed Use Case: Optional Requests for only accounts w/X DAI/Eth in them

bumblefudge opened this issue · 1 comments

@hmalik88 mentioned on call today, my curiosity is piqued!

Strawman 25 variant:

...
"optionalNamespaces":{
      "eip155:1": {
        "methods": ["eth_sendTransaction", "eth_signTransaction", "get_balance", "personal_sign"],
        "events": ["accountsChanged", "chainChanged"]
        "caveats": {
            "balanceMoreThan":"0.5"
        }
    },
...

(Note: Polkadot has this built in, it might be worth looking at how Statemint exempts/overrides default behavior of only accepting non-empty wallets, etc)