Search code examples
c#.netblazor-webassemblybinance-smart-chainnethereum

Nethereum Call Binance Smart Chain contract function like balanceOf or transfer via Blazor WebAssembly


I'm developing a web application with Blazor WebAssembly. I want to call some functions in my token's contract. I've installed Nethereum.Web nuget package to my project. But I don't want to call a contract from Ethereum Mainnet, it has to be Binance Smart Chain. Can anyone help me?


Solution

  • Yes. You just need to connect to a Binance Smart Chain node instead of Ethereum node. All the other code is just the same.