setTokenURI

Is there a character or size limit for setTokenURI?

Deployed an ERC721 contract and minted a token.

Tried to overwrite existing token with 98kb of my base64 encoded data through setTokenURI via etherscan. Failed.

Lowered the size to 68kb, same issue, transaction failed.

There is enough funds to cover gas price in my wallet and I am the owner of the contract and token.

Is this a limitation with manifold contracts or is there another way to write a large base64 string as tokenURI to my token?

GM!

There shouldn’t be a limit on tokenURI. My suspicion is that the transaction is failing for another reason. Could you let me know which contract you’re calling, the method and parameters, and which wallet you’re calling it from?

1 Like

contract : 0xd46Be34B7B20B228fF18A94fEE457B2FF54f1534

method : write as proxy on etherscan, setTokenURI (0x162094c4)

wallet : metamask, davidloh.eth

I was trying to setTokenURI for tokenID 1 and the base64 is too big to paste here. Metamask was able to estimate gas but the transaction still failed.