Giter VIP home page Giter VIP logo

cardano-cli-starter-kit's Introduction

Cardano CLI Starter Kit

This starter kit shows how to execute common operations against the Cardano blockchain using the official command-line tool called cardano-cli.

Dev Environment

For running this starter kit you'll need access to a fully synced instance of a Cardano Node and the cardano-cli binary.

You don't want to install the required components yourself, you can use Demeter.run platform to create a cloud environment with access to common Cardano infrastrcuture. The following command will open this repo in a private, web-based VSCode IDE with access to a shared Cardano Node and a pre-installed binary of the cardano-cli.

Code in Cardano Workspace

Navigating the Starter Kit

This starter kit is organized as interactive documentation where you can try out the commands as you move along in each topic.

Screen Layout

The docs assume that you're reading this guide inside a Cardano Workspace, we recommend splitting your editor into two different panes, with the README on the left and the terminal on the right.

Split Screen Example

Whenever you see an example bash snippet as a step in any of the tutorials, you can copy & paste it into the embedded terminal on the right, this will give you inmediate and real feedback of each command.

Cardano Node Access

Since you're running this starter kit from a Cardano Workspace, you already have access to the required infrastrcuture, such as the Cardano Node. All the required binaries are pre-installed by default, including the cardano-cli.

The network to which you're connected (mainnet, preview, preprod, etc) is defined by your project's configuration, selected at the moment of creating your environment.

To simplify the overall process, Cardano Workspaces come already configured with specific environmental variables that allows you to connect to the node without extra step. These are the variables relevant for this particular tutorial:

  • CARDANO_NODE_SOCKET_PATH: provides the location of the unix socket within the workspace where the cardano node is listening to.
  • CARDANO_NODE_MAGIC: the network magic corresponding to the node that is connected to the workspace.

To ensure that you're connected to the node, try running the following command which outputs the current tip of the node:

cardano-cli query tip --testnet-magic $CARDANO_NODE_MAGIC

if everything worked correctly, you should see an output similar to this one:

{
    "block": 204803,
    "epoch": 51,
    "era": "Babbage",
    "hash": "e2de3e03c45787e1f20609ed5f9a71098b0cb75e52abca459db34354cab29423",
    "slot": 4454222,
    "syncProgress": "100.00"
}

Table of Contents

The following list describes the different parts of the tutorial. We recommend following them in order since each one provides instructions and resources that might be required to execute later steps.

Explains how to create signing keys and addresses that represent your account while interacting with the blockchain.

Explains how to build a simple ADA transfer transaction and submit it onto the blockhain.

Explains how to mint custom native assets and transfer those assets to other addresses.

cardano-cli-starter-kit's People

Contributors

scarmuega avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.