Server Side Render
Integrating Blocto SDK with server side render frameworks.
let bloctoSDK
import('@blocto/sdk').then(({ default: BloctoSDK }) => {
bloctoSDK = new BloctoSDK({
ethereum: {
chainId: '0x1',
rpc: 'https://mainnet.infura.io/v3/<YOUR_INFURA_ID>',
},
})
bloctoSDK.ethereum.enable()
})Last updated
Was this helpful?