LogoLogo
  • About
    • Introduction
    • Unlockd SDK
    • Partners & Revenue Sharing
  • Getting Started
    • Installation
    • SDK Modules
      • Action Module
      • Auction Module
      • Market Module
      • Buy Now Module
      • Sell Now Module
      • Wallet Module
      • NFT Batch Transfer Module
    • Code Examples
      • Borrowing Assets
      • Fetch prices
      • Login
      • Borrow Signature
      • Minimum Repay
      • Liquidation Price
      • Health Factor
      • Available to borrow
    • UI Snippets
    • Reservoir Integration
  • USE CASES (code examples)
    • Borrow against RWAs
    • 'Buy Now, Pay Later' financing
  • Resources
    • npmJS Package
    • Best Practices
    • Changelog
    • Support & Contact
    • Unlockd V2
    • Product Documentation
    • Protocol Documentation
    • Risk Documentation
    • External Audits
    • Website
    • X (Twitter)
    • Discord
    • Other links
Powered by GitBook
On this page
  • Types
  • Assets
  • ClientOptions
  • Functions
  • Sending NFTs to Wallet
Export as PDF
  1. Getting Started
  2. SDK Modules

NFT Batch Transfer Module

The NFT Batch Transfer module allows you to send multiple NFTs to the Unlockd user wallet in a single transaction.

PreviousWallet ModuleNextCode Examples

Last updated 12 months ago

Types

Assets

export type Nft = {
  collection: string
  tokenId: string
}

ClientOptions

export type ClientOptions = {
  network?: Chain
}

export type Chain = 'mainnet' | 'sepolia' | 'localhost'

Functions

Sending NFTs to Wallet

To send NFTs to the Unlockd user wallet, use the sendNftsToWallet function from the nftBatchTransfer module:

export const sendNftsToWallet = async (
        nfts: {
            contractAddress: string,
            tokenId: string
        }[], 
        options?: ClientOptions
    ): Promise<void>
const result = await sendNftsToWallet(nfts[], signature, options?);

Refer to the NFT Batch Transfer Module documentation for more details on the sendNftsToWallet function.

NftBatchTransfer Flow