@softseco/confidential-transfers - v3.3.0
    Preparing search index...

    Type Alias TransferInput

    TransferInput: SendOptions & {
        amount: bigint;
        auditorElgamalPubkey?: Address;
        destinationOwner?: Address;
        destinationToken?: Address;
        keys?: ConfidentialKeypairs;
        mint: Address;
        owner: TransactionSigner;
        payer: TransactionSigner;
        programAddress?: Address;
        rpc: Rpc<SolanaRpcApi>;
        rpcSubscriptions: RpcSubscriptions<SolanaRpcSubscriptionsApi>;
        sourceToken?: Address;
    }

    Type Declaration

    • amount: bigint

      Amount in base units. Up to 2^48 - 1 per transfer.

    • OptionalauditorElgamalPubkey?: Address

      The mint's auditor ElGamal key; the amount is also encrypted to it. Read from the mint when not given (since 3.3.0), so it is only needed to override that.

    • OptionaldestinationOwner?: Address

      Owner of the destination account; used to derive its ATA when no token is given.

    • OptionaldestinationToken?: Address

      Destination token account; must be configured for confidential transfers.

    • Optionalkeys?: ConfidentialKeypairs

      The owner's keys from deriveConfidentialKeys; skips the message signature.

    • mint: Address
    • owner: TransactionSigner

      Source account owner: the transfer authority, and the key source unless keys is given.

    • payer: TransactionSigner

      Pays the transaction fees and the rent of the proof accounts (refunded when they close).

    • OptionalprogramAddress?: Address

      Token program. Default: Token-2022.

    • rpc: Rpc<SolanaRpcApi>

      RPC client, e.g. createSolanaRpc(url).

    • rpcSubscriptions: RpcSubscriptions<SolanaRpcSubscriptionsApi>

      Used to confirm the transaction(s).

    • OptionalsourceToken?: Address

      Source token account (defaults to the owner's ATA).