class Eth::Client

def transfer_and_wait(destination, amount, sender_key = nil, legacy = false)

Returns:
  • (String) - the transaction hash.

Parameters:
  • legacy (Boolean) -- enables legacy transactions (pre-EIP-1559).
  • sender_key (Eth::Key) -- the sender private key.
  • amount (Integer) -- the transfer amount in Wei.
  • destination (Eth::Address) -- the destination address.
def transfer_and_wait(destination, amount, sender_key = nil, legacy = false)
  wait_for_tx(transfer(destination, amount, sender_key, legacy))
end