5 votes
Accepted

How do I execute a tezos-client transfer programmatically?

Try to be as explicit as possible: specify the full path to tezos-client specify the absolute directory containing the data, especially the aliases (generally --base-dir /home/[..USER..]/.tezos-...
user avatar
  • 3,278
4 votes

Is it possible to use natural logarithmic in your smartpy code?

You have to do it manually... Here's one approach for compute log(x) assuming you are representing x as a fraction find integer m through binary search such that 2^m <= x < 2^(m+1) (m may be ...
user avatar
  • 4,409
3 votes

Is it possible to use natural logarithmic in your smartpy code?

I have a contract for binary log that uses few multiplications and can be adjusted for any fixed point precision: https://github.com/Sophia-Gold/michelson/blob/master/log2fix.tz. I don't think it can ...
user avatar
1 vote
Accepted

Is it possible to use natural logarithmic in your smartpy code?

As explained by Arvidj, there are no floating point numbers in Michelson (or SmartPy), no exp or log function. While working with natural numbers, you can implement by hand some examples which may or ...
user avatar
  • 3,185
1 vote

How do I execute a tezos-client transfer programmatically?

Try the full path. Like that: home/your_user_name/tezos/tezos-client transfer 1 from myAlias to tz1.... --fee 0.05 --dry-run
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible