CCC Docs
    Preparing search index...

    Function buildTypeIdOperations

    • Build Type ID operations.

      Type Parameters

      Parameters

      • props: {
            getScriptInfo: (client: Client) => Promise<ScriptInfoLike>;
            codec?: null | CodecLike<Encodable, Decoded>;
            calculateTypeId?:
                | null
                | ((client: Client, tx: Transaction) => Promise<BytesLike>);
            addCellDeps?:
                | null
                | (
                    (
                        client: Client,
                        tx: Transaction,
                        scriptInfo: ScriptInfo,
                    ) => Promise<TransactionLike>
                );
        }

        The properties to build the operations.

      Returns {
          create(
              this: void,
              props: {
                  signer: Signer;
                  data: Encodable;
                  receiver?: null | ScriptLike;
                  tx?: null | TransactionLike;
              },
          ): Promise<{ tx: Transaction; id: `0x${string}`; index: number }>;
          transfer(
              this: void,
              props: {
                  client: Client;
                  id: BytesLike;
                  receiver: ScriptLike;
                  tx?: null | TransactionLike;
                  data?:
                      | null
                      | Encodable
                      | ((cell: Cell, data?: Decoded) => Encodable | Promise<Encodable>);
              },
          ): Promise<{ tx: Transaction; inIndex: number; outIndex: number }>;
          destroy(
              this: void,
              props: { client: Client; id: BytesLike; tx?: null | TransactionLike },
          ): Promise<{ tx: Transaction; index: number }>;
      }