Understanding of the raw transactions of Ethereum with json format
As a fan of encryption and blockchain development, it is important to capture the internal functioning of Bitcoin transactions, especially when it comes to raw data structures. In this article, we will take care of the details of the Raw Bitcoin transaction format and we will focus specifically on its Json presentation.
Bitcoin transactions structure
Bitcoin transactions consist of various components, including:
- Transaction -Id : a clear identifier for the transaction.
- Type : the type of transaction (e.g. sending, reception, shared).
- From : the sender address.
- A : the recipient’s address.
- Value : The amount is transferred.
- Nonce : a random number it uses to verify the validity of the transaction and guarantees that it has not been manipulated.
- Locktime : the blocking of the block when the transaction is blocked (i.e. not yet confirmed).
- sequence : a more complete increase for each transaction in a stack.
Json representation of the bitcoin transaction
The Json presentation of a bitcoin transaction seems like this:
`Json
{
“TXID”: “1 …”, // Translations -Id
“Type”: “Send”, // type (e.g. send)
“Out of”: {
“Addr”: “…”, // sender address
“Key”: “…”, // the sender’s public key
“Pubkey”: “…”, // Key Public Sender -Hash
},
“A”: {
“Addr”: “…”, // address of the recipient
“Key”: “…”, // public key of the recipient
“Pubkey”: “…”, // public key -hash of the recipient,
},
“Value”: {
“Amount”: 1.00, // amount of the transaction in Satoshis (for example 1 BTC)
“Unity”: “Satoshis” // Unity of the quantity of transaction
},
“Nonce”: 1, // random number to check the validity of the transaction
“Locktime”: 1500, // Block -Block -Stamps when the transaction is blocked
“Sequence”: 100, // increase for each transaction in a stack,
}
`
In this example we have six main properties:
Txid
: the -d transaction.
Type
: the type of transaction (in this case `Send
).
FROM 'is to': the addresses of the sender and the recipient. Note that these are array that contain individual address objects.
Value
: the amount of transaction in Satoshis (eg 1 BTC) together with its unity (in this example" Satoshis ").
Nonce
,
time block and
sequence`: these properties are used to verify the validity of the transaction and make sure it has not been manipulated.
Diploma
Understanding Bitcoin -Raw transactions with the Json format is of essential importance to grab the internal work of the blockchain. By analyzing the structure of a specific transaction, we can obtain insights on the data exchanged between the parties in the network. In this article we provided an overview of the Json presentation of Bitcoin transactions and we showed how these structures are analyzed.
Additional resources
- Blockchains.info API documentation: <
- Ethereum API -Documentation: <
Note: the example above serves only for illustration purposes. Do not try to reproduce the actual transaction data without adequate approval and approval of the sender or recipient.
Exclusion of responsibility
This article is intended only for educational purposes and should not be used for harmful activities, e.g. B. for trying to false transactions or compromising safety. Always make sure you have the necessary authorizations and follow the best practices when working with Blockchain data.