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

Initial Multichain API docs #1621

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open

Initial Multichain API docs #1621

wants to merge 30 commits into from

Conversation

alexandratran
Copy link
Contributor

@alexandratran alexandratran commented Oct 9, 2024

Description

Initial Multichain API docs.

Issue(s) fixed

Fixes #1566

Preview

(Links updated Mar 5)

Checklist

Complete this checklist before merging your PR:

  • If this PR contains a major change to the documentation content, I have added an entry to the top of the "What's new?" page.
  • The proposed changes have been reviewed and approved by a member of the documentation team.

Copy link

vercel bot commented Oct 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
metamask-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 5, 2025 11:08pm

@vandan
Copy link
Contributor

vandan commented Oct 18, 2024

For MetaMask, I do not believe we need to document the scenario where wallet_createSession is used with sessionIds.

# Conflicts:
#	docusaurus.config.js
#	wallet-sidebar.js
…nto 1566-multichain

# Conflicts:
#	docusaurus.config.js
#	wallet-sidebar.js
@vandan
Copy link
Contributor

vandan commented Nov 20, 2024

The CAIP standards extensively use the term "session", which insinuates a transient connection. MetaMask predominantly establishes persistent connections so we could consider using alternative terminology such as "connection". But I'm not sure if it's more confusing to diverge from the names used in the Multichain API methods.

alexandratran and others added 2 commits November 25, 2024 11:37
@alexandratran
Copy link
Contributor Author

@vandan

The CAIP standards extensively use the term "session", which insinuates a transient connection. MetaMask predominantly establishes persistent connections so we could consider using alternative terminology such as "connection". But I'm not sure if it's more confusing to diverge from the names used in the Multichain API methods.

I went ahead and updated "session" to "connection" throughout the docs. I think this is fine, but let me know if you prefer one way or the other.

@alexandratran alexandratran requested a review from a team as a code owner February 6, 2025 04:00
# Conflicts:
#	docs/whats-new.md
#	wallet-sidebar.js
@vandan
Copy link
Contributor

vandan commented Mar 5, 2025

One new request came up. In wallet_createSession requests. When CAIP-217 scopeObjects are specified under optionalScopes, only the following parameters are supported:

  • references
  • methods
  • notifications
  • accounts

Note: The references parameter is mainly included as a shorthand when there would otherwise be repetitive scopeObjects with the only difference being the reference portion of the scopeString.

Note: Supplying an accounts parameter is also a special case where the requesting app already knows a set of account it would like the user to permission. When supplied, the account selection process may include the requested accounts as defaults when supplied in the accounts parameter. Typically, applications are expected to leave this parameter off for the user to make their own selections.

@vandan
Copy link
Contributor

vandan commented Mar 5, 2025

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

Successfully merging this pull request may close these issues.

Initial Multichain API docs
3 participants