To create an unsigned transaction via this endpoint, you need an unspent transaction output (UTXO), that can be specified by a transaction hash and an index. For example, it’s fine to pick any transaction hash and index of a UTXO (just remember that it has to be unspent, otherwise, the request will fail as you can’t spend a transaction output more than once).
By using the Universal API’s Get A List of Transactions endpoint, you can get outputs for the latest transactions in the network. You can get the UTXO in the response. UTXOs are represented in the Universal API by the event type
utxo_output. You can now, pass the transaction hash of the output, and its index to the respective fields:
Click 'Try It!' to test the endpoint with the default values or customize your request by following these steps:
- Enter your own API key in the Header: token text box (top right).
- You can get a free API key here
- Enter your PATH PARAMS (you can find these below).
- Optional . Filter your results with QUERY PARAMS (you can find these below).
- Click Try It!
Note: AUTHORIZATION method must be set to Header.