Unshield NFTs
Unshielding requires you to "Generate Proof" and, optionally, make use of "Relayers": See UX for Private Transactions UX for Private Transactions
Unshield multiple ERC-721 tokens into a public wallet in a single transaction.
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 {
gasEstimateForUnprovenUnshield,
generateUnshieldProof,
populateProvedUnshield,
} 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