Skip to content

Go module for the Cardano Blockchain

License

Notifications You must be signed in to change notification settings

tclairet/cardano-go

This branch is 31 commits ahead of, 56 commits behind echovl/cardano-go:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3a3d794 · Sep 27, 2022

History

70 Commits
May 23, 2022
Mar 14, 2022
May 25, 2021
May 24, 2021
May 22, 2021
May 8, 2021
May 22, 2021
Aug 24, 2021
Apr 13, 2022
Apr 5, 2022
Oct 18, 2021
Oct 15, 2021
May 25, 2021
May 24, 2021
Sep 27, 2022
Sep 27, 2022
May 24, 2021
May 16, 2022
May 16, 2022
May 16, 2022
Jan 11, 2022
Apr 13, 2022
Oct 15, 2021

Repository files navigation

cardano-go

cardano-go is both a library for creating go applicactions that interact with the Cardano Blockchain as well as a CLI to manage Cardano Wallets [WIP].

Installation from source

Clone the repository using git clone

$ git clone https://github.com/echovl/cardano-wallet.git

Compile the source code and install the executable

$ make && sudo make install

Dependencies

For balance and transfer commands cardano-node and cardano-cli are required. You can install them using this guide https://docs.cardano.org/projects/cardano-node/en/latest/getting-started/install.html

Getting started

First create a new wallet and generate your mnemonic squence:

$ cardano-wallet new-wallet myWallet -p simplePassword
mnemonic: banner capital gift plate worth sand pass canvas pave decade pig borrow cruel lunar arena

If you already have a wallet you can restore it using a mnemonic and password:running this command:

$ cardano-wallet new-wallet restoredWallet -m=talent,risk,require,split,leave,script,panel,slight,entire,soap,chase,pill,grant,laugh,fringe -p simplePassword

You can inspect your wallets using the list-wallets command:

$ cardano-wallet list-wallets
ID              NAME      ADDRESS
wl_uu4FmZvNYG   myWallet  1

By default a new wallet is created with one payment address, you can create more addresses running the following command:

$ cardano-wallet new-address wl_uu4FmZvNYG
New address addr_test1vz8vyz6pk6hwgwqz239rcyk52e659aefa8g08amm80tq8ag9eng6q

To get all addresses run:

$ cardano-wallet list-address wallet_WGejugqca4 --testnet
PATH                      ADDRESS
m/1852'/1815'/0'/0/0      addr_test1vpfla0wgltpjwxzt52p7wkn720eact33udlq9z8xrc6cypc3c70f5

You can get your balance running:

$ cardano-wallet balance wallet_WGejugqca4 --testnet
ASSET                     AMOUNT
Lovelace                  1000000000

About

Go module for the Cardano Blockchain

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.5%
  • Makefile 0.5%