I would like to use web3j and to execute the functions of contracts that are found on Binance Smart Chain. How is this done ?
Would it be just
Web3j web3 = Web3j.build(new HttpService("https://bsc-dataseed.binance.org/"))
Then, how do I set the chain ID to 0x38 ?
Best Answer
If you are using the smart contact wrapper then you usually need to give one of the available transaction managers as a parameter and then give the chain Id when you initialize it
if you are not using the web3j wrapper and build your transaction manually then: