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

    Interface LedgerConfig

    Ledger configuration

    interface LedgerConfig {
        initialTrustedAccount: Account;
        kind: LedgerKind;
        ledgerWriteMode?:
            | "bootstrap-only"
            | "read-only"
            | "read-write"
            | "no-voting";
        log?: (...args: any[]) => any;
        network: bigint;
        privateKey?: Account<ECDSA_SECP256K1 | ED25519 | ECDSA_SECP256R1>;
        storageDriver: LedgerStorageAPI;
        storageOptions?: any;
        subnet?: bigint;
    }
    Index

    Properties

    initialTrustedAccount: Account

    Kind of ledger

    ledgerWriteMode?: "bootstrap-only" | "read-only" | "read-write" | "no-voting"

    Is this ledger in read-only mode ?

    bootstrap-only: Bootstrapping can still occur read-only: No bootstrapping, no voting read-write: Normal mode (read-write enabled) no-voting: Normal mode (read-write enabled), but no voting

    log?: (...args: any[]) => any

    Logging method

    network: bigint

    Private key for the ledger if it is acting as a representative

    storageDriver: LedgerStorageAPI

    Storage mechanism

    storageOptions?: any

    Options to pass to the storage driver

    subnet?: bigint