How to interact with EOS smart contract with Cleos and Scatter

Introduction BlockPass:

1. Clone + build BlockPass Smart Contract:

2. Deploy BlockPass Smart Contract:

cleos -u {eos_api_endpoint} set contract {contract_name} {path_to_eos_blockpass} -p {account_name}@active

3. Interact with BlockPass Smart Contract:

add method
del method

Use Cleos:

cleos -u https://api-kylin.eosasia.one push action trongdthdapp add ‘{“owner”: “trongdthdapp”, “data”: “”, “timestamp”: 1561449436}’ -p trongdthdapp@active

Use Scatter:

Choose Scatter
Log into `trongdthdapp` successfully
  • Search trongdthdapp account and choose Contractthen. You will see something like this
Contract `trongdthdapp`
  • Choose Actions and fill your data in add method and press Push Transaction
Fill data to add method
  1. https://developers.eos.io/eosio-cleos/docs
  2. https://www.eosdocs.io/resources/apiendpoints/

--

--

I’m a peaceful person who wants to make friend with people around the world.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Trong Dinh Thai Hoang

Trong Dinh Thai Hoang

39 Followers

I’m a peaceful person who wants to make friend with people around the world.