Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK] Fetch contract metadata from RPC #14

Open
vikiival opened this issue Feb 5, 2023 · 2 comments
Open

[TASK] Fetch contract metadata from RPC #14

vikiival opened this issue Feb 5, 2023 · 2 comments

Comments

@vikiival
Copy link
Owner

vikiival commented Feb 5, 2023

Is your feature request related to a problem? Please describe.
Currently I cannot fetch metadata from PSP-34 contracts

Describe the solution you'd like
Fetch them via RPC

Better would be to implement

Additional context

import {
  Contract as ContractAPI,
} from "./abi/NFTMarketplace";
const contract = new ContractAPI(ctx, { height: block }, contractAddress);
const tokenURI = await contract.tokenURI(BigNumber.from(tokenId));
@vikiival
Copy link
Owner Author

from @tmcgroul

Currently i am working on reading ink contracts state from ink-typegen interface. Will notify you when this feature is done

FYI @Maar-io

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant