Creating and Sending Transactions
You can send signed transactions using Hyperledger Besu
eth_sendRawTransaction JSON-RPC API method.
Signed transactions can be simple value transfers, contract creation, or contract invocation.
Do not use the accounts in the examples on mainnet or any public network except for testing. The private keys are displayed which means the accounts are not secure.
All accounts and private keys in the examples are from the
dev.json genesis file in the
eth_call vs eth_sendRawTransaction
|Invokes contract function locally||Broadcasts to network|
|Does not change state of blockchain||Updates blockchain (for example, transfers ether between accounts)|
|Does not consume gas||Requires gas|
|Return value of contract function available immediately||Returns transaction hash only. Possible transaction may not be included in a block (for example, if the gas price is too low).|