• Resolved adrian.jecan

    (@adrianjecan)


    Hello support team,

    I need a bit of help with an API request that I’m trying to do, for minting.

    I mention that I’m using the ETH Ropsten chain (added ‘x-testnet-type’ => ‘ethereum-ropsten’ in the header of the request) and I’m using the free testnet API key from my Tatum dashboard.
    I’m trying to mint a custom NFT token (using my own contract address for the NFTs), but using the Tatum minter address for the gas fees. So the request body looks like this:

    [to] => …. (receiver address)
    [chain] => ETH
    [url] => ipfs://….
    [contractAddress] => 0xeb0A67cC177E2e03da8810f9a18da433f0650857 (the contract for my custom NFT collection – https://ropsten.etherscan.io/address/0xeb0A67cC177E2e03da8810f9a18da433f0650857)
    [tokenId] => 123456
    [minter] => 0x51abC4c9e7BFfaA99bBE4dDC33d75067EBD0384F (from https://tatum.io/apidoc.php#operation/NftMintErc721 – table with the mint addresses)

    The error that I get from the request is: {“statusCode”:403,”errorCode”:”nft.error”,”message”:”Unexpected error occurred. Reason: Returned error: execution reverted”}

    Can you help me, please? Would be greatly appreciated.

    • This topic was modified 2 years, 9 months ago by adrian.jecan.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter adrian.jecan

    (@adrianjecan)

    I tried another similar call.
    I used the MATIC mainnet, I used the API key for the plugin (the paid one) and the call payload is as follows:

    [to] => …. (receiver address)
    [chain] => MATIC
    [url] => ipfs://…..
    [contractAddress] => 0x6579dcBaF9Cb60e88496265718d40EdB687D9fAd ((the contract for my custom NFT collection – https://polygonscan.com/address/0x6579dcbaf9cb60e88496265718d40edb687d9fad)
    [tokenId] => 123456
    [minter] => 0xcf9e127455d28e7362380aec1b92ddee8200b295 (from doc page)

    I get the same error.

    Plugin Author lukaskotol

    (@lukaskotol)

    Hi, you need to provide private key field. Please look on this specification https://tatum.io/apidoc.php#operation/NftMintErc721.
    Hope this answer will help you.
    Lukas Kotol

    Thread Starter adrian.jecan

    (@adrianjecan)

    Hi,

    No, it doesn’t help. Because from the documentation:
    “Third mode enables you to mint on any custom NFT ERC-721 smart contract, on which specified minter address is approved as a minter. You don’t specify private key or signatureId, only minter address, from which the NFT will be minted. You can use addresses specified in the bellow table to be used as a minter.”
    And a few paragraphs down: “We have prepared following smart contracts for minting without private key:” and there is a table with addresses.

    So according to the documentation, I could do it without a private key.

    Thread Starter adrian.jecan

    (@adrianjecan)

    I tried also the mode with private key, so I removed [minter] and added [fromPrivateKey] with the value of the private key of my wallet address.
    I didn’t use signatureId from Tatum KMS because according to the documentation “PrivateKey should be used only for quick development on testnet versions of blockchain when there is no risk of losing funds. In production, Tatum KMS should be used for the highest security standards, and signatureId should be present in the request.” And although it’s not on testnet, but it doesn’t say it can be used ONLY on testnet, so it should work.
    Still, I have the same error.
    So I already tried in 2 ways that should work, according to the documentation, but I have the same error.

    Plugin Author lukaskotol

    (@lukaskotol)

    Hi, could you please send me which request body you are using?

    Also if your API is paid and it is mainnet or testnet? Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Need help with a customized API call’ is closed to new replies.