RAILGUN Reloaded
    Preparing search index...

    Type Alias BuildTransferParams

    Inputs for buildTransfer(): ERC20 payments to 0zk addresses.

    type BuildTransferParams = {
        walletId: string;
        encryptionKey: Uint8Array;
        recipients: { tokenAddress: string; amount: bigint; recipient: string }[];
        memoText?: string;
        showSenderAddressToRecipient: boolean;
        transport: Transport;
        loadArtifact: (variant: ValidRailgunVariant) => Promise<Artifact>;
        publicClient: PublicClient;
    }
    Index
    walletId: string

    Wallet that spends the notes.

    encryptionKey: Uint8Array

    32-byte key used at wallet creation time.

    recipients: { tokenAddress: string; amount: bigint; recipient: string }[]

    One payment for each entry. recipient is a 0zk address with the all-chains tag or the tag of the transfer chain.

    memoText?: string

    Memo that every recipient note carries.

    showSenderAddressToRecipient: boolean

    Show the sender 0zk address to each recipient.

    transport: Transport

    A broadcaster fee note can have a token that no recipient has.

    loadArtifact: (variant: ValidRailgunVariant) => Promise<Artifact>

    Return the circuit artifact for a variant, for example from @railgun-reloaded/ipfs-artifact-fetcher.

    publicClient: PublicClient

    Reads rootHistory on the RAILGUN proxy before proving. Its chain must be the transfer chain.