Keeta LogoKeeta Logo@keetanetwork/keetanet-client
    Preparing search index...

    Block: An item which contains a number of operations (transactions) which originated from an account at a particular instant

    Implements

    Index

    Constructors

    Properties

    $opening: boolean = false
    $signatureValid: boolean = true
    date: Date
    network: bigint
    operations: BlockOperations[]
    previous: BlockHash
    signature: Buffer
    signer: Account
    subnet: undefined | bigint
    version: number
    AdjustMethod: typeof AdjustMethod = AdjustMethod
    Builder: typeof BlockBuilder
    Hash: typeof BlockHash = BlockHash
    isInstance: (obj: any, strict?: boolean) => obj is Block = ...
    NO_PREVIOUS: string = NO_PREVIOUS
    Operation: {
        CREATE_IDENTIFIER: typeof BlockOperationCREATE_IDENTIFIER;
        MODIFY_PERMISSIONS: typeof BlockOperationMODIFY_PERMISSIONS;
        RECEIVE: typeof BlockOperationRECEIVE;
        SEND: typeof BlockOperationSEND;
        SET_INFO: typeof BlockOperationSET_INFO;
        SET_REP: typeof BlockOperationSET_REP;
        TOKEN_ADMIN_MODIFY_BALANCE: typeof BlockOperationTOKEN_ADMIN_MODIFY_BALANCE;
        TOKEN_ADMIN_SUPPLY: typeof BlockOperationTOKEN_ADMIN_SUPPLY;
    } = Operations.Operation
    OperationType: typeof OperationType = Operations.OperationType
    toJSONSerializablePrefix: string = 'BLOCK'

    Accessors

    • get hash(): BlockHash

      Hash of the block minus the signature

      XXX:TODO: Should the hash of the block normally include the signature ? One reason against is that it would allow for identical blocks that only differ by signature (which isn't signed)

      Returns BlockHash

    Methods

    • Parameters

      • includeSignature: boolean = true

      Returns ArrayBuffer

    • Returns [
          bigint,
          bigint,
          null
          | bigint,
          Omit<ASN1Date, "kind"> & { kind: "general" },
          Buffer,
          null | Buffer,
          Buffer,
          (
              | Omit<ASN1ContextTag, "kind" | "value" | "contains"> & {
                  contains: [bigint, bigint];
                  kind: "explicit";
                  value: TOKEN_ADMIN_SUPPLY;
              }
              | Omit<ASN1ContextTag, "kind" | "value" | "contains"> & {
                  contains: [Buffer, bigint, bigint];
                  kind: "explicit";
                  value: TOKEN_ADMIN_MODIFY_BALANCE;
              }
              | Omit<ASN1ContextTag, "kind" | "value" | "contains"> & {
                  contains: [
                      Buffer,
                      bigint,
                      Buffer,
                      undefined
                      | Omit<ASN1String, "kind"> & { kind: "utf8" },
                  ];
                  kind: "explicit";
                  value: SEND;
              }
              | Omit<ASN1ContextTag, "kind" | "value" | "contains"> & {
                  contains: [Buffer];
                  kind: "explicit";
                  value: SET_REP;
              }
              | Omit<ASN1ContextTag, "kind" | "value" | "contains"> & {
                  contains: [
                      Omit<ASN1String, "kind"> & { kind: "utf8" },
                      Omit<ASN1String, "kind"> & { kind: "utf8" },
                      Omit<ASN1String, "kind"> & { kind: "utf8" },
                      undefined | [bigint, bigint],
                  ];
                  kind: "explicit";
                  value: SET_INFO;
              }
              | Omit<ASN1ContextTag, "kind" | "value" | "contains"> & {
                  contains: [
                      Buffer,
                      bigint,
                      null
                      | [bigint, bigint],
                      undefined | Buffer,
                  ];
                  kind: "explicit";
                  value: MODIFY_PERMISSIONS;
              }
              | Omit<ASN1ContextTag, "kind" | "value" | "contains"> & {
                  contains: [Buffer];
                  kind: "explicit";
                  value: CREATE_IDENTIFIER;
              }
              | Omit<ASN1ContextTag, "kind" | "value" | "contains"> & {
                  contains: [bigint, Buffer, Buffer, boolean, undefined | Buffer];
                  kind: "explicit";
                  value: RECEIVE;
              }
          )[],
      ]

    • Parameters

      Returns { $hash: string; $opening: boolean; operations: any[]; [key: string]: any }