Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 1.47 KB

CardanoLedgerApi.md

File metadata and controls

57 lines (38 loc) · 1.47 KB

blockfrost.api.CardanoLedgerApi

Load the API package

import 'package:blockfrost/api.dart';

All URIs are relative to https://cardano-mainnet.blockfrost.io/api/v0

Method HTTP request Description
genesisGet GET /genesis Blockchain genesis

genesisGet

GenesisContent genesisGet()

Blockchain genesis

Return the information about blockchain genesis.

Example

import 'package:blockfrost/api.dart';
// TODO Configure API key authorization: ApiKeyAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKeyPrefix = 'Bearer';

final api = Blockfrost().getCardanoLedgerApi();

try {
    final response = api.genesisGet();
    print(response);
} catch on DioError (e) {
    print('Exception when calling CardanoLedgerApi->genesisGet: $e\n');
}

Parameters

This endpoint does not need any parameter.

Return type

GenesisContent

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]