Interface RequestArgs<S, M>

Arguments for the request() method. Fordefi methods and other EIP-1474 methods are typed, other methods are treated as having unknown parameters and return type.

interface RequestArgs<S, M> {
    method: string;
    params?: unknown;
}

Type Parameters

  • S extends RpcSchema = RpcSchema

    A schema of supported methods. Each method's schema is represented with Method, Params, ReturnType. Fordefi methods are available in FordefiRpcSchema, other EIP-1474 methods are available in NonFordefiRpcSchema.

  • M extends S[number]["Method"] | unknown = unknown

    The method name as defined in spec's Method.

Properties

Properties

method: string
params?: unknown