EOS Smart Contract Issue currency _eos

Source: Internet
Author: User

Today, the EOS wiki has been updated, trying to run the smart contract process with Mater.

Although met a few pits, still ran through.

Here are some of the main things, and 318 other areas.

At the time of the./cloes Get account Currency

The 318 version is like this:

{
  "account_name": "Currency", "
  eos_balance": "0.0000 Eos",
  "staked_balance": "0.0001 eos",
  " Unstaking_balance ":" 0.0000 EOS ",
  " Last_unstaking_time ":" 2035-10-29t06:32:22 ",
...

Master version, is not balance several variables, but does not affect the next operation, probably the following:

{"
  account_name": "Currency",
  "Last_unstaking_time": "2035-10-29t06:32:22",
...

Then is the coin of the link, to create money first, this step, the previous version is not

Cleos Push Action currency create ' {"Issuer": "Currency", "maximum_supply": "1000000000.0000 CUR", "Can_freeze": 1, "Can_r ecall ": 1," Can_whitelist ": 1} '-P currency@active

And then in the issue currency

./cleos Push Action currency issue ' {to ': "Currency", "Quantity": "1000.0000 CUR", "Memo": ""} '--permission Currency@active

There is also a hole, is to get account information, the document here is written this way

./cleos Get Table Currency currency account
{
  "rows": [{
     "currency": 1381319428,
     "balance": 10000000
     }
  ],
  "more": false
}

and the actual operation is this:

feng@feng-b250-hd3p:~/workspace/eos/build/programs/cleos$./cleos Get Table currency currency accounts
{
  " Rows: [{
      "balance": "1000.0000 CUR",
      "Frozen": 0,
      "Whitelist": 1
    }
  ], "More
  ": false
}

What's the difference? He replaced account with accounts, one more s!.

The following is normal operation, transfer show

feng@feng-b250-hd3p:~/workspace/eos/build/programs/cleos$./cleos Push Action currency transfer ' {from ': ' Currency ',   "To": "Eosio", "Quantity": "20.0000 CUR", "Memo": "I-Transfer"} '--permission currency@active 3158719ms thread-0
main.cpp:964 operator ()] converting argument to binary ... {"transaction_id": "018a3451547687c496eba8f6df39b6c8416fa15e1b2567eecafe2fc5c6181941", "processed": {"status": " Executed "," id ":" 018a3451547687c496eba8f6df39b6c8416fa15e1b2567eecafe2fc5c6181941 "," action_traces ": [{] Receiver ":" Currency "," act ": {" account ":" Currency "," Name ":" Transfer "," Authoriz ation ": [{" Actor ":" Currency "," permission ":" Active "}]," D ATA ": {" from ":" Currency "," to ":" Eosio "," Quantity ":" 20.0000 CUR "," mem O ":" My-Transfer "}," Hex_data ":" 0000001e4d75af460000000000ea3055400d0300000000000443555200000000116d79206669727374207472616e73666572 "}," console ":"
            Transfer\n "," region_id ": 0," Cycle_index ": 1," data_access ": [{" Type ":" Write ", "Code": "Currency", "Scope": "Currency", "sequence": 2},{"type": "
            Write "," code ":" Currency "," Scope ":" Eosio "," sequence ": 0},{
          "Type": "read", "Code": "Currency", "Scope": "... edeo3", "sequence": 2 }]},{"receiver": "Eosio", "act": {"account": "Currency", "Name": "tr
            Ansfer "," authorization ": [{" Actor ":" Currency "," permission ":" Active " }], "data": {"from": "Currency", "to": "Eosio", "Quantity": "20
            .0000 CUR ","Memo": "My Transfer"}, "Hex_data": "0000001e4d75af460000000000ea3055400d0300000000000443555200 000000116d79206669727374207472616e73666572 "}," console ":" "," region_id ": 0," Cycle_index ": 1," data_access ": []}]," deferred_transaction_requests ": []}}

When you get information, pay attention to the location of the Eosio.

feng@feng-b250-hd3p:~/workspace/eos/build/programs/cleos$./cleos Get Table currency currency accounts
{
  " Rows: [{
      "balance": "980.0000 CUR",
      "Frozen": 0,
      "Whitelist": 1
    }
  ], "More
  ": false
}
feng@feng-b250-hd3p:~/workspace/eos/build/programs/cleos$./cleos Get Table currency Eosio accounts
{
  " Rows: [{
      "balance": "20.0000 CUR",
      "Frozen": 0,
      "Whitelist": 1
    }
  ], "More
  ": false
}
EOS block chain QQ Group, welcome everyone a lot of technical exchanges: 695283188

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.