Keeta LogoKeeta Logo@keetanetwork/keetanet-client
    interface NodeConfig {
        callbacks?: {
            sendMessage?: (
                node: Node,
                ...args: [
                    to: | null
                    | Account<ECDSA_SECP256K1 | ED25519 | ECDSA_SECP256R1>
                    | P2PPeer
                    | P2PConnection,
                    id: string,
                    type: string,
                ],
            ) => Promise<boolean>;
        };
        endpoints?: { api?: string; p2p?: string };
        http?: HTTPConfig;
        initialTrustedAccount: Account;
        kind: NodeKind;
        ledger: Omit<
            LedgerConfig,
            | "kind"
            | "network"
            | "networkAddress"
            | "baseToken"
            | "initialTrustedAccount",
        >;
        ledgerPrivateKey?: Account<ECDSA_SECP256K1 | ED25519 | ECDSA_SECP256R1>;
        manualPeers?: P2PPeer[];
        network: bigint;
        networkAlias: "production" | "staging" | "beta" | "test" | "test2" | "dev";
        nodeAlias?: string;
        nodeOptions?: any;
        p2p?: P2PConfig;
        stats: StatsConfig;
        subnet?: bigint;
    }
    Index

    Properties

    callbacks?: {
        sendMessage?: (
            node: Node,
            ...args: [
                to: | null
                | Account<ECDSA_SECP256K1 | ED25519 | ECDSA_SECP256R1>
                | P2PPeer
                | P2PConnection,
                id: string,
                type: string,
            ],
        ) => Promise<boolean>;
    }

    Changes to default handlers

    Type declaration

    endpoints?: { api?: string; p2p?: string }

    Endpoints for this node

    http?: HTTPConfig

    HTTP Configuration

    initialTrustedAccount: Account

    Account that can bypass permissions for opening blocks on baseToken and networkAddress This account also will become the source of authority when there is no weight on the network

    kind: NodeKind

    Kind of node

    ledger: Omit<
        LedgerConfig,
        | "kind"
        | "network"
        | "networkAddress"
        | "baseToken"
        | "initialTrustedAccount",
    >

    Information for the ledger

    Ledger private key (for representatives to issue votes)

    manualPeers?: P2PPeer[]

    Manual of peers

    network: bigint

    Network information

    networkAlias: "production" | "staging" | "beta" | "test" | "test2" | "dev"

    Network alias

    nodeAlias?: string

    Node alias

    nodeOptions?: any

    Extra information for the particular kind of node

    p2p?: P2PConfig

    Peer to Peer configuration

    Stats manager

    subnet?: bigint
    MMNEPVFCICPMFPCPTTAAATR