I am new to this. I wanted to know, how i can add block, add transaction and search for transaction in blockchain? Thanks.
1 Answer
I am assuming that you are asking for Ethereum Blockchain.
I wanted to know, how i can add block
Adding a block in Ethereum requires mining. You can find more about mining here.
add transaction
Transaction can be added using eth.sendTransaction
more details about it can be found at https://github.com/ethereum/go-ethereum/wiki/Contracts-and-Transactions
search for transaction in blockchain
Transaction details can be found from the transaction hash that we get when we send a transaction. Use eth.getTransaction(txHash)
, to get the details of the transaction.