Broadcasting a transaction
The DEMOS transaction broadcasting system works as a 2 step process.
Step 1: Gas fee confirmation
The confirmation process starts by a client sending the transaction to the node. The node analyses the workload and returns information on how much gas is needed to execute your transaction.
The information is wrapped in a validity data object, which looks something like this:
The response is an object containing the status code, the response or an error message if one occured and your transaction. If you are comfortable with the amount of gas to be used (gas_operation.params.amount
), you can proceed to broadcasting the tx.
Step 2: Broadcasting the validity data
To execute your transaction, send back the validity data to the node.
Last updated