import { createRaribleSdk } from "@rarible/sdk" import { toItemId, toUnionAddress } from "@rarible/types" import type { BlockchainWallet } from "@rarible/sdk-wallet" export async function transferItem(wallet: BlockchainWallet) { const sdk = createRaribleSdk(wallet, "testnet") const transferAction = await sdk.nft.transfer({ itemId: toItemId(""), }) const tx = await transferAction.submit({ to: toUnionAddress(""), amount: 1, }) await tx.wait() }