Ethereum: Why does this coinbase transaction have two op_return outputs?

Avatar de admin

Ethereum: Transaction with two points-instillation

As a false collectioner transaction of cryptocurrencies, you, rightly, paid with the cases, when the transaction includes a few of the output. In this state, we will utter in one such primer, which includes in the Sabe transaction coinbase with two output to the operator.

What is such operative operating?

Ethereum: Why does this coinbase transaction have two op_return outputs?

In the ethereum OP-Retire, they relate to the function of the «Out-of-the-Out-Entrance», the use in the intralateal counterattacks. This allows you to translate the dimingers in the qualities of the parameters of function within its contraction. These expiry may be a counteract, using the keyword «Out».

Primer transaction coinbase

Let’s take out the transaction on Coinbase, which is relevant to your description. Transaction-is simple deposit, but includes two exit from the version:

`

0x … deposit address …

OP_RETURN (0) {CALL Contract «MyContract» with the arguments «…», {

«Gas»: 100000,

«Gaspris»: 20

}}

OP_RETURN (1) {CALL Contract «Ore Contract» With Arguments «…», {

«GAZ»: 2000,

«Gaspris»: 30

}}

`

In this transaction op_return (0) and op_return (1) are used for the vicinity of the expiry of two divisive functions. These expiry may be accessible to the memory of the counteract.

What does this mean?

The first OP-RETURN (op_return (0)), verbatima, is used in the quality parameter for the function of the «MyContract» counteract, the transition of this is the cure of the argument. The second operator (op_return (1)) can look out of the second part, which was transferred as an argument or hoped in the local memory.

Who is who is a matter?

To the coat, without adding coontroquette counteract and their function, the nonic transaction. The case is not less, we can make some educated predictions on the basis of the general models:

  • The first operator can be used for transition from the second counteract in «MyContract».

  • The second operator can be the recreation of the values, the divisions in the local memory or the substantial, transferred in the quality of the argument.

conclusion

Primer transaction coinbase demonsstrates the hybbicness of the OP-Retrove Ethereum, allowed to translate the transfer and look at them with this function. Ponimania, as they work, these functions, you can help you orientate in the phrase programing the inteling counteract and to take the meaningful decrees about the volume, in the way of contract.

Immet in the view that this one is monitored only for the Educational Ten and not to be found in the investment consumer. All the same study and check out the sub -linity of the transaction, presence of what to take away the resolution.

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *