Position: Home page » Ethereum » ABI Ethereum

ABI Ethereum

Publish: 2021-05-16 20:43:51
1. Ethereum also uses blockchain technology, but it is more convenient to use than bitcoin's blockchain Turing, which is complete and open source. Anyone can create their own application on the basis of Ethereum
2.

Generally speaking, the steps of deploying smart contract are as follows:


  1. start an Ethereum node (such as geth or testrpc)
  2. use Solc to compile smart contracts=& gt; Get the binary code
  3. deploy the compiled contract to the network This step will consume Ethernet currency, and you need to use the default address or specified address of your node to sign the contract.)=& gt; Get the blockchain address and ABI of the contract (JSON representation of the contract interface, including variables, events and callable methods) The author confused ABI with contract interface here. ABI is the binary representation of the contract interface.)
  4. use the JavaScript API provided by web3.js to call the contract Depending on the type of call, it may consume Ethernet currency.)

3. There is no inevitable relationship between whether the virtual currency will disappear or not and whether it can not be used on the third-party platform. Online third-party trading platform can only say that this kind of currency has another platform for trading, which shows that this kind of currency is more reliable
Ruitai coin has not been launched on the third-party platform, but it is rumored that it will also be launched on the third-party platform.
4. In solidness, a contract consists of a set of code (contract function) and data (contract state). The contract is located at a special address on the Ethereum blockchain. uint storedData; This line of code declares a state variable, named storeddata, of type uint (256 bits unsigned integer). You can think of it as a storage unit in a database. Just like managing a database, you can query and modify it by calling functions. In Ethereum, usually only the owner of the contract can do so. In this example, the functions set and get are used to modify and query the values of variables, respectively

like many other languages, when accessing state variables, it is not necessary to add a prefix such as this

this contract can't do a lot (limited by Ethereum's infrastructure), it just allows anyone to store a number. And anyone in the world can access this number. There is no reliable way to protect the number you publish. Anyone can call the set method to set a different number to cover your published number. But your numbers will remain in the history of blockchain. Later we'll learn how to add an access limit so that only you can change the number

token example

the next contract will implement a cryptocurrency in the simplest form. Taking money in the air is no longer a magic trick. Of course, only the person who creates the contract can do it (it's also very easy to use other currency issuance modes, just to realize the differences in details). And anyone can send money to others, without registering a user name and password, as long as there is a pair of Ethereum public and private keys

note
this is not a good example for online solidness environments. If you use the online solidity environment to try this example. The address of from cannot be changed when the function is called. So you can only play the role of a coiner, you can cast money and send it to others, but you can't play the role of others. This online solidity environment will be improved in the future.
5. Generally speaking, the steps of deploying smart contract are:
1 start an Ethereum node (such as geth or testrpc)
2 use Solc to compile smart contracts=& gt; Get the binary code
3 deploy the compiled contract to the network This step will consume Ethernet currency, and you need to use the default address or specified address of your node to sign the contract.)=& gt; Get the blockchain address and ABI of the contract (JSON representation of the contract interface, including variables, events and callable methods) The author confused ABI with contract interface here. ABI is the binary representation of the contract interface.)
4 use the JavaScript API provided by web3.js to call the contract Depending on the type of call, it may consume Ethernet currency.)
Hot content
Inn digger Publish: 2021-05-29 20:04:36 Views: 341
Purchase of virtual currency in trust contract dispute Publish: 2021-05-29 20:04:33 Views: 942
Blockchain trust machine Publish: 2021-05-29 20:04:26 Views: 720
Brief introduction of ant mine Publish: 2021-05-29 20:04:25 Views: 848
Will digital currency open in November Publish: 2021-05-29 19:56:16 Views: 861
Global digital currency asset exchange Publish: 2021-05-29 19:54:29 Views: 603
Mining chip machine S11 Publish: 2021-05-29 19:54:26 Views: 945
Ethereum algorithm Sha3 Publish: 2021-05-29 19:52:40 Views: 643
Talking about blockchain is not reliable Publish: 2021-05-29 19:52:26 Views: 754
Mining machine node query Publish: 2021-05-29 19:36:37 Views: 750