Module: TezosClient::ClientInterface::BlockContextual

Included in:
TezosClient::ClientInterface
Defined in:
lib/tezos_client/client_interface/block_contextual.rb

Overview

Commands managing keys and accounts

Instance Method Summary collapse

Instance Method Details

#transfer(quantity:, from:, to:, dry_run: false, arg: nil) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/tezos_client/client_interface/block_contextual.rb', line 7

def transfer(quantity:, from:, to:, dry_run: false, arg: nil)
  cmd = "transfer #{quantity} from #{from} to #{to}"
  cmd = "#{cmd} --dry-run" if dry_run
  cmd = "#{cmd} --arg #{arg}" unless arg.nil?

  res = call_client(cmd)
end