ethereum-tx-sign Allows you to sign Ethereum transaction offline. const ETH_CHAIN_ID: u32 = 1; let tx = RawTransaction { ... } let raw_rlp_bytes = tx.sign(&private_key, ETH_CHAIN_ID); That's it!