import { AddressBalanceDetails } from '../../dto'; import { ResponseDto } from '../../util'; import { CheckTokenOwner, CreateMultiTokenNftCollection, CreateNftCollection, GetAllNftTransactionsByAddress, GetAllNftTransactionsQuery, GetCollection, GetNftMetadata, GetTokenOwner, NftAddressBalance, NftTokenDetail, NftTransaction } from './nft.dto'; export declare class Nft { private readonly id; private readonly connector; private readonly config; constructor(id: string); /** * Create new NFT collection (ERC-721 compatible smart contract). This operation deploys new smart contract to the blockchain and sets the owner of the collection. * You don't need to specify the default minter of the collection, as the owner of the collection is the default minter. * You don't have to have any funds on the address, as the smart contract is deployed by Tatum. * @param body Body of the request. * @returns ResponseDto<{txId: string}> Transaction ID of the deployment transaction. You can get the contract address from the transaction details using rpc.getContractAddress(transactionId) function, once transaction is included in the block. */ createNftCollection(body: CreateNftCollection): Promise>; /** * Create new MultiToken NFT collection (ERC-1155 compatible smart contract). This operation deploys new smart contract to the blockchain and sets the owner of the collection. * You don't need to specify the default minter of the collection, as the owner of the collection is the default minter. * You don't have to have any funds on the address, as the smart contract is deployed by Tatum. * @param body Body of the request. * @returns ResponseDto<{txId: string}> Transaction ID of the deployment transaction. You can get the contract address from the transaction details using rpc.getContractAddress(transactionId) function, once transaction is included in the block. */ createMultiTokenNftCollection(body: CreateMultiTokenNftCollection): Promise>; /** * Get balance of NFT for given address. * You can get balance of multiple addresses in one call. */ getBalance({ page, pageSize, addresses, }: AddressBalanceDetails): Promise>; /** * Get all transactions for given NFT. * @param nftTransactionsDetails You can get multiple NFT transactions in one call. * @param page * @param pageSize */ getAllNftTransactions({ page, pageSize, tokenId, tokenAddress, transactionType, fromBlock, toBlock, }: GetAllNftTransactionsQuery): Promise>; /** * Get all transactions for given NFT. * @param nftTransactionsDetails You can get multiple NFT transactions in one call. * @param page * @param pageSize */ getAllNftTransactionsByAddress({ page, pageSize, addresses, tokenId, tokenAddress, transactionType, fromBlock, toBlock, }: GetAllNftTransactionsByAddress): Promise>; /** * Get metadata of NFT. */ getNftMetadata({ tokenAddress, tokenId, }: GetNftMetadata): Promise>; /** * Get owner of a specific NFT. */ getNftOwner({ tokenAddress, tokenId, pageSize, page, }: GetTokenOwner): Promise>; /** * Check if address is owner of a specific NFT. */ checkNftOwner({ tokenAddress, tokenId, owner }: CheckTokenOwner): Promise; /** * Get all NFTs in collection. */ getNftsInCollection({ collectionAddress, pageSize, excludeMetadata, page, }: GetCollection): Promise>; }