unstETH NFT
This modules exposes NFT functionality of Lido Withdrawal Request NFT.
import { LidoSDK } from '@lidofinance/lido-ethereum-sdk';
import { createPublicClient, hoodi, http } from 'viem';
const lidoSDK = new LidoSDK({
publicClient: createPublicClient({
chain: hoodi,
transport: http('<RPC_URL>'),
}),
});
// Contracts
const addressUnstETH = await lidoSDK.unsteth.contractAddress();
const contractUnstETH = await lidoSDK.unsteth.getContract();
// views
const nfts = await lidoSDK.unsteth.getNFTsByAccount(account);
const owner = await lidoSDK.unsteth.getAccountByNFT(tokenId);
// Calls
const transfer = await lidoSDK.unsteth.transfer({
id,
to,
from, // optional to call transferFrom
account,
callback,
});