Author

Topic: send remain coins after timeout to the default address (Read 538 times)

legendary
Activity: 3388
Merit: 4615
- snip -
2. prepare TX which send all coins from "p2shaddresstest" to the "defaultaddress"
3. set timeout, for example 24h
4. send TX to the bitcoin network

The main aim, prepare some transaction which will send all remained coins from one address to the another after time out.
- snip -

Transactions do not spend "from an address".  Transactions spend specifically listed unspent outputs.  If you spend any of those outputs before the timeout, then the transaction becomes invalid and will be rejected by the network.

staff
Activity: 3374
Merit: 6530
Just writing some code
You probably should use a transaction with locktime for the second transaction.
jr. member
Activity: 43
Merit: 0
hello!

Can I send remain coins after delay to the default address

for example

1. create raw TX and get address = "p2shaddresstest"
2. prepare TX which send all coins from "p2shaddresstest" to the "defaultaddress"
3. set timeout, for example 24h
4. send TX to the bitcoin network

The main aim, prepare some transaction which will send all remained coins from one address to the another after time out.

Does API has any methods for this purpose ?
Jump to: