Options
All
  • Public
  • Public/Protected
  • All
Menu

Package light-client

Index

References

LightClientRPC

Re-exports LightClientRPC

LightClientRPC

Re-exports LightClientRPC

Type aliases

FetchHeaderResult

FetchHeaderResult: { data: Header; status: Fetched } | { firstSent: string; status: Fetching } | { status: Added; timestamp: string } | { status: NotFound }

FetchHeaderResult

FetchHeaderResult: { data: Header; status: Fetched } | { firstSent: string; status: Fetching } | { status: Added; timestamp: string } | { status: NotFound }

FetchTransactionResult

FetchTransactionResult: { data: TransactionWithHeader; status: Fetched } | { firstSent: string; status: Fetching } | { status: Added; timestamp: string } | { status: NotFound }

FetchTransactionResult

FetchTransactionResult: { data: TransactionWithHeader; status: Fetched } | { firstSent: string; status: Fetching } | { status: Added; timestamp: string } | { status: NotFound }

GroupedLightClientTransaction

GroupedLightClientTransaction: { blockNumber: HexNum; cells: Array<[IOType, HexNum]>; transaction: Transaction; txIndex: HexNum }

Type declaration

GroupedLightClientTransaction

GroupedLightClientTransaction: { blockNumber: HexNum; cells: Array<[IOType, HexNum]>; transaction: Transaction; txIndex: HexNum }

Type declaration

HexNum

HexNum: string

HexNum

HexNum: string

IOType

IOType: "input" | "output" | "both"

IOType

IOType: "input" | "output" | "both"

LightClientScript

LightClientScript: { blockNumber: HexNumber; script: Script; scriptType: ScriptType }

Type declaration

LightClientScript

LightClientScript: { blockNumber: HexNumber; script: Script; scriptType: ScriptType }

Type declaration

LightClientTransaction

LightClientTransaction<Goruped>: Goruped extends true ? GroupedLightClientTransaction : UngroupedLightClientTransaction

Type parameters

  • Goruped: boolean

LightClientTransaction

LightClientTransaction<Goruped>: Goruped extends true ? GroupedLightClientTransaction : UngroupedLightClientTransaction

Type parameters

  • Goruped: boolean

ScriptType

ScriptType: "type" | "lock"

ScriptType

ScriptType: "type" | "lock"

TransactionWithHeader

TransactionWithHeader: { header: Header; transaction: Transaction }

Type declaration

TransactionWithHeader

TransactionWithHeader: { header: Header; transaction: Transaction }

Type declaration

UngroupedLightClientTransaction

UngroupedLightClientTransaction: { blockNumber: HexNum; ioIndex: HexNum; ioType: IOType; transaction: Transaction; txIndex: HexNum }

Type declaration

UngroupedLightClientTransaction

UngroupedLightClientTransaction: { blockNumber: HexNum; ioIndex: HexNum; ioType: IOType; transaction: Transaction; txIndex: HexNum }

Type declaration

Functions

Const request

  • request(ckbIndexerUrl: string, method: string, params?: any): Promise<any>
  • Parameters

    • ckbIndexerUrl: string
    • method: string
    • Optional params: any

    Returns Promise<any>

Generated using TypeDoc