Batch Call snd Send Transactions
Batch query information
gasPrice, gasPriceErr := bulkCaller.Cfx().GetGasPrice()
nonce, nonceErr := bulkCaller.Cfx().GetNextNonce(<addresses>)
err = bulkCaller.Execute()
if err != nil {
panic(fmt.Sprintf("%+v", err))
}
// *gasPriceErr means query `GetGasPrice` failed
if *gasPriceErr != nil{
// handle error
}
// *nonceErr means query `GetNextNonce` failed
if *nonceErr != nil{
// handle error
}
// gasPrice and nonce are queried result
fmt.Printf("gasPrice %v", gasPrice)
fmt.Printf("nonce %v", nonce)Batch call contract
Batch send transaction
Batch send contract transaction
Last updated
Was this helpful?