Get transaction status

GET {{baseUrl}}/protocols/btc/transactions/:transaction

Returns the transaction status for a Bitcoin transaction. The confirmation of a transaction correlates with the selected header-tx-confirmations header value.

HEADERS

KeyDatatypeRequiredDescription
tangany-networkstring(Optional header) Defines the network to operate in - in the Bitcoin context.

Accepts supported network enums. Defaults to mainnet when omitted from the call.

Supported networks: mainnet, testnet3.

Example: testnet3 | | tangany-tx-confirmations | number | | (Optional header) Defines a secure amount of block confirmations required to consider a bitcoin transaction as valid.

Accepts positive integers. Defaults to 1.

Bitcoin transactions are usually considered final after 6 network confirmations. | | tangany-version | number | | (Required) Default header that directs the request towards desired Tangany Custody Api version (e.g 2 directs to Tangany Custody APi v2).

Supports only major versions. | | Accept | string | | |

RESPONSES

status: OK

{"blockNr":637013,"confirmations":2,"status":"pending","blockHash":"00000000000000000000eb228b274ee4b56fe20c53ecbdc699d1aa0faafc0caa","receivedTime":"2022-08-12T06:46:13.000Z","totalInput":"6.58861924","totalOutput":"6.58854574","fees":"0.00068","inputs":[{"txHash":"f373e183p5954c5b9c59dfc2a615a3013cnnd47ec37114sm599ff41556fc6887","outputIndex":1,"value":"3.4071713"},{"txHash":"f373e183p5954c5b9c59dfc2a615a3013cnnd47ec37114sm599ff41556fc6887","outputIndex":1,"value":"3.4071713"}],"outputs":[{"value":"0.001","address":"bc1qc7psdze9j0r38rv8gj2kl8gysqevtqyq6v506a"},{"value":"0.001","address":"bc1qc7psdze9j0r38rv8gj2kl8gysqevtqyq6v506a"}]}