Creating Transactions
Transactions
A blockchain is built from blocks containing transactions. Transactions are accumulated by an enterprise chain and combined into blocks every five seconds. A block is only created if there are new transactions. Those blocks are hashed, signed, and written to the ledger for permanent and immutable storage. The block and its transactions are then sent (sans payload) to Raiinmaker Network for decentralized verification of proofs.
Creating Transactions
Creating a transaction is as simple as creating a transaction type and then passing payload information to the chain. L1 chain payloads can be strings or stringified JSON objects.
Create the transaction type:
Create various transactions:
On a real system, it is recommended to standardize the data structure for every transaction type so that you may create efficient indexes to search for transactions based upon important payload fields, however, it is possible to send fully arbitrary payload data within a transaction to your business chain if you so desire.
Last updated