RAILGUN Reloaded
    Preparing search index...

    Type Alias NoteInput

    Input contract for creating a new note record. Consumers map their domain types into this shape before persisting. Hex string fields (commitment, nullifier, tokenSubID) accept values with or without a 0x prefix; all other fields are passed through unchanged. tokenType is the integer token-class enum (0 = ERC20, 1 = ERC721). tokenSubID is a 32-byte sub-identifier; for ERC20 it is the canonical 256-bit null (64 zero hex chars).

    type NoteInput = {
        commitment: string;
        walletId: string;
        chainId: number;
        railgunVersion: RailgunVersion;
        nullifier: string;
        token: string;
        amount: bigint;
        tokenType: number;
        tokenSubID: string;
        blockNumber: bigint;
        treeNumber: number;
        treePosition: number;
        commitmentType: number;
        outputType?: number;
        npk?: Uint8Array;
        random?: Uint8Array;
        blindedCommitment?: Uint8Array;
        creationRailgunTxid?: Uint8Array;
        creationTxid?: Uint8Array;
    }
    Index
    commitment: string
    walletId: string
    chainId: number
    railgunVersion: RailgunVersion
    nullifier: string
    token: string
    amount: bigint
    tokenType: number
    tokenSubID: string
    blockNumber: bigint
    treeNumber: number
    treePosition: number
    commitmentType: number
    outputType?: number
    npk?: Uint8Array
    random?: Uint8Array
    blindedCommitment?: Uint8Array
    creationRailgunTxid?: Uint8Array
    creationTxid?: Uint8Array