Skip to content

Commit

Permalink
add capabilities to response
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasrosario committed Jan 11, 2025
1 parent ad36c64 commit 746cc8c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions EIPS/eip-5792.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ type SendCallsParams = {
capabilities?: Record<string, any> | undefined;
};

type SendCallsResult = string;
type SendCallsResult = {
id: string;
capabilities?: Record<string, any> | undefined;
};
```

##### `wallet_sendCalls` Example Parameters
Expand Down Expand Up @@ -115,11 +118,14 @@ Note that since the `paymasterService` `capability` is marked as optional, walle
##### `wallet_sendCalls` Example Return Value

The identifier MUST be unique 64 bytes represented as a hex encoded string.
For a given session, users should be able to call `wallet_getCallsStatus` with this value and expect a call-batch status
to be returned.
For a given session, users should be able to call `wallet_getCallsStatus` with this value and expect a call-batch status to be returned.

The `capabilities` object allows the wallets to attach a capability-specific metadata to the response.

```json
"0x00000000000000000000000000000000000000000000000000000000000000000e670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"
{
"id": "0x00000000000000000000000000000000000000000000000000000000000000000e670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331",
}
```

### `wallet_getCallsStatus`
Expand Down

0 comments on commit 746cc8c

Please sign in to comment.