Ethereum Boilerplate Questions

Hi @midou099

Please share the error screenshots. Thank you :man_factory_worker:

Screenshot from 2021-11-05 16-47-15

Same error on POST request when trying to access to the wallet

For the dex,it is showing me tokens for bsc, eth but not bnb.

Thank you

1 Like

Iā€™ve checked your server logs. I see that you are calling getNativeBalance() for "chain":"ganache". But our web3API endpoints are not available for local chains.

They support all public testnets/mainnets

What do you mean? BNB is not a blockchain, itā€™s a native crypto of BSC

Hi there, I see the Dev chat is busy so I figured Iā€™d ask you guys my unanswered questions on here in regards to the boilerplate. First, how can I add the whale alert dapp to this Ethereum boiler plate? Second, how can I allow only users with a specific token (NFT) to be allowed to access a specific part of the website? I remember seeing a tutorial on your YouTube channel but i cant find it anymore. Lastly, Cardano is emv reverse compatible so is there any way to fetch nft data from cardano as well? I donā€™t want to use an entirely diff API like blockfrost just to accomplish this. If so, can someone guide me in the right direction? Thereā€™s not much info online for that but I plan on minting a portion of my NFT collection on Cardano and would like to only grant access to the main features of the website to all NFT holders crosschain.

1 Like

Hi @buru!

  1. Do you mean https://github.com/ashbeech/moralis-whale-alerts ?
  2. You can create own easy logic: Get all userā€™s NFTs docs and filter them. Then easy logic like if else
  3. Currnetly we donā€™t support Cardano chain.
1 Like

Glad it worked out! Happy BUIDLing!:rocket:

2 Likes

what am i going to do next after installing the 1inch plugin or do i need to code something into the inchdex.jsx to make it work?

Hi @mejmerlin

Thatā€™s all you need. Also, you can specify the network you want to use the Dex on :man_mechanic:
In the boilerplate default network is ETH.

Hi, i am trying to host my front end on GitHub Pages, and Iā€™ve uploaded my new edited files from the eth boilerplate into a new repo with .github.io at the ending. This allows me to host my front end through GitHub Pages but when i upload the entire edited eth boiler plate, I get this: https://crosschaindao.github.io/boredwhales.github.io/ which files am i suppose to be leaving out?

Hi I am having trouble after ā€œyarn startā€ and received the following error.

Have you run ā€˜yarn installā€™?

Thanks Ivan. I re-ran a ā€œyarn installā€ and then ā€œyarn startā€ and it opened up in local host but the live server in VSCode doesnā€™t work. Will you bring any burner wallets and in dapp faucets to the boilerplate like in scaffold eth? would be great to not worry about users/addresses or finding faucets online.

1 Like

binance smart chain not working in the boilerplate once i connect to binance smart chain the dex disappears how do i fix it

i got this error
PS C:\Users\User\Desktop\wff daps\ethereum-boilerplate-main> npx yarn install
yarn install v1.22.17
[1/4] Resolving packagesā€¦
[2/4] Fetching packagesā€¦
error Couldnā€™t find the binary git

1 Like

Hi @MarkyMarx we will add faucets :raised_hands:

Hi @kubkymberly

You need to set this info on settings

Hi @joaoalvesmarrucho. You can ignore the first message, but the second is a problem with Mumbai RPC. I suggest you to edit the src/helpers/networks.js config and change the Mumbai RPC to Speedy Node:
You need to change:

"0x13881": {
    chainId: 80001,
    chainName: "Mumbai",
    currencyName: "MATIC",
    currencySymbol: "MATIC",
    rpcUrl: "https://speedy-nodes-nyc.moralis.io/YOURSPEEDYNODE/polygon/mumbai",
    blockExplorerUrl: "https://mumbai.polygonscan.com/",
  },

https://docs.moralis.io/speedy-nodes/what-are-speedy-nodes

1 Like

Hello,
Iā€™m having this error after I cloned a fork of the Boilerplate:


I did follow all the steps: cloned, npm install, created .env with my app id and server url, npm start.
Whatā€™s weird is that the same project works for one but not for meā€¦
Updated the server too, same. Version issue maybeā€¦

1 Like