Type alias WalletRpcSchema
WalletRpcSchema: [{ Method: "eth_accounts"; Parameters?: undefined; ReturnType: Address[]; }, { Method: "eth_chainId"; Parameters?: undefined; ReturnType: Quantity; }, { Method: "eth_estimateGas"; Parameters: [transaction
: RpcTransactionRequest] | [transaction
: RpcTransactionRequest, block
: RpcBlockNumber | BlockTag]; ReturnType: Quantity; }, { Method: "eth_requestAccounts"; Parameters?: undefined; ReturnType: Address[]; }, { Method: "eth_sendTransaction"; Parameters: [transaction
: RpcTransactionRequest]; ReturnType: Hash; }, { Method: "eth_sendRawTransaction"; Parameters: [signedTransaction
: Hex]; ReturnType: Hash; }, { Method: "eth_sign"; Parameters: [address
: Address, data
: Hex]; ReturnType: Hex; }, { Method: "eth_signTransaction"; Parameters: [request
: RpcTransactionRequest]; ReturnType: Hex; }, { Method: "eth_signTypedData_v4"; Parameters: [address
: Address, message
: string]; ReturnType: Hex; }, { Method: "eth_syncing"; Parameters?: undefined; ReturnType: NetworkSync | false; }, { Method: "personal_sign"; Parameters: [data
: Hex, address
: Address]; ReturnType: Hex; }, { Method: "wallet_addEthereumChain"; Parameters: [chain
: AddEthereumChainParameter]; ReturnType: null; }, { Method: "wallet_getPermissions"; Parameters?: undefined; ReturnType: WalletPermission[]; }, { Method: "wallet_requestPermissions"; Parameters: [permissions
: { eth_accounts: Record<string, any>; }]; ReturnType: WalletPermission[]; }, { Method: "wallet_switchEthereumChain"; Parameters: [chain
: { chainId: string; }]; ReturnType: null; }, { Method: "wallet_watchAsset"; Parameters: WatchAssetParams; ReturnType: boolean; }] Type declaration
Method: "eth_accounts"
Optional
Parameters?: undefined
Type declaration
Method: "eth_chainId"
Optional
Parameters?: undefined
Type declaration
Method: "eth_estimateGas"
Type declaration
Method: "eth_requestAccounts"
Optional
Parameters?: undefined
Type declaration
Method: "eth_sendTransaction"
ReturnType: Hash
Type declaration
Method: "eth_sendRawTransaction"
Parameters: [signedTransaction: Hex]
ReturnType: Hash
Type declaration
Method: "eth_sign"
Parameters: [address: Address, data: Hex]
ReturnType: Hex
Type declaration
Method: "eth_signTransaction"
ReturnType: Hex
Type declaration
Method: "eth_signTypedData_v4"
Parameters: [address: Address, message: string]
ReturnType: Hex
Type declaration
Method: "eth_syncing"
Optional
Parameters?: undefined
Type declaration
Method: "personal_sign"
Parameters: [data: Hex, address: Address]
ReturnType: Hex
Type declaration
Method: "wallet_addEthereumChain"
ReturnType: null
Type declaration
Method: "wallet_getPermissions"
Optional
Parameters?: undefined
Type declaration
Method: "wallet_requestPermissions"
Parameters: [permissions: {
eth_accounts: Record<string, any>;
}]
Type declaration
Method: "wallet_switchEthereumChain"
Parameters: [chain: {
chainId: string;
}]
ReturnType: null
Type declaration
Method: "wallet_watchAsset"
ReturnType: boolean