network

Get Network Status

Method: POST

https://ada-index.nownodes.io/network/status

Body (raw)

{
  "network_identifier": {
    "blockchain": "cardano",
    "network": "mainnet",
    "sub_network_identifier": {
      "network": "1"
    }
  }
}

Response: 200

{
    "current_block_identifier": {
        "index": 9351226,
        "hash": "89cc5aa87eaffbd07587193e60e590ae14e2d060d95469eb14a831054dc9413b"
    },
    "current_block_timestamp": 1695980341000,
    "genesis_block_identifier": {
        "index": 0,
        "hash": "5f20df933584822601f9e3f8c024eb5eb252fe8cefb24d1317dc3d432e940ebb"
    },
    "peers": [
        {
            "peer_id": "relays-new.cardano-mainnet.iohk.io"
        }
    ]
}

Get Network Options

Method: POST

https://ada-index.nownodes.io/network/options

Body (raw)

{
  "network_identifier": {
    "blockchain": "cardano",
    "network": "mainnet",
    "sub_network_identifier": {
      "network": "1"
    }
  }
}

Response: 200

{
    "version": {
        "rosetta_version": "1.4.10",
        "node_version": "cardano-node 1.35.5 - linux-x86_64 - ghc-8.10\ngit rev 8762a10efe3f9f97939e3cb05edaf04250456702",
        "middleware_version": "2.1.0",
        "metadata": {}
    },
    "allow": {
        "operation_statuses": [
            {
                "status": "success",
                "successful": true
            },
            {
                "status": "invalid",
                "successful": false
            }
        ],
        "operation_types": [
            "input",
            "output",
            "stakeKeyRegistration",
            "stakeDelegation",
            "withdrawal",
            "stakeKeyDeregistration",
            "poolRegistration",
            "poolRegistrationWithCert",
            "poolRetirement",
            "voteRegistration"
        ],
        "errors": [
            {
                "code": 4001,
                "message": "Block not found",
                "retriable": false
            },
            {
                "code": 4002,
                "message": "Network not found",
                "retriable": false
            },
            {
                "code": 4003,
                "message": "Networks not found",
                "retriable": false
            },
            {
                "code": 4004,
                "message": "Invalid blockchain",
                "retriable": false
            },
            {
                "code": 4005,
                "message": "Genesis block not found",
                "retriable": false
            },
            {
                "code": 4006,
                "message": "Transaction not found",
                "retriable": false
            },
            {
                "code": 4007,
                "message": "Invalid public key format",
                "retriable": false
            },
            {
                "code": 4008,
                "message": "Transaction inputs parameters errors in operations array",
                "retriable": false
            },
            {
                "code": 4009,
                "message": "Transaction outputs parameters errors in operations array",
                "retriable": false
            },
            {
                "code": 4010,
                "message": "The transaction you are trying to build has more outputs than inputs",
                "retriable": false
            },
            {
                "code": 4011,
                "message": "Cant create signed transaction from transaction bytes",
                "retriable": false
            },
            {
                "code": 4012,
                "message": "Cant create unsigned transaction from transaction bytes",
                "retriable": false
            },
            {
                "code": 4013,
                "message": "Cant deserialize transaction input from transaction body",
                "retriable": false
            },
            {
                "code": 4014,
                "message": "Cant deserialize transaction output from transaction body",
                "retriable": false
            },
            {
                "code": 4015,
                "message": "Provided address is invalid",
                "retriable": true
            },
            {
                "code": 4016,
                "message": "Provided address type is invalid",
                "retriable": true
            },
            {
                "code": 4017,
                "message": "Invalid staking key format",
                "retriable": false
            },
            {
                "code": 4018,
                "message": "Staking key is required for this type of address",
                "retriable": false
            },
            {
                "code": 4019,
                "message": "Provided operation type is invalid",
                "retriable": true
            },
            {
                "code": 4020,
                "message": "Pool key hash is required to operate",
                "retriable": false
            },
            {
                "code": 4021,
                "message": "Assets are required for output operation token bundle",
                "retriable": false
            },
            {
                "code": 4022,
                "message": "Asset value is required for token asset",
                "retriable": false
            },
            {
                "code": 4023,
                "message": "Invalid policy id",
                "retriable": false
            },
            {
                "code": 4024,
                "message": "Invalid token name",
                "retriable": false
            },
            {
                "code": 4025,
                "message": "Provided pool key hash has invalid format",
                "retriable": false
            },
            {
                "code": 4026,
                "message": "Pool registration certificate is required for pool registration",
                "retriable": false
            },
            {
                "code": 4027,
                "message": "Invalid pool registration certificate format",
                "retriable": false
            },
            {
                "code": 4028,
                "message": "Invalid certificate type. Expected pool registration certificate",
                "retriable": false
            },
            {
                "code": 4029,
                "message": "Pool registration parameters were expected",
                "retriable": false
            },
            {
                "code": 4030,
                "message": "Pool relays are invalid",
                "retriable": false
            },
            {
                "code": 4031,
                "message": "Pool metadata is invalid",
                "retriable": false
            },
            {
                "code": 4032,
                "message": "Dns name expected for pool relay",
                "retriable": false
            },
            {
                "code": 4033,
                "message": "Invalid pool relay type received",
                "retriable": false
            },
            {
                "code": 4034,
                "message": "Invalid pool owners received",
                "retriable": false
            },
            {
                "code": 4035,
                "message": "Invalid pool registration parameters received",
                "retriable": false
            },
            {
                "code": 4036,
                "message": "Mandatory parameter is missing: Epoch",
                "retriable": false
            },
            {
                "code": 4037,
                "message": "Error when sending the transaction - OutsideValidityIntervalUTxO",
                "retriable": false
            },
            {
                "code": 5000,
                "message": "An error occurred",
                "retriable": true
            },
            {
                "code": 5001,
                "message": "Not implemented",
                "retriable": false
            },
            {
                "code": 5002,
                "message": "Address generation error",
                "retriable": false
            },
            {
                "code": 5003,
                "message": "Parse signed transaction error",
                "retriable": false
            },
            {
                "code": 5004,
                "message": "Cant create signed transaction probably because of unsigned transaction bytes",
                "retriable": false
            },
            {
                "code": 5005,
                "message": "Cant build witnesses set for transaction probably because of provided signatures",
                "retriable": false
            },
            {
                "code": 5006,
                "message": "Error when sending the transaction",
                "retriable": true
            },
            {
                "code": 5007,
                "message": "Voting nonce not valid",
                "retriable": false
            },
            {
                "code": 5008,
                "message": "Invalid voting signature",
                "retriable": false
            },
            {
                "code": 5009,
                "message": "Voting key is missing",
                "retriable": false
            },
            {
                "code": 5010,
                "message": "Voting key format is invalid",
                "retriable": false
            },
            {
                "code": 5011,
                "message": "Missing vote registration metadata",
                "retriable": false
            },
            {
                "code": 5012,
                "message": "Missing chain code",
                "retriable": false
            },
            {
                "code": 5013,
                "message": "Invalid operation status",
                "retriable": false
            },
            {
                "code": 5014,
                "message": "Given operation status and success state does not match",
                "retriable": false
            },
            {
                "code": 5015,
                "message": "Transaction hash does not match to given coin identifier",
                "retriable": false
            },
            {
                "code": 5016,
                "message": "Address and account identifier does not match",
                "retriable": false
            },
            {
                "code": 5017,
                "message": "Coin identifier has an invalid format",
                "retriable": false
            }
        ],
        "historical_balance_lookup": true,
        "call_methods": [],
        "balance_exemptions": [],
        "mempool_coins": false
    }
}

Get Network Information

Method: GET

https://ada-index.nownodes.io/v2/network/information

Response: 200

{
  "network_tip": {
    "time": "2021-12-13T12:54:34Z",
    "epoch_number": 308,
    "absolute_slot_number": 47833783,
    "slot_number": 140983
  },
  "node_era": "alonzo",
  "node_tip": {
    "height": {
      "quantity": 6622577,
      "unit": "block"
    },
    "time": "2021-12-13T12:54:24Z",
    "epoch_number": 308,
    "absolute_slot_number": 47833773,
    "slot_number": 140973
  },
  "sync_progress": {
    "status": "ready"
  },
  "next_epoch": {
    "epoch_start_time": "2021-12-16T21:44:51Z",
    "epoch_number": 309
  }
}

Last updated