Skip to content

Commit e8692d3

Browse files
authored
Fixed eth_accounts example params (#216)
1 parent f7c065f commit e8692d3

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

openrpc.yaml

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ info:
2222
MetaMask, and may or may not be supported by other wallets.
2323
2424
- **Restricted** - These methods are restricted and require requesting
25-
permission using either [`wallet_requestPermissions`](/wallet/reference/wallet_requestpermissions)
25+
permission using either [`wallet_requestPermissions`](/wallet/reference/wallet_requestpermissions)
2626
or [`wallet_requestSnaps`](/wallet/reference/wallet_requestSnaps).
2727
2828
- **Mobile** - These methods are only available on MetaMask Mobile.
@@ -252,9 +252,9 @@ methods:
252252
Presents a plain text signature challenge to the user and returns the
253253
signed response. Equivalent to `eth_sign` on some other wallets, and
254254
prepends a safe prefix to the signed message to prevent the challenge
255-
tricking users into signing a financial transaction.
256-
This method requires that the user has granted permission to interact
257-
with their account first, so make sure to call `eth_requestAccounts` (recommended)
255+
tricking users into signing a financial transaction.
256+
This method requires that the user has granted permission to interact
257+
with their account first, so make sure to call `eth_requestAccounts` (recommended)
258258
or `wallet_requestPermissions` first.
259259
deprecated: false
260260
params:
@@ -282,7 +282,7 @@ methods:
282282
- name: personal_sign example
283283
params:
284284
- name: options
285-
value:
285+
value:
286286
challenge: '0x506c65617365207369676e2074686973206d65737361676520746f20636f6e6669726d20796f7572206964656e746974792e'
287287
address: '0x4B0897b0513FdBeEc7C469D9aF4fA6C0752aBea7'
288288
result:
@@ -296,7 +296,7 @@ methods:
296296
description: >-
297297
Presents a data message for the user to sign in a structured and readable
298298
format and returns the signed response. Introduced by
299-
[EIP-712](https://eips.ethereum.org/EIPS/eip-712).
299+
[EIP-712](https://eips.ethereum.org/EIPS/eip-712).
300300
This method requires that the user has granted permission to interact with their account first,
301301
so make sure to call `eth_requestAccounts` (recommended) or `wallet_requestPermissions` first.
302302
params:
@@ -741,8 +741,8 @@ methods:
741741
- $ref: '#/components/tags/MetaMask'
742742
- $ref: '#/components/tags/Restricted'
743743
description: >-
744-
Returns a list of addresses for the accounts owned by the user.
745-
This method requires calling `wallet_requestPermissions` for permission.
744+
Returns a list of addresses for the accounts owned by the user.
745+
This method requires calling `wallet_requestPermissions` for permission.
746746
We recommend using `eth_requestAccounts`, which internally calls `wallet_requestPermission`.
747747
summary: Gets a list of addresses for the user's accounts.
748748
params: []
@@ -754,9 +754,7 @@ methods:
754754
$ref: '#/components/schemas/address'
755755
examples:
756756
- name: eth_accounts example
757-
params:
758-
- name: accountsParameter
759-
value: []
757+
params: []
760758
result:
761759
name: eth_accountsExampleResult
762760
value: '0xa77392123a1085f75e62eec7dea7e0e1e5142d5f'
@@ -767,7 +765,7 @@ methods:
767765
description: >-
768766
Creates a new wallet confirmation to make an Ethereum transaction from the
769767
user's account. This method requires that the user has granted permission
770-
to interact with their account first, so make sure to call `eth_requestAccounts` (recommended)
768+
to interact with their account first, so make sure to call `eth_requestAccounts` (recommended)
771769
or `wallet_requestPermissions` first.
772770
summary: Initiates a new transaction.
773771
params:
@@ -850,7 +848,7 @@ methods:
850848
gasPrice: '0x4a817c800'
851849
result:
852850
name: eth_sendTransactionExampleResult
853-
value: '0x4e306b5a5a37532e1734503f7d2427a86f2c992fbe471f5be403b9f734e667c8'
851+
value: '0x4e306b5a5a37532e1734503f7d2427a86f2c992fbe471f5be403b9f734e667c8'
854852
- name: eth_decrypt
855853
tags:
856854
- $ref: '#/components/tags/MetaMask'
@@ -860,8 +858,8 @@ methods:
860858
description: |-
861859
This method is deprecated and may be removed in the future.
862860
863-
Requests that MetaMask decrypt the specified encrypted message.
864-
The message must have been encrypted using the public encryption key of the specified Ethereum address.
861+
Requests that MetaMask decrypt the specified encrypted message.
862+
The message must have been encrypted using the public encryption key of the specified Ethereum address.
865863
Returns a promise that resolves to the decrypted message, or rejects if the decryption attempt fails.
866864
params:
867865
- name: EncryptedMessage
@@ -886,7 +884,7 @@ methods:
886884
- name: decryptExample
887885
params:
888886
- name: decryptParameter
889-
value:
887+
value:
890888
- '0x4B0897b0513FdBeEc7C469D9aF4fA6C0752aBea7'
891889
- '0xDeaDbeefdEAdbeefdEadbEEFdeadbeefDEADbEEF'
892890
result:
@@ -901,8 +899,8 @@ methods:
901899
description: |-
902900
This method is deprecated and may be removed in the future.
903901
904-
Requests that the user share their public encryption key.
905-
Returns a public encryption key, or rejects if the user denies the request.
902+
Requests that the user share their public encryption key.
903+
Returns a public encryption key, or rejects if the user denies the request.
906904
The public key is computed from entropy associated with the specified user account, using the NaCl implementation of the `X25519_XSalsa20_Poly1305` algorithm.
907905
params:
908906
- name: Address
@@ -918,7 +916,7 @@ methods:
918916
- name: eth_getEncryptionPublicKey
919917
params:
920918
- name: getEncryptionPublicKey
921-
value:
919+
value:
922920
- '0x4B0897b0513FdBeEc7C469D9aF4fA6C0752aBea7'
923921
result:
924922
name: eth_getEncryptionPublicKeyExampleResult

0 commit comments

Comments
 (0)