I am looking for a free api to grab 100 latest bitcoin trasactions in the blockchain network | Confimmed or Not Confirmmed!
I think this makes no sense.
What is "latest" transaction?
Once it is confirmed, all transactions in the block were confirmed together, and there are much more than 100 transactions in a block.
So, you have to decide: 100 last unconfirmed transactions or 100 transactions from last block.
If you go here (
https://blockstream.info/tx/recent) you will see latest unconfirmed transactions.
This is the blockstream.info API:
https://blockstream.info/api/mempool/recent[{"txid":"fb12d5232caa25f4f7095da9081769a01abea16205b58a2b8690cefef572ed8e","fee":135,"vsize":133,"value":250000},
{"txid":"6173f6db9ac33b2cfd0e35f9a2dd31c9ac1dbd5c29478faa3a9e7f11431eb07a","fee":730,"vsize":141,"value":4406611},
{"txid":"3366118803610c704e914a412f34a0efb4b8af9a40d2cd8edad4d07079394746","fee":3075,"vsize":204,"value":5393179},
{"txid":"5cca0efff9874d015da6e1730b87a43ec3afa12129003c8d02b04a82838c6fba","fee":1283,"vsize":255,"value":1606971},
{"txid":"63bd3377185bb6190833359c8a5f1d73e00987bec21b9872862638b9fe978cc6","fee":3500,"vsize":318,"value":83757352},
{"txid":"80c36123503583815d541ccdbc26887f2efca3930a162ec564d64c01bd4d2a2f","fee":774,"vsize":165,"value":151578},
{"txid":"b423302588f53567dabfe2a212fe3a8a095bdaa6f3e88187ccd6c109e4ff1fa6","fee":420,"vsize":143,"value":250600},
{"txid":"60b8d475e2f589b732383a7eb62d8bbf26738c1a40398abe1503f10acce82e6b","fee":678,"vsize":225,"value":3417972},
{"txid":"7dd7c60457d13101b8205a5a898ca473eb572e6f41f0187b148585c45b0d8cfc","fee":500,"vsize":449,"value":2685500},
{"txid":"c9478778ef5f7112261c5687ee3887efdc16ed04905cf4abea7285c10415ae5a","fee":146,"vsize":143,"value":6093366}]
Here you can find mempool.space API which return the last 10 unconfirmed transactions:
https://mempool.space/api/mempool/recent[{"txid":"32f03d4886f3de1a7120b854ddcf0fd71bb53dce2f76c8de0e2d8bdd30dbfd00","fee":1120,"vsize":141,"value":2712357},
{"txid":"52e8346ae9f34be796d47efafca30270d1e4427a377c1acbe891508d3f6e5122","fee":1260,"vsize":143,"value":268270},
{"txid":"8abba43105981f92a50172f828473d64095c4deccfc915a8752c9fce83c0a68f","fee":28351,"vsize":318,"value":145511203},
{"txid":"b25314e53c283370d2310145d692d277bb4dee0bfcef1e21c30104dfb9282c77","fee":513,"vsize":110,"value":2804800},
{"txid":"03c34e86ff73bd2460a8956c7399c34e5b0895279e350318e6f997eb01408481","fee":327,"vsize":140,"value":458703},
{"txid":"e8b383a7b17366bb50598d9e450de4edd65453c0fcf2d656aacf4a614bd85aaf","fee":639,"vsize":211,"value":265440},
{"txid":"90a272785d798d63011a9d76403d69ef64c0324dd8d2f9c9ec359745b60bd412","fee":568,"vsize":141,"value":265400},
{"txid":"2ce2cae3b56278179676428acddb4054be5d8c0b21e7c97000f440b11b5ed170","fee":1050,"vsize":346,"value":26638786},
{"txid":"76fee533e8ecb5ed73753e7b335895356e83cf11f90543e15ff2ba79a1fc0c71","fee":6274,"vsize":209,"value":1234189},
{"txid":"c4ec915ee0726bfd9548ef05aba801a894e2df568accb7c29c1bf54b9f90c850","fee":498,"vsize":165,"value":458924}]
If you want to go down to latest confirmed transactions path, you will need to use this API. But you will need to use it with another API to get the latest block ID.
https://mempool.space/api/block/:hash/txids[
"cfe624ccdd8010cf78dbedd1b25e1ff601b470c4d7d90fa9fc8c1bcc5cdc6e0e",
"a5ef89881bd5103f223a0fa285dfc75f4718974cb792cf85e623a7de05801bc9",
"94e8c35414db17cd10efa0ac4115e086edb168ba7bd86e737e5b8cab96821580",
...
]
and the use it with other API to get the details of each transaction ID.
You were being blocked because you were not using API, but URL.
You can use those API i sent you (especially mempool.space) and you won't get blocked. However, only the last 10 transactions are available.
You can make 1 request per minute and stack all those 10 results. When you merge all of them you will have the lastest 100 transactions.