简体   繁体   English

有没有办法检查交易是否发生在 binance smart chain.network 或 ethereum smart chain 上?

[英]Is there a way to check if the transactions are happening on binance smart chain network or ethereum smart chain?

I'm new to block chain development and developing a DApp on binance smart chain.我是区块链开发和在 binance 智能链上开发 DApp 的新手。 I changed the.network from default ethereum web provider to binance test.network provider.我将 the.network 从默认的 ethereum web 提供商更改为 binance test.network 提供商。 DApp is working fine but I want the affirmation that my transaction are happening on binance test.network. DApp 运行良好,但我想要确认我的交易是在 binance test.network 上进行的。 Is there a way to check if the transaction is happening on binance smart chain.network or ethereum.network?有没有办法检查交易是否发生在 binance smart chain.network 或 ethereum.network 上? Thanks a ton万分感谢

Web3 connection has a method that allows you to ask chainId of the currently connected blockchain. Web3 连接有一个方法可以让你询问当前连接的区块链的chainId

See Chainlist for full details .有关详细信息,请参阅链表

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM