RPC Commands - reddcoin-project/reddcoin GitHub Wiki

ReddID System RPC Commands

Introduction

The Reddcoin Identity System (ReddID) is a comprehensive digital identity framework built on the Reddcoin blockchain. It provides a hierarchical structure for digital identities, social connections, and reputation metrics. This documentation covers the RPC (Remote Procedure Call) commands available for interacting with various components of the ReddID system.

System Architecture

The ReddID system consists of several interconnected components:

  1. Namespaces - Top-level domains within the ReddID system (e.g., "redd", "crypto")
  2. User IDs - Individual identifiers within namespaces (e.g., "alice.redd", "bob.crypto")
  3. Profiles - User information and social connections associated with identities
  4. Reputation - Metrics tracking user trustworthiness and activity

All these components are accessed through an auction-based system, which ensures fair distribution of valuable digital identities while preventing squatting and providing economic incentives for the network.

Command Categories

The RPC commands are organized into four main categories:

Commands for managing namespaces, including:

  • Creating and participating in namespace auctions
  • Retrieving namespace information
  • Configuring namespace parameters
  • Transferring and renewing namespaces

Commands for managing user IDs within namespaces, including:

  • Creating and participating in user ID auctions
  • Retrieving user ID information
  • Transferring and renewing user IDs

Commands for managing social connections between users, including:

  • Creating, updating, and removing connections
  • Retrieving connection information

Commands for managing user reputation, including:

  • Retrieving reputation information and history
  • Calculating and updating reputation metrics

Using RPC Commands

RPC commands can be used in two primary ways:

Command Line Interface

Using the Reddcoin command-line client:

reddcoin-cli <command> [parameters]

Example:

reddcoin-cli getnamespacelist

JSON-RPC API

Using HTTP requests to the Reddcoin daemon:

curl --user rpcuser:rpcpassword --data-binary '{"jsonrpc":"1.0","id":"curltest","method":"<command>","params":[<parameters>]}' -H 'content-type:text/plain;' http://127.0.0.1:45443/

Example:

curl --user rpcuser:rpcpassword --data-binary '{"jsonrpc":"1.0","id":"curltest","method":"getnamespacelist","params":[]}' -H 'content-type:text/plain;' http://127.0.0.1:45443/

Getting Started

If you're new to the ReddID system, here are some recommended commands to start with:

  1. getnamespacelist - View all available namespaces
  2. getnamespaceauctionlist - See ongoing namespace auctions
  3. getuserauctionlist - See ongoing user ID auctions
  4. getuserreputation - Check a user's reputation

For more detailed information on each command, refer to the specific category documentation linked above.

Additional Resources

⚠️ **GitHub.com Fallback** ⚠️