Skip to content
Closed
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
19 changes: 17 additions & 2 deletions CAIPs/caip-25.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,31 @@ The application would interface with a provider to initiate a session by calling

The JSON-RPC method is labelled as `caip_handshake` and expects two parameters:

* chains - array of CAIP-2 complaint chainId's
* chains - array of CAIP-2 complaint chainId's or an array with a wildcard "*"
* methods - array of JSON-RPC methods expected to be used during the session

Example of the request with a wildcard:

```
{
"id": 1,
"jsonrpc": "2.0",
"method": "caip_handshake",
"params": {
"chains": ["*"],
"methods": ["eth_sendTransaction", "eth_signTransaction", "eth_sign", "personal_sign"]
}
}
```


### Response

The wallet can respond to this method with either a success result or an error message.

#### Success

The response MUST be a success result when the user approved accounts matching the requested chains to be exposed and the requested methods to be used.
The response MUST be a success result when the user approved accounts matching the requested chains to be exposed or matching all of chains available in case of a wildcard and the requested methods to be used.

An example of a successful response should match the following format:

Expand Down