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

    Constructors

    • Parameters

      • Optionalblock:
            | string
            | ArrayBuffer
            | Block
            | {
                $hash: BlockHashString;
                $opening: boolean;
                account: TokenPublicKeyString | NetworkPublicKeyString | StoragePublicKeyString | MultisigPublicKeyString | Secp256K1PublicKeyString | Secp256R1PublicKeyString | ED25519PublicKeyString;
                date: string;
                network: string;
                operations: (
                    | {
                        amount: string;
                        to: string;
                        token: TokenPublicKeyString;
                        type: SEND;
                    } & { external?: string }
                    | { to: string; type: SET_REP } & {}
                    | { description: string; metadata: string; name: string; type: SET_INFO } & {
                        defaultPermission?:
                            | false
                            | [string, number[]]
                            | [string, string]
                            | [number[] | BaseFlagNames, number[]];
                    }
                    | {
                        method: AdjustMethod;
                        permissions: | null
                        | false
                        | [string, number[]]
                        | [string, string]
                        | [number[] | BaseFlagNames, number[]];
                        principal: string;
                        type: MODIFY_PERMISSIONS;
                    } & { target?: string }
                    | { identifier: string; type: CREATE_IDENTIFIER } & {
                        createArguments?:
                            | {
                                quorum: string;
                                signers: (
                                    MultisigPublicKeyString | Secp256K1PublicKeyString | Secp256R1PublicKeyString | ED25519PublicKeyString
                                )[];
                                type: MULTISIG;
                            } & {}
                            | {
                                quorum: string;
                                signers: (
                                    MultisigPublicKeyString | Secp256K1PublicKeyString | Secp256R1PublicKeyString | ED25519PublicKeyString
                                )[];
                                type: MULTISIG;
                            } & {};
                    }
                    | { amount: string; method: ADD
                    | SUBTRACT; type: TOKEN_ADMIN_SUPPLY } & {}
                    | {
                        amount: string;
                        method: AdjustMethod;
                        token: TokenPublicKeyString;
                        type: TOKEN_ADMIN_MODIFY_BALANCE;
                    } & {}
                    | {
                        amount: string;
                        from: string;
                        token: TokenPublicKeyString;
                        type: RECEIVE;
                    } & { exact?: boolean; forward?: string }
                    | {
                        certificateOrHash:
                            | string
                            | CertificateHashString
                            | {
                                $hash: CertificateHashString;
                                issuer: string;
                                issuerDN: { name: string; value: string }[];
                                notAfter: string;
                                notBefore: string;
                                serial: string;
                                subject: string;
                                subjectDN: { name: string; value: string }[];
                                subjectPublicKey: Secp256K1PublicKeyString | Secp256R1PublicKeyString | ED25519PublicKeyString;
                            } & {
                                $binary?: string;
                                $chain?: undefined;
                                baseExtensions?: {} & {
                                    authorityKeyIdentifier?: {
                                        contains: string;
                                        type: "context";
                                        value: 0;
                                    } & {};
                                    basicConstraints?: [ca: boolean, pathLenConstraint?: null | string];
                                    keyUsage?: KeyUsage;
                                    subjectKeyIdentifier?: string;
                                };
                            }
                            | {
                                $hash: CertificateHashString;
                                issuer: string;
                                issuerDN: { name: string; value: string }[];
                                notAfter: string;
                                notBefore: string;
                                serial: string;
                                subject: string;
                                subjectDN: { name: string; value: string }[];
                                subjectPublicKey: Secp256K1PublicKeyString | Secp256R1PublicKeyString | ED25519PublicKeyString;
                            } & {
                                $binary?: string;
                                $chain?: undefined;
                                baseExtensions?: {} & {
                                    authorityKeyIdentifier?: {
                                        contains: string;
                                        type: "context";
                                        value: 0;
                                    } & {};
                                    basicConstraints?: [ca: boolean, pathLenConstraint?: null | string];
                                    keyUsage?: KeyUsage;
                                    subjectKeyIdentifier?: string;
                                };
                            };
                        method: ADD
                        | SUBTRACT;
                        type: MANAGE_CERTIFICATE;
                    } & {
                        intermediateCertificates?: null
                        | string
                        | { certificates: string[] };
                    }
                )[];
                previous: BlockHashString;
                purpose: BlockPurpose;
                signer: Secp256K1PublicKeyString | Secp256R1PublicKeyString | ED25519PublicKeyString | [MultisigPublicKeyString, (Secp256K1PublicKeyString | ... 2 more ... | [...])[]];
                version: 1
                | 2;
            } & {
                $binary?: string;
                idempotent?: string;
                signature?: string;
                signatures?: string[];
                subnet?: string;
            }
            | BlockJSON
            | {
                $hash: BlockHashString;
                $opening: boolean;
                account: TokenPublicKeyString | NetworkPublicKeyString | StoragePublicKeyString | MultisigPublicKeyString | Secp256K1PublicKeyString | Secp256R1PublicKeyString | ED25519PublicKeyString;
                date: string;
                network: string;
                operations: (
                    | {
                        amount: string;
                        to: string;
                        token: TokenPublicKeyString;
                        type: SEND;
                    } & { external?: string }
                    | { to: string; type: SET_REP } & {}
                    | { description: string; metadata: string; name: string; type: SET_INFO } & {
                        defaultPermission?:
                            | false
                            | [string, number[]]
                            | [string, string]
                            | [number[] | BaseFlagNames, number[]];
                    }
                    | {
                        method: AdjustMethod;
                        permissions: | null
                        | false
                        | [string, number[]]
                        | [string, string]
                        | [number[] | BaseFlagNames, number[]];
                        principal: string;
                        type: MODIFY_PERMISSIONS;
                    } & { target?: string }
                    | { identifier: string; type: CREATE_IDENTIFIER } & {
                        createArguments?:
                            | {
                                quorum: string;
                                signers: (
                                    MultisigPublicKeyString | Secp256K1PublicKeyString | Secp256R1PublicKeyString | ED25519PublicKeyString
                                )[];
                                type: MULTISIG;
                            } & {}
                            | {
                                quorum: string;
                                signers: (
                                    MultisigPublicKeyString | Secp256K1PublicKeyString | Secp256R1PublicKeyString | ED25519PublicKeyString
                                )[];
                                type: MULTISIG;
                            } & {};
                    }
                    | { amount: string; method: ADD
                    | SUBTRACT; type: TOKEN_ADMIN_SUPPLY } & {}
                    | {
                        amount: string;
                        method: AdjustMethod;
                        token: TokenPublicKeyString;
                        type: TOKEN_ADMIN_MODIFY_BALANCE;
                    } & {}
                    | {
                        amount: string;
                        from: string;
                        token: TokenPublicKeyString;
                        type: RECEIVE;
                    } & { exact?: boolean; forward?: string }
                    | {
                        certificateOrHash:
                            | string
                            | CertificateHashString
                            | {
                                $hash: CertificateHashString;
                                issuer: string;
                                issuerDN: { name: string; value: string }[];
                                notAfter: string;
                                notBefore: string;
                                serial: string;
                                subject: string;
                                subjectDN: { name: string; value: string }[];
                                subjectPublicKey: Secp256K1PublicKeyString | Secp256R1PublicKeyString | ED25519PublicKeyString;
                            } & {
                                $binary?: string;
                                $chain?: undefined;
                                baseExtensions?: {} & {
                                    authorityKeyIdentifier?: {
                                        contains: string;
                                        type: "context";
                                        value: 0;
                                    } & {};
                                    basicConstraints?: [ca: boolean, pathLenConstraint?: null | string];
                                    keyUsage?: KeyUsage;
                                    subjectKeyIdentifier?: string;
                                };
                            }
                            | {
                                $hash: CertificateHashString;
                                issuer: string;
                                issuerDN: { name: string; value: string }[];
                                notAfter: string;
                                notBefore: string;
                                serial: string;
                                subject: string;
                                subjectDN: { name: string; value: string }[];
                                subjectPublicKey: Secp256K1PublicKeyString | Secp256R1PublicKeyString | ED25519PublicKeyString;
                            } & {
                                $binary?: string;
                                $chain?: undefined;
                                baseExtensions?: {} & {
                                    authorityKeyIdentifier?: {
                                        contains: string;
                                        type: "context";
                                        value: 0;
                                    } & {};
                                    basicConstraints?: [ca: boolean, pathLenConstraint?: null | string];
                                    keyUsage?: KeyUsage;
                                    subjectKeyIdentifier?: string;
                                };
                            };
                        method: ADD
                        | SUBTRACT;
                        type: MANAGE_CERTIFICATE;
                    } & {
                        intermediateCertificates?: null
                        | string
                        | { certificates: string[] };
                    }
                )[];
                previous: BlockHashString;
                purpose: BlockPurpose;
                signer: Secp256K1PublicKeyString | Secp256R1PublicKeyString | ED25519PublicKeyString | [MultisigPublicKeyString, (Secp256K1PublicKeyString | ... 2 more ... | [...])[]];
                version: 1
                | 2;
            } & {
                $binary?: string;
                idempotent?: string;
                signature?: string;
                signatures?: string[];
                subnet?: string;
            }
            | BlockJSONIncomplete

      Returns BlockBuilder

    Properties

    AdjustMethod: typeof AdjustMethod = Block.AdjustMethod
    isInstance: (obj: any, strict?: boolean) => obj is BlockBuilder = ...
    NO_PREVIOUS: string = Block.NO_PREVIOUS
    Operation: {
        CREATE_IDENTIFIER: typeof BlockOperationCREATE_IDENTIFIER;
        MANAGE_CERTIFICATE: typeof BlockOperationMANAGE_CERTIFICATE;
        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;
    } = Block.Operation
    OperationType: typeof OperationType = Block.OperationType

    Accessors

    • get $opening(): undefined | boolean

      Returns undefined | boolean

    • get block(): undefined | Block

      Returns undefined | Block

    • get date(): undefined | Date

      Returns undefined | Date

    • set date(date: undefined | string | Date): void

      Parameters

      • date: undefined | string | Date

      Returns void

    • get idempotent(): undefined | string

      Returns undefined | string

    • set idempotent(idempotent: string | Buffer | ArrayBuffer): void

      Parameters

      • idempotent: string | Buffer | ArrayBuffer

      Returns void

    • get network(): undefined | bigint

      Returns undefined | bigint

    • set network(network: undefined | string | bigint): void

      Parameters

      • network: undefined | string | bigint

      Returns void

    • get previous(): undefined | BlockHash

      Returns undefined | BlockHash

    • set previous(blockhash: undefined | string | BlockHash): void

      Parameters

      Returns void

    • get sealed(): boolean

      Returns boolean

    • get subnet(): undefined | bigint

      Returns undefined | bigint

    • set subnet(subnet: undefined | string | bigint): void

      Parameters

      • subnet: undefined | string | bigint

      Returns void

    • get version(): undefined | number

      Returns undefined | number

    • set version(version: undefined | number): void

      Parameters

      • version: undefined | number

      Returns void

    Methods

    • Parameters

      Returns { purpose: BlockPurpose } & {
          $opening?: boolean;
          account?:
              | TokenPublicKeyString
              | NetworkPublicKeyString
              | StoragePublicKeyString
              | MultisigPublicKeyString
              | Secp256K1PublicKeyString
              | Secp256R1PublicKeyString
              | ED25519PublicKeyString;
          date?: string;
          idempotent?: string;
          network?: string;
          operations?: (
              | {
                  amount: string;
                  to: string;
                  token: TokenPublicKeyString;
                  type: SEND;
              } & { external?: string }
              | { to: string; type: SET_REP } & {}
              | { description: string; metadata: string; name: string; type: SET_INFO } & {
                  defaultPermission?:
                      | false
                      | [string, number[]]
                      | [string, string]
                      | [number[] | BaseFlagNames, number[]];
              }
              | {
                  method: AdjustMethod;
                  permissions: | null
                  | false
                  | [string, number[]]
                  | [string, string]
                  | [number[] | BaseFlagNames, number[]];
                  principal: string;
                  type: MODIFY_PERMISSIONS;
              } & { target?: string }
              | { identifier: string; type: CREATE_IDENTIFIER } & {
                  createArguments?:
                      | {
                          quorum: string;
                          signers: (
                              | MultisigPublicKeyString
                              | Secp256K1PublicKeyString
                              | Secp256R1PublicKeyString
                              | ED25519PublicKeyString
                          )[];
                          type: MULTISIG;
                      } & {}
                      | {
                          quorum: string;
                          signers: (
                              | MultisigPublicKeyString
                              | Secp256K1PublicKeyString
                              | Secp256R1PublicKeyString
                              | ED25519PublicKeyString
                          )[];
                          type: MULTISIG;
                      } & {};
              }
              | { amount: string; method: ADD
              | SUBTRACT; type: TOKEN_ADMIN_SUPPLY } & {}
              | {
                  amount: string;
                  method: AdjustMethod;
                  token: TokenPublicKeyString;
                  type: TOKEN_ADMIN_MODIFY_BALANCE;
              } & {}
              | {
                  amount: string;
                  from: string;
                  token: TokenPublicKeyString;
                  type: RECEIVE;
              } & { exact?: boolean; forward?: string }
              | {
                  certificateOrHash:
                      | string
                      | CertificateHashString
                      | {
                          $hash: CertificateHashString;
                          issuer: string;
                          issuerDN: { name: string; value: string }[];
                          notAfter: string;
                          notBefore: string;
                          serial: string;
                          subject: string;
                          subjectDN: { name: string; value: string }[];
                          subjectPublicKey:
                              | Secp256K1PublicKeyString
                              | Secp256R1PublicKeyString
                              | ED25519PublicKeyString;
                      } & {
                          $binary?: string;
                          $chain?: undefined;
                          baseExtensions?: {} & {
                              authorityKeyIdentifier?: {
                                  contains: string;
                                  type: "context";
                                  value: 0;
                              } & {};
                              basicConstraints?: [ca: boolean, pathLenConstraint?: null | string];
                              keyUsage?: KeyUsage;
                              subjectKeyIdentifier?: string;
                          };
                      }
                      | {
                          $hash: CertificateHashString;
                          issuer: string;
                          issuerDN: { name: string; value: string }[];
                          notAfter: string;
                          notBefore: string;
                          serial: string;
                          subject: string;
                          subjectDN: { name: string; value: string }[];
                          subjectPublicKey:
                              | Secp256K1PublicKeyString
                              | Secp256R1PublicKeyString
                              | ED25519PublicKeyString;
                      } & {
                          $binary?: string;
                          $chain?: undefined;
                          baseExtensions?: {} & {
                              authorityKeyIdentifier?: {
                                  contains: string;
                                  type: "context";
                                  value: 0;
                              } & {};
                              basicConstraints?: [ca: boolean, pathLenConstraint?: null | string];
                              keyUsage?: KeyUsage;
                              subjectKeyIdentifier?: string;
                          };
                      };
                  method: ADD
                  | SUBTRACT;
                  type: MANAGE_CERTIFICATE;
              } & {
                  intermediateCertificates?: null
                  | string
                  | { certificates: string[] };
              }
          )[];
          previous?: BlockHashString;
          signer?: | string
          | [
              string,
              (
                  | string
                  | [
                      string,
                      (
                          | string
                          | [string, (string | [string, (string | [string, never[]])[]])[]]
                      )[],
                  ]
              )[],
          ];
          subnet?: string;
          version?: number;
      }