Schema

Schema

ℹ Schema Definitions

Includes all JSON Schema validation definitions

Members

# (static) APIPropertiesSchema :Schema

JSON Schema Specification

Type:

# (static) AssetSchema :Schema

📝 Asset Specification

Type:

# (static) ConfigSchema :Schema

🔧 Config Schema

JSON Schema of the HTTP configuration

{
  '$schema': 'http://json-schema.org/draft-07/schema',
  '$id': 'https://schemas.algodex.com/v1/Config.json',
  'type': 'object',
  'properties': {
    'algod': {
      'type': 'object',
      'properties': {
        'uri': {
          '$ref': 'https://schemas.algodex.com/v1/URI.json',
        },
        'token': {
          'type': 'string',
        },
        'port': {
          'type': 'number',
          'minimum': 1,
        },
      },
      'required': [
        'uri',
        'token',
      ],
    },
    'indexer': {
      'type': 'object',
      'properties': {
        'uri': {
          '$ref': 'https://schemas.algodex.com/v1/URI.json',
        },
        'token': {
          'type': 'string',
        },
      },
      'required': [
        'uri',
        'token',
      ],
    },
    'dexd': {
      'type': 'object',
      'properties': {
        'uri': {
          '$ref': 'https://schemas.algodex.com/v1/URI.json',
        },
        'token': {
          'type': 'string',
        },
      },
      'required': [
        'uri',
        'token',
      ],
    },
  },
  'required': ['algod', 'indexer', 'dexd'],
}
Type:

# (static) URI :Schema

🕸 URI Schema

JSON Schema of a URI

{
  '$schema': 'http://json-schema.org/draft-07/schema',
  '$id': 'https://schemas.algodex.com/v1/URI.json',
  'type': 'string',
  'format': 'uri',
}
Type:
Source:

# (static) Wallet :Schema

💰 Addresses Schema

JSON Schema of the Wallet. Used for validation in AlgodexApi#setAddresses

{
'$schema': 'http://json-schema.org/draft-07/schema',
  '$id': 'https://schemas.algodex.com/v1/Addresses.json',
  'type': 'array',
  'items': {
    '$ref': 'https://schemas.algodex.com/v1/Wallet.json',
  },
}
Type:

# (static) Wallet :Schema

💰 Wallet Schema

JSON Schema of the Wallet. Used for validation in AlgodexApi#setWallet

{
  '$schema': 'http://json-schema.org/draft-07/schema',
  '$id': 'https://schemas.algodex.com/v1/Wallet.json',
  'type': 'object',
  'properties': {
    'type': {
      'type': 'string',
      'enum': ['my-algo-wallet', 'wallet-connect', 'sdk'],
    },
    'address': {
      'type': 'string',
      'pattern': '[A-Z0-9]{58}',
      'description': 'An account public key',
    },
    'name': {
      'type': 'string',
    },
    'algo': {
      '$ref': 'https://schemas.algodex.com/v1/Asset.json',
    },
    'assets': {
      'type': 'object',
      'additionalProperties': {
        '$ref': 'https://schemas.algodex.com/v1/Asset.json',
      },
    },
  },
}
Type: