Babylon Alphanet v0 API (0.1.0)

Download OpenAPI specification:Download

Status

To query network configuration and status.

Get Network Configuration

Returns the network's configuration

Responses
200

Network Configuration

500

Server error

post/status/network-configuration
Response samples
application/json
{
  • "version": {
    },
  • "network": "mainnet",
  • "network_hrp_suffix": "string",
  • "well_known_addresses": {
    }
}

Transaction Endpoints

To submit transactions to the network, or read information about them.

Transaction Submit

Request
Request Body schema: application/json
required
notarized_transaction_hex
required
string

A hex-encoded, compiled notarized transaction.

Responses
200

Transaction submit response

400

Client error

500

Server error

post/transaction/submit
Request samples
application/json
{
  • "notarized_transaction_hex": "string"
}
Response samples
application/json
{
  • "duplicate": true
}

Read Transaction Status

Request
Request Body schema: application/json
required
intent_hash
required
string = 66 characters

A hex-encoded transaction intent hash. SHA256(SHA256(compiled_transaction_intent))

Responses
200

Transaction status response

400

Client error

500

Server error

post/transaction/status
Request samples
application/json
{
  • "intent_hash": "stringstringstringstringstringstringstringstringstringstringstring"
}
Response samples
application/json
{
  • "intent_status": "CommittedSuccess",
  • "known_payloads": [
    ]
}

Read Committed Transaction

Request
Request Body schema: application/json
required
intent_hash
required
string = 66 characters

A hex-encoded transaction intent hash. SHA256(SHA256(compiled_transaction_intent))

Responses
200

Committed transaction found response

400

Client error

404

Committed transaction not found response

500

Server error

post/transaction/receipt
Request samples
application/json
{
  • "intent_hash": "stringstringstringstringstringstringstringstringstringstringstring"
}
Response samples
application/json
{
  • "committed": {
    }
}

Ledger State Endpoints

To query the current ledger state.

Read Current Epoch

Responses
200

Current state response

400

Client error

500

Server error

post/state/epoch
Response samples
application/json
{
  • "epoch": 10000000000
}

Read component data

Request
Request Body schema: application/json
required
component_address
required
string

The Bech32m-encoded human readable version of the component's global address

Responses
200

Current state response

400

Client error

404

Not found error

500

Server error

post/state/component
Request samples
application/json
{
  • "component_address": "string"
}
Response samples
application/json
{
  • "info": {
    },
  • "state": {
    },
  • "owned_vaults": [
    ],
  • "descendent_ids": [
    ]
}

Read resource data

Request
Request Body schema: application/json
required
resource_address
required
string

The Bech32m-encoded human readable version of the resource's global address

Responses
200

Current state response

400

Client error

404

Not found error

500

Server error

post/state/resource
Request samples
application/json
{
  • "resource_address": "string"
}
Response samples
application/json
{
  • "manager": {
    }
}

Read non-fungible data

Request
Request Body schema: application/json
required
resource_address
required
string

The Bech32m-encoded human readable version of the resource's global address

non_fungible_id_hex
required
string

The hex-encoded non-fungible id

Responses
200

Current state response

400

Client error

404

Not found error

500

Server error

post/state/non-fungible
Request samples
application/json
{
  • "resource_address": "string",
  • "non_fungible_id_hex": "string"
}
Response samples
application/json
{
  • "non_fungible": {
    }
}

Read package data

Request
Request Body schema: application/json
required
package_address
required
string

The Bech32m-encoded human readable version of the package's global address

Responses
200

Current state response

400

Client error

404

Not found error

500

Server error

post/state/package
Request samples
application/json
{
  • "package_address": "string"
}
Response samples
application/json
{
  • "package": {
    }
}