Glittr
  • Introduction
  • Protocol Overview
  • Contract Primitives
    • MOAs - Mint Only Assets
    • MBAs - Mint and Burn Assets
      • Vaults
    • Spec Contracts
    • Oracle Commitments
  • Building on Glittr
    • Setup
    • Faucet
    • Glittr SDK
    • Glittr Transactions
    • Glittr Contracts
    • Installing Glittr Wallet
    • Local Development Guide
  • GLIP
  • Node
    • Run a Bitcoin Node
    • Run a Glittr Node
  • Examples & Guide
    • Creating Tokens
    • Contract Custody
    • Complex Tokens
    • Vesting and Freemint Contract
    • Wrapped BTC Contract
    • USD Contract
    • Oracle Implementation Guide
    • Glittr Output Structure
    • AMM Contract
  • API Reference
    • Getting Assets API
  • APP EXAMPLES
    • Freemint App (NextJS)
    • Freemint App (React + Vite)
    • NFT App (React + Vite)
Powered by GitBook
On this page
  • Requirements
  • Installation
  • Configuration
  • Running the Node
  1. Node

Run a Glittr Node

PreviousRun a Bitcoin NodeNextCreating Tokens

Last updated 3 months ago

This guide is designed for running a Glittr Node locally.

Make sure you have access to Bitcoin RPC, read the following guide on running bitcoin node

Requirements

Install Rust toolchain ()

Installation

  1. Clone the repository

git clone https://github.com/Glittrfi/glittr-core-public
cd glittr-core-public

Checkout testnet if you want to run on testnet4. Use the main branch for local development.

  1. Build the project

cargo build --release --features helper-api

The compiled binary will be available at ./target/release/glittr

Configuration

Create a settings.yaml file in your project directory:

btc_rpc_url: http://127.0.0.1:18443
btc_rpc_username: user
btc_rpc_password: password
rocks_db_path: db_data
api_url: 127.0.0.1:3001

Configuration Options

Option
Description
Default

btc_rpc_url

Bitcoin RPC endpoint URL

http://127.0.0.1:48332

btc_rpc_username

Bitcoin RPC authentication username

-

btc_rpc_password

Bitcoin RPC authentication password

-

rocks_db_path

Local storage path for the node database

db_data

api_url

Glittr node API listening address

127.0.0.1:3001

Running the Node

Start the Glittr node:

./target/release/glittr

If you can see "Indexing block ..." then you have successfully run the Glittr node.

Run a Bitcoin Node
https://doc.rust-lang.org/cargo/getting-started/installation.html