Blocto
Search…
Web3.js Integration (Ethereum/BSC/Polygon/Avalanche/Tron)
Blocto injects web3 provider to web context so dApps can interact with blockchain

Injection

Blocto injects web3 provider to web context as window.BLOCKCHAIN where BLOCKCHAIN is either
    ethereum
      support BSC network starting from 2.8.0 on Android/iOS
      support Polygon/Avalanche(c-chain) network starting from 2.14.0 on Android/iOS
    tron
You can use the provider with your web3.js like
1
import Web3 from 'web3';
2
​
3
// use the provider to instantiate web3 onject
4
const web3 = new Web3(window.ethereum);
5
​
6
console.log(window.ethereum.isBlocto);
7
// prints True
Copied!
You can use all the web3.js functionalities and Blocto will handle all the wallet operations and blockchain interactions for you.
For more documentation for what you can do with web3.js, check out
Last modified 1mo ago
Copy link