Provider
A thin JSON-RPC wrapper for interacting with chains and Blocto wallet.
Last updated
Was this helpful?
A thin JSON-RPC wrapper for interacting with chains and Blocto wallet.
Last updated
Was this helpful?
Blocto SDK comes with an compatible provider, you can use it to interact with EVM-compatible chains.
Install from npm/yarn/pnpm
... or via CDN
ethereum.chainId
String (hex) Number
EVM chain ID to connect to
Yes
ethereum.rpc
String
JSON RPC endpoint
Yes
appId
String
Blocto dApp ID
No
Ethereum Mainnet
1
Ethereum Goerli Testnet
5
Arbitrum Mainnet
42161
Arbitrum Goerli Testnet
421613
Optimism Mainnet
10
Optimism Goerli Testnet
420
Polygon Mainnet
137
Polygon Mumbai Testnet
80001
BSC Mainnet
56
BSC Chapel Testnet
97
Avalanche Mainnet
43114
Avalanche Fuji Testnet
43113
Once the connection request is fired, there would be a prompt modal to guide user to register/login to Blocto wallet
After connected with Blocto wallet, you can start to send JSON-RPC request with blocto provider
Reference: