Transaction
Transactions
Transactions in DaVinci Chain are digital messages that enable users to transfer assets, interact with smart contracts, and execute various operations on the blockchain. These transactions are processed, validated, and recorded on-chain to maintain network integrity.
A submitted transaction includes the following information:
from
– the address of the sender, that will be signing the transaction. This will be an externally-owned account as contract accounts cannot send transactionsto
– the receiving address (if an externally-owned account, the transaction will transfer value. If a contract account, the transaction will execute the contract code)signature
– the identifier of the sender. This is generated when the sender's private key signs the transaction and confirms the sender has authorized this transactionnonce
- a sequentially incrementing counter which indicates the transaction number from the accountvalue
– amount of DCOIN to transfer from sender to recipient (denominated in WEI, where 1 DCOIN equals 1e+18wei)input data
– optional field to include arbitrary datagasLimit
– the maximum amount of gas units that can be consumed by the transaction. The DVM specifies the units of gas required by each computational stepmaxPriorityFeePerGas
- the maximum price of the consumed gas to be included as a tip to the validatormaxFeePerGas
- the maximum fee per unit of gas willing to be paid for the transaction (inclusive ofbaseFeePerGas
andmaxPriorityFeePerGas
)
Gas is a reference to the computation required to process the transaction by a validator. Users have to pay a fee for this computation. The gasLimit
, and maxPriorityFeePerGas
determine the maximum transaction fee paid to the validator.
The transaction object will look a little like this:
But a transaction object needs to be signed using the sender's private key. This proves that the transaction could only have come from the sender and was not sent fraudulently.
JSON-RPC Example
Example Response
the
raw
is the signed transaction in Recursive Length Prefix (RLP) encoded formthe
tx
is the signed transaction in JSON form
Last updated