Function depositNFT

  • Deposits NFT into locker.

    Example

    import { depositNFT } from '@honey-finance/sdk';
    const metadata = await Metadata.findByMint(sdkConfig.saberHqConnection, mintID);
    const tx = await depositNFT(sdkConfig.saberHqConnection, honeyUser, metadata.pubkey);

    Parameters

    • connection: Connection
    • honeyUser: HoneyUser
    • metadataPubKey: PublicKey

    Returns Promise<actions.TxResponse>

Generated using TypeDoc