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

Added eth_requestAccounts #163

Merged
merged 2 commits into from
Jul 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,11 @@
"value": {}
}
}
],
"errors": [
{
"$ref": "#/components/errors/UserRejected"
}
]
},
{
Expand Down Expand Up @@ -562,6 +567,31 @@
}
}
},
{
"tags": [
{
"$ref": "#/components/tags/MetaMask"
}
],
"name": "eth_requestAccounts",
"description": "Requests that the user provide an Ethereum address to be identified by. This method is specified by [EIP-1102](https://eips.ethereum.org/EIPS/eip-1102). Internally, this method calls `wallet_requestPermissions` for permission to call `eth_accounts`.",
"summary": "Requests that the user provide an Ethereum address.",
"params": [],
"result": {
"name": "AddressList",
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/address"
}
}
},
"errors": [
{
"$ref": "#/components/errors/UserRejected"
}
]
},
{
"tags": [
{
Expand Down Expand Up @@ -995,6 +1025,12 @@
"name": "Mobile",
"description": "Mobile-specific methods."
}
},
"errors": {
"UserRejected": {
"code": 4001,
"message": "User rejected the request."
}
}
}
}