I am trying to upload the metadata(JavaScript Object) of a file already uploaded to IPFS, from the client side in the NextJS. I am able to upload files(PDFs) to IPFS using the Infura’s HTTP API with the help of the ipfs-http-client package, but I am not able to do so with JSON? I have also tried uploading using the pinata
Tag: blockchain
TypeError: Cannot read properties of undefined (reading ‘equal’) [closed]
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 10 months ago. Improve this question
How to speed up token balance on multiple contracts
I’m using ethers to call balanceOf method on all contracts to check if user has any balance there, if not, the token will not show up in his dashboard, but it takes a lot of time, is there a more finesse way to achieve the same goal? my code: Answer You can use Multicall contract for small wins. A proper
Unexpected token, expected , (8:21)
So I’m working with this code for a blockchain mining class And I keep getting this error Unexpected token, expected , (8:21), for this line: Any help will be appreciated! Answer Try Using this Seems to me like you key:value pairs are not properly formatted.. The code in probably taking this above line as Key and is expecting a value
How to send an ERC20 token with web3js
I’m currently using the 0.2x.x version of the Web3 JavaScript API. I deployed my custom ERC20 token by creating smart contract in solidity (on REMIX IDE). I installed the MetaMask and had a test on https://wallet.ethereum.org/ to send some custom ERC token to another my account. It worked well. I want to add the ‘send custom ERC20 Token’ function in