Extract sender ID and recipient ID of a bitcoin transaction
Transaction data in the blockchain does not include any ID for a "sender" or "recipient".
Transaction data includes scripts used to spend cryptocurrency amounts listed in the transaction data. The most common of these scripts specify what is commonly called an "address" but that is derived from a public key and is nowadays usually unique to a transaction. It is designed to be difficult or impossible to identify a sender or recipient from these "addresses".
sites where you enter ID of the wallet
There are no sites (in general) that do that because cryptocurrency wallets don't have wallet-IDs. Certainly none that are part of transaction data in the blockchain.
The only really significant data in a wallet is the private-keys it contains. Recovery-phrases or seed-phrases may be used to re-create these private keys. A wallet's data may be protected by being encrypted on disk using a password or pass-phrase. None of these constitute a wallet-ID.
Blockchain explorer websites generally allow you to examine blockchain data associated with one of
- address
- transaction-ID
- block number (height)
- block hash
None of those really constitute a sender-ID a recipient-ID or a wallet-ID.
Decoding Transaction Data
A good explanation of the structure of a Bitcoin transaction in a blockchain block can be found at https://en.bitcoin.it/wiki/Transaction
This gets more complex as time goes on and new features are added (SegWit, Bech32, ...) or when you need to fully decode lesser-used types of transactions (n of m multisig?).
Search for Code to parse a Bitcoin transaction
A few unintuitive aspects of Bitcoin and similar cryptocurrencies:
- Wallets don't contain bitcoins.
- The blockchain does not contain bitcoins.
- Bitcoins are not really sent or transmitted through the Internet.
- Bitcoins don't really exist anywhere - they are more a unit of measure.
- The blockchain is not really a ledger (it is a journal).
- Bitcoin addresses don't label places or people or wallets.
- Bitcoin addresses are not used to deliver transactions or bitcoins somewhere.
- Bitcoin transactions don't have to include any addresses.