Start infra-keychain and infra-node

NOTE - You can skip this step and use the InfraBlockchain-Antelope testnet instead of a local testnet

Step 1: Boot Node and Wallet

Step 1.1: Start infra-keychain

First let us start infra-keychain:

infra-keychain &

You should see some output that looks like this:

info  2018-11-26T06:54:24.789 thread-0  wallet_plugin.cpp:42          plugin_initialize    ] initializing wallet plugin
info  2018-11-26T06:54:24.795 thread-0  http_plugin.cpp:554           add_handler          ] add api url: /v1/keosd/stop
info  2018-11-26T06:54:24.796 thread-0  wallet_api_plugin.cpp:73      plugin_startup       ] starting wallet_api_plugin
info  2018-11-26T06:54:24.796 thread-0  http_plugin.cpp:554           add_handler          ] add api url: /v1/wallet/create
info  2018-11-26T06:54:24.796 thread-0  http_plugin.cpp:554           add_handler          ] add api url: /v1/wallet/create_key
info  2018-11-26T06:54:24.796 thread-0  http_plugin.cpp:554           add_handler          ] add api url: /v1/wallet/get_public_keys

Press enter to continue

Step 1.2: Start infra-node

Start infra-node now:

These settings accomplish the following:

  1. Run infra-node. This command loads all the basic plugins, set the server address, enable CORS and add some contract debugging and logging.

  2. Enable CORS with no restrictions (*) and development logging

Troubleshooting

If in the previous step, after starting infra-node, you see an error message similar to "Database dirty flag set (likely due to unclean shutdown): replay required" try to start infra-node with --replay-blockchain. More details on troubleshooting infra-node

Step 2: Check the installation

Step 2.1: Check that infra-node is Producing Blocks

Run the following command

You should see some output in the console that looks like this:

Press ctrl + c to close the log

Step 2.2: Check the Wallet

Open the shell and run the infra-cli command to list available wallets. We will talk more about wallets in the future. For now, we need to validate the installation and see that the command line client infra-cli is working as intended.

You should see a response with an empty list of wallets:

From this point forward, you'll be executing commands from your local system (Linux or Mac)

Step 2.3: Check infra-node endpoints

This will check that the RPC API is working correctly, pick one.

  1. Check the get_info endpoint provided by the chain_api_plugin in your browser: http://localhost:8888/v1/chain/get_info

  2. Check the same thing, but in the console on your host machine

What's Next?

  • Create Test Accounts: Learn how to create test accounts in the InfraBlockchain-Antelope along with troubleshooting steps.

Last updated