-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathrpc.ts
More file actions
30 lines (28 loc) · 721 Bytes
/
rpc.ts
File metadata and controls
30 lines (28 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
export const OPTIONAL_METHODS = [
'eth_accounts',
'eth_requestAccounts',
'eth_sendRawTransaction',
'eth_sign',
'eth_signTransaction',
'eth_signTypedData',
'eth_signTypedData_v3',
'eth_signTypedData_v4',
'eth_sendTransaction',
'personal_sign',
'wallet_switchEthereumChain',
'wallet_addEthereumChain',
'wallet_getPermissions',
'wallet_requestPermissions',
'wallet_registerOnboarding',
'wallet_watchAsset',
'wallet_scanQRCode'
];
export const OPTIONAL_EVENTS = [
'chainChanged',
'accountsChanged',
'message',
'disconnect',
'connect'
];
export const REQUIRED_METHODS = ['eth_sendTransaction', 'personal_sign'];
export const REQUIRED_EVENTS = ['chainChanged', 'accountsChanged'];