Networks tab not working on dashboared

how do I set up evm to use local?
what chain do I use?

    const chain = EvmChain.ETH;

Where do you want to use that chain?

need to speed up testing using ganache…
making api calls requires chain
I set it to chain id 1

    let response = await Moralis.EvmApi.utils.runContractFunction({
        abi,
        functionName,
        params,
        address,
        chain,
    });

response bad request

https://d6qrvlqawkik.usemoralis.com:2053/server/functions/getNFTs 

Web3api doesn’t work with a ganache server. You will be able to do that with a testnet server.
You can also run directly a contract function from front end.

aware of that… problem is running out of testnet tokens…
your ceo says you can connect moralis to ganache
https://v1docs.moralis.io/moralis-dapp/web3/setting-up-ganache

no way to test moralis apis locally? if not my testing just slowed down to a crawl
since faucets don’t give a lot of eth

For the equivalent of runContractFuncrion you can use executeFuncrion in front end or directly with web3 or ethers even in backend.

If that api is the only one that you need now.

negative… ganache is not even storing the transactions…
you guys need testnet solutions… minting an nft on ganache isn’t working

minting an nft should work without issue, you mint it by making a request with metamask and in metamask you set local ganache network or other local devchain that you are using

or you say that the devchain server is not working as expected and it is not even storing the transactions even if they are made on your local devchain?

I get a transaction id, but nothing back from the api’s…
trying it by forking goerli testnet using ganache… soon as my metamask can
connect we’ll get rocking…

I haven’t earned a free upgrade?

what do you mean with a free upgrade?

better to not fork an entire blockchain, usually you don’t have to do that

I’m losing time on this… whats the point of the ceo making a video showing how to connect moralis to local if the thing doesn’t work with local?

means I gotta write two separate codes for testing… with the EVM and without?

  const [_W3, setW3] = React.useState(new Web3(new Web3.providers.HttpProvider('http://localhost:9545')))

connects to truffle

    const networkId = await _W3.eth.net.getId();
    const chainId = await _W3.eth.getChainId();
    console.log(networkId,chainId) = 5777 and 1337

    const testnetNFTs = await Web3Api.Web3API.account.getNFTs({
      chain: chainId
    });
    console.log(testnetNFTs);
Unhandled Runtime Error
Error: Invalid chain!

your web3 stuff does not work with truffle/ganache chain ids?

you guys are going to need to offer better testing resources… you see how long the que is for Ropsten faucet? Today is october 3rd…

goerli is giving out .10… . 20 if you use alchemy

it’s been 6+ hours of me trying to use your tools locally with no results

you can try any evm testnet chain that we support, bsc testnet for example works too

getNFTs it is not going to work with local devchain

your list of supported chains doesn’t match Web2Api list

  1. Chains:

  2. AVAX_MAINNET: “0xa86a”

  3. AVAX_TESTNET: “0xa869”

  4. BSC_MAINNET: “0x38”

  5. BSC_TESTNET: “0x61”

  6. CRONOS_MAINNET: “0x19”

  7. CRONOS_TESTNET: “0x152”

  8. ETH_GOERLI: “0x5”

  9. ETH_KOVAN: “0x2a”

  10. ETH_LOCALDEVCHAIN: “0x539”

  11. ETH_MAINNET: “0x1”

  12. ETH_RINKEBY: “0x4”

  13. ETH_ROPSTEN: “0x3”

  14. FANTOM_MAINNET: “0xfa”

  15. POLYGON_MAINNET: “0x89”

  16. POLYGON_MUMBAI: “0x13881”

ETH_LOCALDEVCHAIN is listed… the api still says it’s an invalid chain id

bsc is 0.05 to mint contracts… they give you 0.50…
you run out of test tokens faster than you can reload is the problem…

I can give myself 1,000 eth to test with on truffle and speed things up

devchain is not supported by web3api, it was a long time ago supported and only for a limited number of endpoints

usually you don’t have to deploy multiple times a contract

you are a better developer than me… things change, the idea grows, you add something, remove something, I have 5 different contracts on the platform talking to each other…

you gotta understand how frustrating and anoying it is to watch a video from your CEO… explaining how to use ganache… implement it… just to find out it doesn’t work…

You can also do some tests directly in remix. This is not related to Moralis, maybe you can test faster in remix.