pub async fn sign_eip1559_transaction(
tx: TxEip1559,
signer: &PrivateKeySigner,
) -> Result<(B256, Vec<u8>)>Expand description
Signs an unsigned EIP-1559 transaction locally and returns the transaction hash together
with the raw EIP-2718 encoding accepted by eth_sendRawTransaction.
ยงErrors
Returns an error if signing fails.