UNPKG

@erc7824/nitrolite

Version:

The Nitrolite SDK empowers developers to build high-performance, scalable web3 applications using state channels. It's designed to provide near-instant transactions and significantly improved user experiences by minimizing direct blockchain interactions.

8 lines (7 loc) 489 B
import { Address, Hex } from 'viem'; import { Channel, ChannelId, State } from '../client/types'; import { RPCChannel, RPCChannelOperationState } from '../rpc'; export declare function getChannelId(channel: Channel, chainId: number): ChannelId; export declare function generateChannelNonce(address?: Address): bigint; export declare function convertRPCToClientChannel(ch: RPCChannel): Channel; export declare function convertRPCToClientState(s: RPCChannelOperationState, sig: Hex): State;