@bigmi/client
Version:
Reactive primitives for Bitcoin apps.
18 lines (17 loc) • 586 B
TypeScript
import type { BtcRpcRequestFn, RpcParameters, UTXOSchema, UTXOWalletSchema } from '@bigmi/core';
export type UTXOConnectorParameters = {
/**
* Some injected providers do not support programmatic disconnect.
* This flag simulates the disconnect behavior by keeping track of connection status in storage.
* @default true
*/
shimDisconnect?: boolean;
chainId?: number;
};
export type ProviderRequestParams = RpcParameters<[
...UTXOWalletSchema,
...UTXOSchema
]>;
export type UTXOWalletProvider = {
request: BtcRpcRequestFn<UTXOWalletSchema>;
};