How to interact with EOS smart contract with Cleos and Scatter

Introduction BlockPass:

The only password management app that stores your data on EOS blockchain. All you need to do is use BlockPass. By using your own private key, your data are safe and never lost.

1. Clone + build BlockPass Smart Contract:

I’ve committed .abi and .wasm file for you. If you want to build it, here are the following steps:

2. Deploy BlockPass Smart Contract:

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

Ex: cleos -u https://api-kylin.eosasia.one set contract trongdthdapp /Users/trong_pro/Workplace/MroomSoftware/blockpass/blockpass-smart-contract/EOS/blockpass -p trongdthdapp@active

3. Interact with BlockPass Smart Contract:

Basically, BlockPass Smart Contract has 2 main methods: add and del

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
Contract `trongdthdapp`
Fill data to add method
  1. 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