AI Network
  • What is AI Network
  • AIN Blockchain
    • Architecture
      • Design Principles
      • Event-driven Architectures
      • Blockchain Database
        • States
          • State Types
          • Operations
          • Predefined Structures
        • Rules and Owners
          • Rule Configs
          • Owner Configs
        • Functions
          • Built-in Functions
      • Instant Execution, and Eventual Consistency
      • Network ID and Chain ID
      • Transactions
        • Structure
        • Nonce
        • Read Concern
        • Propagation
      • Block Structure
      • Account and Keys
      • Consensus
      • Scalability
      • Apps
    • Developer Guide
      • Quick Start
      • AI Network Products
        • AI Network Worker
        • AI Network Insight
        • Testnet Server Node
        • Ainize Trigger
          • Project user
          • Project deployer
          • Why do we have to use Ainize Trigger?
      • Token Bridge
      • Trouble Shooting
    • Developer Reference
      • Blockchain API
        • JSON RPC API
        • Node Client API
      • Blockchain SDK
        • ain-js
        • ain-py
      • Validators
    • Staking
  • AIN DAO
    • What is AIN DAO
      • Runo (Run Your Node)
      • GPU Sponsorship Program
    • Onboarding & Participation
    • Governance
    • Tokenomics
      • AI Network Tokenomics
      • AINFT Tokenomics
  • AI Agents
    • AINFT
    • AINFT Factory
    • AINFT Projects
      • 🍳MiniEggs
      • 🦈Baby Shark
      • 🛸Soul Fiction
      • 🎻NFT Classics Society
    • Developer Reference
      • Ainft-Js
      • AINFT tutorial
        • Create AINFT object and Mint
        • Transfer AINFT
        • Set metadata of AINFT
        • Search and Retrieve AINFT
  • AIN Wallet
    • What is AIN Wallet?
    • AIN Wallet API
  • PROPOSAL DOCUMENTS
    • AIN Improvement Memos (AIMs)
    • AIN Improvement Proposals (AIPs)
Powered by GitBook
On this page
  • Reserved Characters in Paths
  • Pre-defined Paths in Database

Was this helpful?

  1. AIN Blockchain
  2. Architecture
  3. Blockchain Database
  4. States

Predefined Structures

Reserved Characters in Paths

In data paths, the following characters are reserved:

Characters

Purpose

Example

/

Reserved for path separator

/apps/afan/users

.

Reserved for rule configs and owner configs

{

.write: false,

...

*

Reserved for owner configs

{

"apps": { ".owner": { "owners": {

"*": {

...

$

Reserved for path variables in rule configs

{

transfer: {

$from: {

$to: {

$key: {

value: {

.write: ...

{, }

Reserved for variables in built-in function paths

/transfer/{from}/{to}/{key}/value

#, [, ], <ASCII control characters 0-31 or 127>

Reserved for other purposes in the future

-

Pre-defined Paths in Database

The following pre-defined paths are used in the blockchain database:

Path

Purpose

/accounts/$address/balance

Account balance

/accounts/$address/nonce

Account nonce

/apps

Applications

/consensus

Consensus

/checkin

Check-in

/deposit/$service_id/$address/$deposit_id

Deposit

/deposit_accounts/$service_id/$address/$account_id

Deposit accounts

/escrow

Escrow

/payments

Payment

/sharding

Sharding

/token/name

Token name

/token/symbol

Token symbol

/token/total_supply

Token total supply

/transfer/$from/$to/$key/value

Transfer

/withdraw/$service_id/$address/$withdraw_id

Withdraw

Owner configs and rule configs are stored in separate places in the database.

PreviousOperationsNextRules and Owners

Last updated 4 years ago

Was this helpful?