RpcSchema
Utility types for working with Ethereum JSON-RPC namespaces & schemas.
Functions
Name | Description |
---|---|
RpcSchema.from | Instantiates a statically typed Schema. This is a runtime-noop function, and is purposed to be used as a type-level tag to be used with Provider.from or RpcTransport.fromHttp . |
Types
Name | Description |
---|---|
RpcSchema.Default | Type-safe union of all JSON-RPC Methods. |
RpcSchema.Eth | Union of all JSON-RPC Methods for the eth_ namespace. |
RpcSchema.ExtractItem | Extracts a schema item from a RpcSchema.Generic or RpcSchema.MethodNameGeneric . |
RpcSchema.ExtractMethodName | Type-safe union of all JSON-RPC Method Names. |
RpcSchema.ExtractParams | Extracts parameters from a RpcSchema.Generic or RpcSchema.MethodNameGeneric . |
RpcSchema.ExtractRequest | Extracts request from a RpcSchema.Generic or RpcSchema.MethodNameGeneric . |
RpcSchema.ExtractReturnType | Extracts return type from a RpcSchema.Generic or RpcSchema.MethodNameGeneric . |
RpcSchema.From | Type to define a custom type-safe JSON-RPC Schema. |
RpcSchema.Generic | Generic type to define a JSON-RPC Method. |
RpcSchema.MethodNameGeneric | Generic type to define a JSON-RPC Method Name. |
RpcSchema.Wallet | Union of all JSON-RPC Methods for the wallet_ namespace. |