CCC Docs
    Preparing search index...

    Class ClientAbstract

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Accessors

    Methods

    • Parameters

      Returns Promise<{ mean: bigint; median: bigint }>

    • Parameters

      • blockNumber: NumLike
      • Optionalverbosity: null | number
      • OptionalwithCycles: null | boolean

      Returns Promise<undefined | ClientBlock>

    • Parameters

      • blockHash: BytesLike
      • Optionalverbosity: null | number
      • OptionalwithCycles: null | boolean

      Returns Promise<undefined | ClientBlock>

    • Parameters

      • blockNumber: NumLike
      • Optionalverbosity: null | number
      • OptionalwithCycles: null | boolean

      Returns Promise<undefined | ClientBlock>

    • Parameters

      • blockHash: BytesLike
      • Optionalverbosity: null | number
      • OptionalwithCycles: null | boolean

      Returns Promise<undefined | ClientBlock>

    • Parameters

      • outPointLike: OutPointLike
      • OptionalwithData: null | boolean
      • OptionalincludeTxPool: null | boolean

      Returns Promise<undefined | Cell>

    • Parameters

      • outPointLike: OutPointLike
      • OptionalwithData: null | boolean
      • OptionalincludeTxPool: null | boolean

      Returns Promise<undefined | Cell>

    • Find cells by search key designed for collectable cells. The result also includes cached cells, the order param only works for cells fetched from RPC.

      Parameters

      Returns AsyncGenerator<Cell>

      A async generator for yielding cells.

    • Parameters

      • lock: ScriptLike
      • Optionaltype: null | ScriptLike
      • withData: boolean = true
      • Optionalorder: "asc" | "desc"
      • limit: number = 10

      Returns AsyncGenerator<Cell>

    • Parameters

      • type: ScriptLike
      • withData: boolean = true
      • Optionalorder: "asc" | "desc"
      • limit: number = 10

      Returns AsyncGenerator<Cell>

    • Parameters

      Returns AsyncGenerator<
          {
              txHash: `0x${string}`;
              blockNumber: bigint;
              txIndex: bigint;
              cells: { isInput: boolean; cellIndex: bigint }[];
          },
      >

    • Parameters

      Returns AsyncGenerator<
          {
              txHash: `0x${string}`;
              blockNumber: bigint;
              txIndex: bigint;
              isInput: boolean;
              cellIndex: bigint;
          },
      >

    • Parameters

      Returns AsyncGenerator<
          | {
              txHash: `0x${string}`;
              blockNumber: bigint;
              txIndex: bigint;
              isInput: boolean;
              cellIndex: bigint;
          }
          | {
              txHash: `0x${string}`;
              blockNumber: bigint;
              txIndex: bigint;
              cells: { isInput: boolean; cellIndex: bigint }[];
          },
      >

    • Parameters

      • lock: ScriptLike
      • type: undefined | null | ScriptLike
      • groupByTransaction: true
      • Optionalorder: "asc" | "desc"
      • Optionallimit: number

      Returns AsyncGenerator<
          {
              txHash: `0x${string}`;
              blockNumber: bigint;
              txIndex: bigint;
              cells: { isInput: boolean; cellIndex: bigint }[];
          },
      >

    • Parameters

      • lock: ScriptLike
      • Optionaltype: null | ScriptLike
      • OptionalgroupByTransaction: null | false
      • Optionalorder: "asc" | "desc"
      • Optionallimit: number

      Returns AsyncGenerator<
          {
              txHash: `0x${string}`;
              blockNumber: bigint;
              txIndex: bigint;
              isInput: boolean;
              cellIndex: bigint;
          },
      >

    • Parameters

      • lock: ScriptLike
      • Optionaltype: null | ScriptLike
      • OptionalgroupByTransaction: null | boolean
      • Optionalorder: "asc" | "desc"
      • Optionallimit: number

      Returns AsyncGenerator<
          | {
              txHash: `0x${string}`;
              blockNumber: bigint;
              txIndex: bigint;
              isInput: boolean;
              cellIndex: bigint;
          }
          | {
              txHash: `0x${string}`;
              blockNumber: bigint;
              txIndex: bigint;
              cells: { isInput: boolean; cellIndex: bigint }[];
          },
      >

    • Parameters

      • type: ScriptLike
      • groupByTransaction: true
      • Optionalorder: "asc" | "desc"
      • Optionallimit: number

      Returns AsyncGenerator<
          {
              txHash: `0x${string}`;
              blockNumber: bigint;
              txIndex: bigint;
              cells: { isInput: boolean; cellIndex: bigint }[];
          },
      >

    • Parameters

      • type: ScriptLike
      • OptionalgroupByTransaction: null | false
      • Optionalorder: "asc" | "desc"
      • Optionallimit: number

      Returns AsyncGenerator<
          {
              txHash: `0x${string}`;
              blockNumber: bigint;
              txIndex: bigint;
              isInput: boolean;
              cellIndex: bigint;
          },
      >

    • Parameters

      • type: ScriptLike
      • OptionalgroupByTransaction: null | boolean
      • Optionalorder: "asc" | "desc"
      • Optionallimit: number

      Returns AsyncGenerator<
          | {
              txHash: `0x${string}`;
              blockNumber: bigint;
              txIndex: bigint;
              isInput: boolean;
              cellIndex: bigint;
          }
          | {
              txHash: `0x${string}`;
              blockNumber: bigint;
              txIndex: bigint;
              cells: { isInput: boolean; cellIndex: bigint }[];
          },
      >