1import{q as a,w as i}from"./web3Wallets-K9HfWoRJ.js";import{f as o}from"./fetchTokenMetadata-fnXtbgmI.js";import{totalSupply as d}from"./totalSupply-Sqyu_UU1.js";import{r as m}from"./bundler-B52HULgj.js";import"./vendor-react-7PyNDetJ.js";import"./index-BZSaBQD0.js";import"./vendor-query-CmFN4-M1.js";import"./vendor-supabase-BfoV2C50.js";import"./vendor-ui-DjI1iuvA.js";import"./useWeb3ChainConfig-BLzBZRXm.js";import"./utils-BnNtzvC2.js";import"./type-guards-BQcmFalx.js";import"./extends-CF3RwP-h.js";import"./decimals-BiEYJLtQ.js";import"./TypedData-DsWOCT-t.js";import"./fuse-CcLD0YPK.js";import"./arweave-CAGvOb64.js";const u="0x0e89341c",I=[{name:"tokenId",type:"uint256"}],k=[{type:"string"}];async function f(t){return m({contract:t.contract,method:[u,I,k],params:[t.tokenId]})}async function A(t){const{useIndexer:r=!0}=t;if(r)try{return await y(t)}catch{return await c(t)}return await c(t)}async function y(t){const r=await a({chain:t.contract.chain,client:t.contract.client,contractAddress:t.contract.address,tokenId:t.tokenId});return r||c(t)}async function c(t){const[r,e]=await Promise.all([f({contract:t.contract,tokenId:t.tokenId}),d({contract:t.contract,id:t.tokenId}).catch(()=>0n)]);return i(await o({client:t.contract.client,tokenId:t.tokenId,tokenUri:r}).then(n=>n||{id:t.tokenId,type:"ERC1155",uri:r}).catch(()=>({id:t.tokenId,type:"ERC1155",uri:r})),{chainId:t.contract.chain.id,owner:null,supply:e,tokenAddress:t.contract.address,tokenId:t.tokenId,tokenUri:r,type:"ERC1155"})}export{A as getNFT};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.