Private NFT Transfers
Private Transfers require you to "Generate Proof" and, optionally, make use of "Broadcasters": See UX for Private Transactions
RAILGUN users may transfer multiple ERC-721 tokens to other RAILGUN users in a single transaction, in a fully encrypted and privacy-preserving way.
ERC-1155 token transfers are not yet supported.
Imports
import {
calculateGasPrice,
TXIDVersion,
type NetworkName,
type RailgunERC20AmountRecipient,
type RailgunNFTAmountRecipient,
type RailgunWalletInfo,
type TransactionGasDetails,
} from "@railgun-community/shared-models";
import {
getGasDetailsForTransaction,
getOriginalGasDetailsForTransaction,
serializeERC721Transfer,
} from "../util";
import {
gasEstimateForUnprovenTransfer,
generateTransferProof,
populateProvedTransfer,
} from "@railgun-community/wallet";
import {
TEST_NETWORK,
TEST_NFT_ADDRESS,
TEST_NFT_SUBID,
} from "../../utils/constants";
import { getProviderWallet } from "../../utils/provider";Gas Estimate
Generate Proof
Populate Transaction
Example Usage
Last updated