RpcPeerResponse
export type RpcPeerResponse = {
state: string
connectionWebSocket: ConnectionState
connectionWebSocketError: string
connectionWebRTC: ConnectionState
connectionWebRTCError: string
connections: number
identity: string | null
version: number | null
head: string | null
sequence: number | null
work: string | null
agent: string | null
name: string | null
address: string | null
port: number | null
error: string | null
networkId: number | null
genesisBlockHash: string | null
features: Features | null
}
export type ConnectionState = Connection['state']['type'] | ''
Usage: