Asteroid Protocol Docs
  • Asteroid Protocol Docs
    • Introduction
    • General overview
  • Creators/Artists
    • Getting started for creators/artists
    • Creating your first inscription
    • Creating a collection with the launchpad
    • Creating a token (CFT-20)
    • Join the Asteroid community
  • Collectors
    • Getting started for collectors
  • Developers
    • Getting started for devs
    • The Cosmos Inscriptions Specification
    • Cosmos Fungible Token (CFT-20) Standard
    • Deploy, mint, transfer, trade or bridge CFT-20 tokens
    • Asteroid Protocol API
    • Command line tool
    • Ideas to build on Asteroid Protocol
    • Multisig wallets
    • Enable support for your bridged tokens on Astroport.fi
    • NFT spec
    • Migrating an inscription into a collection
  • References
    • Logo and brand assets
    • Frequently Asked Questions (FAQs)
    • Asteroid timeline
    • Important links
    • Terminology
Powered by GitBook
On this page
  • Installation
  • Inscribe multiple inscriptions
  1. Developers

Command line tool

PreviousAsteroid Protocol APINextIdeas to build on Asteroid Protocol

Last updated 9 months ago

Installation

  1. Make sure you have installed

  2. Install Asteroid Protocol CLI from

    npm i @asteroid-protocol/sdk
  3. Setup account - create asteroid.json file and update account1 mnemonic to your account

    {
        "accounts": {
            "account1": {
                "mnemonic": ""
            }
        }
    }

Inscribe multiple inscriptions

Create multiple standalone inscriptions or add multiple inscriptions to a collection, see example of the required csv format and folder structure

  1. Create folder

  2. Add metadata.csv and images

  3. Run command inscribe-csv command in the folder

    Standalone inscriptions command:

    npx asteroid inscription inscribe-csv -p ./metadata.csv --account account1 --network mainnet

Collection inscriptions:

npx asteroid inscription inscribe-csv -c $collectionHash -p ./metadata.csv --account account1 --network mainnet
Node.js
https://www.npmjs.com/package/@asteroid-protocol/sdk
here