Return signed transaction spending the first output of the input txid. Note that the node must have a wallet that can sign for the output that is being spent.
(node, txid, to_address, *, amount, fee, locktime=0)
| 184 | return tx |
| 185 | |
| 186 | def create_transaction(node, txid, to_address, *, amount, fee, locktime=0): |
| 187 | """ Return signed transaction spending the first output of the |
| 188 | input txid. Note that the node must have a wallet that can |
| 189 | sign for the output that is being spent. |
| 190 | """ |
| 191 | raw_tx = create_raw_transaction(node, txid, to_address, amount=amount, fee=fee, locktime=locktime) |
| 192 | tx = tx_from_hex(raw_tx) |
| 193 | return tx |
| 194 | |
| 195 | def create_raw_transaction(node, txid, to_address, *, amount, fee, locktime=0): |
| 196 | """ Return raw signed transaction spending the first output of the |
no test coverage detected