Bitcoin Forum
November 21, 2017, 01:34:27 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Raw Transaction Tax  (Read 750 times)
madmadmax
Hero Member
*****
Offline Offline

Activity: 740



View Profile
April 02, 2013, 12:12:00 PM
 #1

How do you calculate it? I have searched google and on this forum and haven't found a single answer.

Are there any low level functions I'm missing?








       ▄▄▄▄▄               ▄▄▄▄▄
   ▄▄█▀▀▀▀▀▀██▄        ▄▄█▀▀▀▀▀▀▀█▄
 ▄██▀        ▀██▄    ▄██▀         ▀█▄
██▀            ▀██▄  ▀▀             ██
██               ▀██        ▄▄▄▄▄▄▄▄██
██                ▀██▄      ▀▀▀▀▀▀▀▀▀▀
 ██▄          ▄██   ▀██▄          ▄▄▄
  ▀██▄      ▄██▀      ▀██▄▄     ▄██▀
    ▀▀██████▀▀          ▀▀██████▀▀


Unchained Smart Contracts
Decentralized Oracle
Infinitly Scalable
Blockchain Technology
Turing-Complete
State-Channels



                 ▄████▄▄    ▄
██             ████████████▀
████▄         █████████████▀
▀████████▄▄   █████████████
▄▄█████████████████████████
██████████████████████████
  ▀██████████████████████
   █████████████████████
    ▀█████████████████▀
      ▄█████████████▀
▄▄███████████████▀
   ▀▀▀▀▀▀▀▀▀▀▀

             ▄██▄
     ▄      ▐████   ▄▄
   █████     ██████████
    █████████████████▀
 ▄████████████▀████▌
██████████     ▀████    
 ▀▀   █████     ██████████
      ▀████▌▄████████████▀
    ▄▄▄███████████████▌
   ██████████▀    ▐████
    ▀▀▀  ████▌     ▀▀▀
         ▀███▀
f


1511228068
Hero Member
*
Offline Offline

Posts: 1511228068

View Profile Personal Message (Offline)

Ignore
1511228068
Reply with quote  #2

1511228068
Report to moderator
Join ICO Now A blockchain platform for effective freelancing
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1511228068
Hero Member
*
Offline Offline

Posts: 1511228068

View Profile Personal Message (Offline)

Ignore
1511228068
Reply with quote  #2

1511228068
Report to moderator
1511228068
Hero Member
*
Offline Offline

Posts: 1511228068

View Profile Personal Message (Offline)

Ignore
1511228068
Reply with quote  #2

1511228068
Report to moderator
1511228068
Hero Member
*
Offline Offline

Posts: 1511228068

View Profile Personal Message (Offline)

Ignore
1511228068
Reply with quote  #2

1511228068
Report to moderator
CIYAM
Legendary
*
Offline Offline

Activity: 1862


Ian Knowles - CIYAM Lead Developer


View Profile WWW
April 02, 2013, 12:17:29 PM
 #2

Tax?

Are you trying to work out a tx *fee* amount?

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
madmadmax
Hero Member
*****
Offline Offline

Activity: 740



View Profile
April 02, 2013, 12:25:10 PM
 #3

Tax?

Are you trying to work out a tx *fee* amount?


Yes haha the bitcoin network "tax" for processing your payment. The tx fee, I know it is charged by kb apparently but how do you get the proper kb for a transaction before you even create it?








       ▄▄▄▄▄               ▄▄▄▄▄
   ▄▄█▀▀▀▀▀▀██▄        ▄▄█▀▀▀▀▀▀▀█▄
 ▄██▀        ▀██▄    ▄██▀         ▀█▄
██▀            ▀██▄  ▀▀             ██
██               ▀██        ▄▄▄▄▄▄▄▄██
██                ▀██▄      ▀▀▀▀▀▀▀▀▀▀
 ██▄          ▄██   ▀██▄          ▄▄▄
  ▀██▄      ▄██▀      ▀██▄▄     ▄██▀
    ▀▀██████▀▀          ▀▀██████▀▀


Unchained Smart Contracts
Decentralized Oracle
Infinitly Scalable
Blockchain Technology
Turing-Complete
State-Channels



                 ▄████▄▄    ▄
██             ████████████▀
████▄         █████████████▀
▀████████▄▄   █████████████
▄▄█████████████████████████
██████████████████████████
  ▀██████████████████████
   █████████████████████
    ▀█████████████████▀
      ▄█████████████▀
▄▄███████████████▀
   ▀▀▀▀▀▀▀▀▀▀▀

             ▄██▄
     ▄      ▐████   ▄▄
   █████     ██████████
    █████████████████▀
 ▄████████████▀████▌
██████████     ▀████    
 ▀▀   █████     ██████████
      ▀████▌▄████████████▀
    ▄▄▄███████████████▌
   ██████████▀    ▐████
    ▀▀▀  ████▌     ▀▀▀
         ▀███▀
f


CIYAM
Legendary
*
Offline Offline

Activity: 1862


Ian Knowles - CIYAM Lead Developer


View Profile WWW
April 02, 2013, 12:39:41 PM
 #4

Okay - refer to this: https://en.bitcoin.it/wiki/Transaction_fees

Just create it the raw tx (with no fee) but don't send it and check its size (and the age of UTXOs if necessary) - remember that paying the fee is simply reducing one of the outputs (generally the change one) by the appropriate amount.

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
DannyHamilton
Legendary
*
Online Online

Activity: 1974



View Profile
April 02, 2013, 02:55:58 PM
 #5

how do you get the proper kb for a transaction before you even create it?

As CIYAM has pointed out, you don't.  First you create the transaction, then you calculate the fee.

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!