<<  >> (p.137)
    Author Topic: How do I create raw Tx using PHP ?  (Read 1177 times)
    CounterEntropy (OP)
    Full Member
    ***
    Offline

    Activity: 214
    Merit: 278


    View Profile
    September 01, 2015, 11:56:57 PM
     #1

    I have the following data in MySQL table...

    Address1 - PrivKey1 - Amount1
    Address2 - PrivKey2 - Amount2
    Address3 - PrivKey3 - Amount3

    I can get the list of unspent outputs from blockchain.info API - https://blockchain.info/unspent?active=Address1|Address2|Address3

    Now, I want a php script which will generate the raw Tx to spend all UTXO to an offline destination address, say dAddress, including the calculation of proper Tx fee, i.e. size of the raw Tx needs to be dynamically calculated. Can someone please help me out ?
Page 136
Viewing Page: 137