Skip to main content
5 votes

How to get Token balances

To get all the ERC20 Tokens Balance, you can use Moralis API const Moralis = require("moralis").default; const { EvmChain } = require("@moralisweb3/common-evm-utils"); const ...
Iulian Novenschi's user avatar
3 votes

Can I have different metadata of the ERC-1155 NFTs with the same token ID?

The simple answer is: no you can't. The uri method used on ERC-1155 contract only take as parameter the tokenId so you cannot specify a "sub-id" under each tokenId. The goal of the ERC-1155 ...
Skychris's user avatar
2 votes

How to get ERC 721/1155 and ERC-20 data?

You can get all the information you are looking for using Moralis API. Here is an example of getting all the NFTs using moralis. const Moralis = require("moralis").default; const runApp = ...
Iulian Novenschi's user avatar
2 votes
Accepted

Getting trading data efficiently

This data is not available readily on-chain, so it becomes difficult to get this kind of data. QuickNode has this data available via their Graph API You get historical NFT Trading data, marketplace ...
Sahil - QuickNode's user avatar
2 votes
Accepted

Trying to get txn hash

You could use a WebSocket from a node provider to track the transfer event that all ERC-20 and ERC-721/1155 smart contracts emit when there is a token transfer. Check this example in ethers v6: const ...
Sahil - QuickNode's user avatar
2 votes

How to retrieve all ERC721 tokens of a certain collection what a wallet ownes?

In order to do it without using the likes of Moralis. You need: An RPC node The contract address The wallet address The contract ABI Then you can write a function like this: async function ...
Filip's user avatar
  • 971
2 votes
Accepted

Is there a way/tool to check if an NFT or token address is malicious?

One can analyze address risks using two add-ons from QuickNode Marketplace. 1. MistTrack Address Risk Scores Add-on. Enable the MistTrack Address Risk Scores Add-on on your QuickNode Ethereum RPC ...
Sahil - QuickNode's user avatar
2 votes

Deploying a smart contract without private key

Short answer: You can't deploy on their behalf if you don't have their private key or their signed tx. You can achieve similar to what you describe by either one of the two methods: Two ...
minhhn2910's user avatar
  • 1,770
2 votes

Transfer Ownership of a contract from one adress to another problem

Based on the Ownership contract made by OpenZeppelin, that you can find just below with the github repo : OpenZeppelin Docs Github repository file If ownership has been transferred to your Matic ...
FrostX.eth's user avatar
2 votes

Transfer Ownership of a contract from one adress to another problem

The answer to your question lies in the contract. Which you did not provide. Logically ,according the proper functioning of ERC721 (which i will assume is the standard of your NFT), if he gave you ...
Torof's user avatar
  • 790
2 votes

Lookin for simplest way to identify any NFT owned by a known, owned, public address

This should be helpful for you: You can get all the NFTs owned by a wallet and the metadata with the image link using Moralis NFT API. Here is an example const Moralis = require("moralis")....
Iulian Novenschi's user avatar
1 vote
Accepted

Gnosis not signing on the contract

This error can occur due to RPC issues .If the transaction is confirmed on the Gnosis Safe dashboard, Check again after some time the transaction will be updated on the blockchain
Jaskaran Singh's user avatar
1 vote

How can I fix a problem with transferring ERC721 by approved contract?

There are many different ways you can implement a mechanism to buy and sell NFTs that would fit your needs. The Problem Note, this problem assumes the ERC721 and the marketplace contract are two ...
Rohan Nero's user avatar
  • 1,607
1 vote
Accepted

For a given block, how to extract only transactions that involve newly minted NFTs, with either Foundry or ethers.js?

Dev Advocate at Chainstack here. Unfortunately, I don't have enough experience with Foundry yet, but I can help you with ethers. First, to answer this question: If the filtering technique will rely ...
Dave Dev Advocate Chainstack's user avatar
1 vote

Generating a NFT token

So a token for an nft, is really just an ID associated with an owner, stored within a smart contracts storage. To get the image, you look at the metadata through the tokenURI function. Each token ID ...
Bruce's user avatar
  • 967
1 vote

How can I send an NFT automatically when someone clicks on the claim NFT button?

Remix is an excellent tool for writing an deploying smart contracts directly in your browser. To create a smart contract capable of what you are asking, you will need an ERC-721 contract (which is the ...
Rohan Nero's user avatar
  • 1,607
1 vote

Error: gas required exceeds allowance or always failing transaction in Remix

This error can occur when interacting with a contract, and means that MyCrypto could not estimate the gas limit for your transaction. This error can be caused by a few reasons, including: The gas ...
Jayasurya J's user avatar
1 vote
Accepted

Can an Artist, like Beeple, Mint additional NFT's of the same Artwork?

An NFT at its core is a token from a smart contract that follows the ERC-721 standard. (NFTs don't have to follow the standard exactly) Depending on the contract's specific logic, the NFT image/data ...
Rohan Nero's user avatar
  • 1,607
1 vote

How to claim NFT to my address if my address is approved on the NFT?

To perform this action directly on Etherscan, you need to follow the steps below: Locate The Contract: First, you need to navigate to the contract's page on Etherscan. You can do this by entering the ...
Łukasz Johnnie Wolski's user avatar
1 vote

How to populate large integer arrays in Solidity?

Using a counter instead of an array to track players and their minting would be a much better approach. In the code example I provided here, they are allowed to mint up to 40 000 tokens with random ID'...
Sky's user avatar
  • 2,332
1 vote

How to get Token balances

Disclosure: I work at Chainbase You can use this api to get all the token balance you want. curl --request GET \ --url 'https://api.chainbase.online/v1/account/tokens?chain_id=1&address=...
masterdai's user avatar
1 vote
Accepted

How to get Token balances

Disclaimer: I work with QuickNode You can get all the ERC20 tokens in a wallet address by using just one custom QuickNode RPC qn_getWalletTokenBalance To use this, enable the Token and NFT API bundle ...
Sahil - QuickNode's user avatar
1 vote

Trying to get txn hash

You should look into events. ERC20/721 both emit an event on transfer. When listening at them, you can retrieve the transaction hash from that. using ethersv6 const contract = new ethers.Contract(...
MadeInDreams's user avatar
  • 1,575
1 vote
Accepted

How to get ERC 721/1155 and ERC-20 data?

You can get this data using the balanceOf function of the token smart contracts. But doing this for each token and NFT is not a nice experience. Using a solution like QuickNode, which provides two ...
Sahil - QuickNode's user avatar
1 vote
Accepted

NFT asset fetching

Yes, I agree that getting data from decentralized storage can sometimes become time intensive. Have you tried QuickNode Graph API? there are images indexed on QuickNode's end, and it returns images in ...
Sahil - QuickNode's user avatar
1 vote
Accepted

Help with event filters

You can use QuickAlerts, an on-chain alerting tool; using that, you can set up an alert whenever a new NFT is minted. You won't have to manage the filters; just set up the alert and that's it. Even if ...
Sahil - QuickNode's user avatar
1 vote
Accepted

using image_data for opensea's metadata instead of image

Your assumption is correct; you don't need to encode more of the SVG, just the raw data. My only additional suggestion is to put everything on the same line, in case you edited the SVG manually, ...
Giuseppe Bertone's user avatar
1 vote

IPFS public gateway problem

This should be due to the ipfs gateway not being able to find your local ipfs node, this can be due to various reasons such as your network, router settings etc. The Pinata's verifier item just ...
Poya Ku's user avatar
  • 11
1 vote

How to build an API that returns the metadata of an NFT directly by querying the Ethereum blockchain?

Came across this hackathon project at Eth Global called the "Lindexer" powered by Envio, which pretty much answer the question. tl;dr NFT metadata is stored off-chain, e.g. decentralized ...
svenno.lens's user avatar
1 vote

Reveal NFT image/metadata after mint

Your best option is to use tho different URIs. One for the pre-mint containing the general image and then changing that URI to the one containing the real images. From what I see you can already do it ...
Francisco Aramburu's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible