Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bumblefudge opened this issue Jan 18, 2023 · 1 comment
Assignees

Comments

@bumblefudge
Copy link
Collaborator

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

@bumblefudge
Copy link
Collaborator Author

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants