lib/eth/tx/legacy.rb
def unsigned_encoded
        tx_data = []
        tx_data.push Util.serialize_int_to_big_endian @signer_nonce
        tx_data.push Util.serialize_int_to_big_endian @gas_price
        tx_data.push Util.serialize_int_to_big_endian @gas_limit
        tx_data.push Util.hex_to_bin @destination
        tx_data.push Util.serialize_int_to_big_endian @amount
        tx_data.push Rlp::Sedes.binary.serialize @payload
        tx_data.push Util.serialize_int_to_big_endian @chain_id
        tx_data.push Util.serialize_int_to_big_endian 0
        tx_data.push Util.serialize_int_to_big_endian 0
        Rlp.encode tx_data
      end
# Encodes the unsigned transaction object, required for signing.
#
# @return [String] an RLP-encoded, unsigned transaction.
Encodes the unsigned transaction object, required for signing.
Encodes the unsigned transaction object required for signing .
def unsigned_encoded
        tx_data = []
        tx_data.push Util.serialize_int_to_big_endian @signer_nonce
        tx_data.push Util.serialize_int_to_big_endian @gas_price
        tx_data.push Util.serialize_int_to_big_endian @gas_limit
        tx_data.push Util.hex_to_bin @destination
        tx_data.push Util.serialize_int_to_big_endian @amount
        tx_data.push Rlp::Sedes.binary.serialize @payload
        tx_data.push Util.serialize_int_to_big_endian @chain_id
        tx_data.push Util.serialize_int_to_big_endian 0
        tx_data.push Util.serialize_int_to_big_endian 0
        Rlp.encode tx_data
      end
def unsigned_encoded tx_data = [ ] tx_data . push Util . serialize_int_to_big_endian @signer_nonce tx_data . push Util . serialize_int_to_big_endian @gas_price tx_data . push Util . serialize_int_to_big_endian @gas_limit tx_data . push Util . hex_to_bin @destination tx_data . push Util . serialize_int_to_big_endian @amount tx_data . push Rlp :: Sedes . binary . serialize @payload tx_data . push Util . serialize_int_to_big_endian @chain_id tx_data . push Util . serialize_int_to_big_endian 0 tx_data . push Util . serialize_int_to_big_endian 0 Rlp . encode tx_data end
Encodes the unsigned transaction object, required for signing.
Encodes the unsigned transaction object required for signing .
an RLP-encoded, unsigned transaction.
an RLP - encoded unsigned transaction .
String