RAILGUN Reloaded
    Preparing search index...

    A note owned by a wallet. Bytes columns are exposed as 0x-prefixed lowercase hex; the leaf index is widened to bigint for uniformity with blockNumber and amount. tokenType is the protocol TokenType discriminant; tokenSubID is the 32-byte sub-identifier (zero hex for ERC20). spendState separates protocol spendability from optional POI-service state. poisPerList holds the stored PPOI tag of each list.

    type DecryptedNote = {
        commitment: string;
        nullifier: string;
        token: string;
        amount: bigint;
        tokenType: number;
        tokenSubID: string;
        blockNumber: bigint;
        treeNumber: number;
        leafIndex: bigint;
        spent: boolean;
        spentTxid: string | null;
        spentBlockNumber: bigint | null;
        spentTimestamp: Date | null;
        creationTxid: string | null;
        spendState: NoteSpendState;
        poisPerList: POIsPerList | null;
        decryptedAt: Date;
    }
    Index
    commitment: string

    Note commitment poseidon(npk, tokenHash, value), as a 32-byte leaf of the commitment tree.

    nullifier: string

    Nullifier poseidon(nullifyingKey, leafIndex). The note is spent when this value appears on chain.

    token: string

    Token contract address as 0x-prefixed lowercase hex.

    amount: bigint

    Note value in base units of the token.

    tokenType: number

    Protocol TokenType of the token.

    tokenSubID: string

    32-byte token sub-identifier as 0x-prefixed lowercase hex. Zero for ERC20.

    blockNumber: bigint

    Block that holds the commitment.

    treeNumber: number

    Number of the commitment tree that holds the note.

    leafIndex: bigint

    Position of the note inside its commitment tree.

    spent: boolean

    True when the wallet found the nullifier of the note on chain.

    spentTxid: string | null

    Hash of the EVM transaction that spent the note. Null when the note is unspent.

    spentBlockNumber: bigint | null

    Block of the EVM transaction that spent the note. Null when the note is unspent.

    spentTimestamp: Date | null

    Block timestamp of the spend. Null when the note is unspent or the chain storage has no RAILGUN transaction for the spend.

    creationTxid: string | null

    Hash of the EVM transaction that created the commitment. Null when the chain storage did not supply it.

    spendState: NoteSpendState

    Protocol spendability and PPOI classification of the note.

    poisPerList: POIsPerList | null

    Stored PPOI status of the note for each list key. Null when no status is stored.

    decryptedAt: Date

    Time the wallet stored the note. Second precision.