Ask us anything. We're here to help.

Zero Hash Transaction States

Transactions in Zero Hash, which could be one of the followings:

  • Trade [API endpoint]
  • Loan [API endpoint]
  • Reward [API endpoint]
  • Award [API endpoint]

 For Trade API endpoints, there are three possible states:

State Description
Accepted The transaction has been received by Zero Hash
Active Zero Hash has attempted to settle the transaction but was unable to. Typically this is due to one or both of the counterparties being underfunded
Terminated

The transaction is in a terminal state, and has asettlement_state of either settled or defaulted.

  • settled means the trade has fully settled, and each counterparty has been credited with the funds that were owed to them. 
  • defaulted means that the trade could not be settled by the expiry time, and so is deemed in default.

 

ForPOST /liquidity/execute and POST /convert_withdraw/execute endpoints related to trades, there is one possible status:

Status Description
Completed

This is an execution confirmation status. It means that the liquidity execution is completed successfully. You can use GET/trades after to check the settlement status once you see the 'Completed' status.

For any HTTP errors, you can refer here API Error Handling

 

For Reward or Award API endpoints, there is one possible status:

Status Description
Completed

The rewards have been added to the specific participant successfully.

For any HTTP errors, you can refer here API Error Handling