🌐
littlefish Research Hub
  • littlefish Research
    • The Bleeding Edge of Organizations
    • Decentralized Autonomous Organizations (DAOs)
  • Cardano Ecosystem
    • Cardano Wallets
      • Seed Phrase Security
    • Cardano DAO Tools
      • Governance
      • Smart Contract Development
      • Treasury Management and Payment Tools
      • Token Creation and Management
      • Membership and Reputation
    • Cardano Decentralized Finance Tools
    • Cardano Cross-Chain Solutions
      • Cardano Cross-Chain Report
    • The Tools of Project Catalyst
  • The Ocean - beyond Cardano
    • DAO Case Studies
      • Balancer DAO Research
      • 1INCH DAO
      • Illuvium DAO Research
      • Lido DAO
      • Aave DAO
      • MakerDAO
      • Bankless DAO
      • Compound DAO
      • Decentraland DAO
      • Uniswap DAO
    • Tools of the Ocean Report
  • DAO Tools
    • Governance
    • Smart Contract Development
    • Treasury Management and Payments Tools
    • Membership and Reputation
    • Token Creation and Management
  • Remote Work Tools
    • Content Generation Tools
    • Collaboration Tools
    • Dev Tools
    • Publication Tools
    • Social Media Tools
    • Communication Tools
    • Miscellaneous
  • How we operate at littlefish Foundation
    • How We Do Things at littlefish Foundation
    • Action
    • Contributor Guideline
    • littlefish Tools of Work
    • Document Guide
    • Document Quality Levels
  • Blockchains and Law
    • Metaverse Unleashed: Exploring the Future of Digital Interaction and Collaboration
    • Decoding the Digital Frontier: Exploring the Intersection of Intellectual Property and Blockchain
    • Beyond the Hype: The Legal Weight of Crypto-Asset White Papers Across Jurisdictions
    • Regulatory Puzzles in the Digital Era: Assessing Global AML/KYC Standards in the Crypto Sphere
    • Taxation of Crypto Assets
    • The ICO Phenomenon: Legal Perspectives on Crypto Crowdfunding
    • Legal Status of the Data Stored in Blockchains
    • Legal Status of Real World Asset Backed Tokens and Coins
    • Legal Framework for Tokens and Coins
    • In Blockchain We Trust: The Legal Paradigm of Smart Contracts Across Borders
    • A New Dawn for Corporations in the Age of Digitalization: DAOs
    • LEGAL STATUS AND TAXATION OF EARNING THROUGH PROJECT CATALYST
    • Changing Paradigm of NFTs: LFF Action NFT
  • All Docs
    • Ocean Technologies Docs
    • Cardano Wallets
      • Vespr
      • Lace
      • CardWallet
      • Eternl
      • Flint Wallet
      • GameChanger
      • GeroWallet
      • Nami
      • NuFi Wallet
      • RayWallet
      • Typhon
      • Yoroi
    • DAO Tools
      • Cardano
        • Paideia
        • Crystal
        • Clarity Protocol
        • Summon Platform
        • Voteaire
        • Agora Protocol
        • TosiDrop
        • DripDropz
        • Mercurychat.io
        • Bro Clan
        • Round Table
      • Other Chains
        • Why SourceCred Failed
        • Chromia Notes
        • Coti
        • Kleoverse
        • Wonderverse
        • Clarity Project Management Tool
        • Charmverse
        • Swae
        • Ensuro
        • Coordinape - App for Action Rewarding
    • Cardano DeFi
      • Indigo Protocol
      • Liqwid
      • Djed
    • What is Cross-Chain
      • Blockchain Bridges
        • Milkomeda
        • MicroChains Network
        • Milkomeda Protocol
        • Wanchain
        • Celer and NuFi Bridges
      • Blockchain Oracles
        • Charli3
        • Orcfax and Chainlink Oracles
      • Atomic Swaps and Atomic Swap on Cardano
      • Sidechains
    • Remote Work Tools
      • Loom
      • Loomio
      • Littlefish Tools of Work
      • How To Use Obsidian at the Littlefish Foundation
      • How To - Writing for the Vault
      • Cloning and Forking “The Vault” Repository
      • A Guide to Using the Multi-Server Chat Bot
      • How to use ComBot
      • Helper.gg - How to
      • Building Bridges Between Discord Communities
      • Noty.ai
      • Fireflies.ai
      • Otter.ai
      • Syncing Time Zone on Discord
      • Recurring Events on Discord with Apollo Bot
      • Improving Discord: A Guide for DAOs and DAO members
      • Bookmark Bot
      • Guide - Managing Discord Overwhelm
      • Discord Server Analytics
      • Discord Notification Settings
      • Guide - littlefish Discord Notifications
      • Discord Hazelnet Bot
      • Docusaurus
      • Obsidian-Github Integration in Windows
      • Buttondown Email Newsletters
      • Fliki
      • Murf.ai
      • Steve AI
      • Bubble
      • Copy.ai - AI content generator
      • Jasper AI
      • Penelope AI
      • WriteSonic
      • AI-Lawyer
      • GENERATIVE PRE-TRAINED TRANSFORMER (ChatGPT)
      • Iris.AI
      • Basics of Miro
      • Manage Miro Boards
      • Miro Tips and Tricks
      • Ready to use Metaverses for Community Gatherings
      • Zoom Best Practices
      • How to Use lettucemeet
      • Install Git for Windows
      • AgoraPulse- a social media management tool.
      • Buffer
      • Eclincher
      • Hootsuite - Social Media Management Tool
      • Sendible - Social Media Management Made Easy
      • SocialPilot
      • Sproutsocial Review
      • Sobol
      • Notion
      • Crowdcast
      • Mirror
      • Tally
      • Discourse
      • Gitbook
      • Zapier
    • Littlefish Tools
      • Cardano Node Setup
      • Cardano-CLI Guide
  • Littlefish Open Source
    • Open Source NFT & Wallet Auth Framework for Cardano
      • Requirements
        • Setting Up Your Development Environment
        • Installing Node.js
      • Installation
      • How to change front page?
      • Milestones
        • Milestone 1
        • Milestone 3 Security Review
        • Milestone 3 Test Review
Powered by GitBook
On this page
  • Setup on Linux
  • Setup on MacOS
  • Updating the Cardano Node
  • Node Settings and Node Running
  • Note:
Export as PDF
  1. All Docs
  2. Littlefish Tools

Cardano Node Setup

All the different ways of node setup can be found on https://github.com/input-output-hk/cardano-node. On this documentation installing with executables will be explained on Linux and MacOS, Windows setup will be added in the future.

Setup on Linux

Downloading the Executables.

Download from the link above the executables for linux and extract the directory in your preferred location.

Adding Path

In order to run the cardano-node and cardano-cli commands you need to add path of your cardano node directory. Edit ~/.bashrc with sudo privileges and append export PATH="$PATH:/path-to/cardano-node and restart your terminal.

Setup on MacOS

Downloading the Executables.

Download from the link above the executables for MacOS(cardano-node 1.35.4 macOS binaries are currently cannot be downloaded, when you try to get it, linux version is downloaded) and extract the directory in your preferred location.

Adding Path

edit /etc/paths with sudo privileges and append /path-to/cardano-node. and restart your terminal.

After these steps on both operating systems run on of the commands:

cardano-node --version
cardano-cli --version

in order to check if the cardano-node and cardano-cli is installed and also you can see the version you have.

Updating the Cardano Node

For both operating systems, download the latest cardano-node binaries from https://github.com/input-output-hk/cardano-node/releases and replace the older node with the downloaded one, if the path to the node is unchanged, the adding path step is not needed.

Node Settings and Node Running

The most up to date configuration files can be found on https://github.com/input-output-hk/cardano-world.

We need to clone this directory to our computer.

If you check the /cardano-world/docs/environments/ directory you can see you can run mainnet or different testnets. Choose which one you want to run and edit the command above accordingly and your node will be running.

Testnet

Running testnet can be very useful. You can test your apps and smart contracts without the risk of losing real money and running testnet requires much less resources than mainnet. A computer with 4 GB of ram is enough to run it.

There are three different testnets we can run; testnet, preprod and preview. We will have the instructions to run preprod testnet here because it is widespread but you can also setup the other nodes with the instructions.

Running the node

To run the node we need to create a new directory which is usually called db. The command below is used to run the node and we need to add cardano-world and db paths like shown below.

cardano-node run \
--topology /path-to/cardano-world/docs/environments/<prefered-node-to-run>/topology.json \
--database-path /path-to/db \
--socket-path /path-to/db/node.socket \
--host-addr 0.0.0.0 \
--port 3001 \
--config /path-to/cardano-world/docs/environments/<prefered-node-to-run>/config.json

The preferred-node-to-run is what you want to run ie. preprod, preview.

When you run the node, check the db directory and you will see a file called protocolMagicId. There will be a number inside it, that number is essential for us testnet runners because when we use cardano-cli with the testnets that magic number will be used in almost all command.

Mainnet

Running mainnet requires a lot of resources. We need at least 16 GB of ram, and a drive bigger than 100 GB which should be a solid state drive(SSD). This is where you actually interact with the Cardano blockchain.

Running the Node

To run the node we need to create a new directory which is usually called db. The command below is used to run the node and we need to add cardano-world and db paths like shown below. If you also run a testnet on your computer, they all need their own db directories.

cardano-node run \
--topology /path-to/cardano-world/docs/environments/mainnet/topology.json \
--database-path /path-to/db \
--socket-path /path-to/db/node.socket \
--host-addr 0.0.0.0 \
--port 3001 \
--config /path-to/cardano-world/docs/environments/mainnet/config.json

Note:

If your node has a problem like it does not start or stop sync at some point, firstly try to run git pull command in your cardano-world directory to get any latest change for the configuration files and if it does not fix the issue check if there is an update for cardano-node in https://github.com/input-output-hk/cardano-node.

You can create your wallets, build transactions, mint tokens on your terminal with cardano-cli if you are running your own node. The guide of cardano-cli can be found on: [[Cardano-CLI Guide]]

PreviousLittlefish ToolsNextCardano-CLI Guide

Last updated 1 year ago