You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@iosbowhead hi!
Currently RPC methods aren't customisable. It is the nice feature and I'll make it in next releases.
But you can use your own network in two ways:
// Directly creating provider
leturl=URL(string:"https://yourendpoint.net/")! // endpoint
letprovider=Web3HttpProvider(url, keystoreManager: keystoreManager)! // here you can also add keystore manager if you want
letweb=web3(provider: provider) // create web3 instance
// Alternatively you can create web3 instance
letweb=Web3.new(url) // but here you can't specify keystore manager
web3.addKeystoreManager(keystoreManager)
Regarding units - use Web3.Utils.formatToPrecision
Hi, we created our own Ethereum fork, is there anyway to configure this library for using our own RPC methods and our own Units?
The text was updated successfully, but these errors were encountered: