Author

Topic: Determining fees (Read 319 times)

newbie
Activity: 32
Merit: 0
August 16, 2013, 11:29:16 AM
#1
Hey everyone,

I am playing with some altcoin daemons and I have been having a difficult time automating transactions, mainly due to the difference in fee accross various alt-coins. Right now I have a coin sitting in my wallet, and my sendtx function is getting this message:

Code:
error: {"code":-4,"message":"Insufficient funds"}

It seems to me that each coin has it's own methodology for determining fees, they can range from 1 coin (such as with Devcoin) to free for some transactions, but there doesn't seem to be any easy way to calculate what the fee would be for a certain transaction.

What I am hoping to find out is a way to determine alt-coin fees on a per-transaction basis in an automatic way. Perhaps there is a daemon command I overlooked, or a certain portion of the code I can look at to determine how fees are calculated for each coin.

Any help is appreciated!
Jump to: