Back

How to Use Bitcoin API to Get BTC Pending Transactions -Tokenview

What is a pending transaction? The pending transaction means that the transaction has been broadcast to the network, waiting to be packaged, and has not yet entered the blockchain.

After we transfer coin on the Bitcoin blockchain, we want to check whether the transaction is packaged or is still in the list of pending transactions. We can use the Bitcoin block explorer to search this transaction. Tokenview Bitcoin Block Explorer is a blockchain explorer that queries transactions on the chain, providing users with powerful and complete data support.

How to check it? Open the Bitcoin browser or type in the address bar of the browser: https://btc.tokenview.io. Copy the transaction hash directly to the search box . If the transaction is still pending confirmation, it will be marked accordingly, as shown in the figure.

btc API

For crypto wallet developers or exchange platforms, you can use the Tokenview Bitcoin API to retrieve Bitcoin pending transactions list.

How to Get Pending Transaction List with BTC API

A. Register a Tokenview developer account

First, you need to register a Tokenview developer account.

btc API

B. Open Tokenview BTC API Documenter

You can get the Bitcoin API interface documentation from the website https://services.tokenview.io, or you can directly click the link to get it. https://documenter.getpostman.com/view/5728777/RzZ6HfX2#355944f3-5024-47c8-8179-8ca4b12c554e

btc API

C. How to Know a Pending Transaction Status

As mentioned earlier, a pending transaction means that the transaction is still waiting to be packaged and has not yet entered the blockchain. Use the link below to check whether the transaction is in the queue. Take the Bitcoin transaction as an example, the transaction hash: 91d510710e1593612455c0602d29eb5b916ed715215f716a1e37a242f6c2b278

https://services.tokenview.io/vipapi/pending/{lower case for public chain abbreviation}/{transaction id}?apikey={apikey}

If the transaction is in the queue to be confirmed, the response is as follows. Because it has not been packaged, the block height is unknown.

If it returns 404, it means that there is no such transaction in the queue to be confirmed, and the transaction has succeeded or failed.

BTC API

D. Get Address Pending Transaction List

Use the link below to check the list of pending transactions for the address.

https://services.tokenview.io/vipapi/pending/ntx/{lowercase public chain abbreviation}/{address}?apikey={apikey}

Take the Bitcoin address: 3QTUxAKmHqLAkvAjSvPxYoi5yUVRPQm2Cx as an example. The response is as follows.

BTC API

According to some of the above operations, we can get a list of pending transactions and other information. Start a free trial now. https://services.tokenview.io/product/api

Recent search