Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | 32x 3x 1x 1x 1x 1x 1x 1x | import {Checksum256, Name, NameType, UInt64, UInt64Type} from '@wharfkit/antelope'
export interface ActionStreamFilter {
contracts?: NameType[]
receivers?: NameType[]
actions?: NameType[]
}
export interface ActionStreamOptions {
startSeq?: UInt64Type | 'head'
decode?: boolean
reconnectDelay?: number
reconnectMaxDelay?: number
ackInterval?: number
queueSize?: number
healthyThreshold?: number
}
export interface StreamOverflow {
droppedFrom: UInt64
resumeSeq: UInt64
queueSize: number
overflowCount: number
}
export interface StreamGap {
expected: number
received: number
resumeSeq: UInt64
}
export interface StreamAction {
globalSeq: UInt64
blockNum: number
blockTime: number
contract: Name
action: Name
receiver: Name
trxId: Checksum256
hexData?: string
data?: Record<string, unknown>
}
export interface StreamState {
headSeq: UInt64
libSeq: UInt64
}
export enum ErrorCode {
InvalidRequest = 1,
ServerSyncing = 2,
MaxClients = 3,
NoActions = 4,
DataInconsistent = 5,
ResyncRequired = 6,
}
export interface StreamError {
code: number
message: string
}
export interface WsSubscribeMessage {
type: 'subscribe'
contracts?: string[]
receivers?: string[]
actions?: string[]
start_seq?: string
decode?: boolean
}
export interface WsActionMessage {
type: 'action'
global_seq: string
block_num: number
block_time: number
contract: string
action: string
receiver: string
trx_id?: string
hex_data?: string
data?: Record<string, unknown>
sub_seq?: number
}
export interface WsHeartbeatMessage {
type: 'heartbeat'
head_seq: string
lib_seq: string
}
export interface WsCatchupCompleteMessage {
type: 'catchup_complete'
head_seq: string
lib_seq: string
}
export interface WsErrorMessage {
type: 'error'
code: number
message: string
}
export interface WsAckMessage {
type: 'ack'
seq: string
}
export type WsServerMessage =
| WsActionMessage
| WsHeartbeatMessage
| WsCatchupCompleteMessage
| WsErrorMessage
|