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 |
GenesisContent genesisGet()
Blockchain genesis
Return the information about blockchain genesis.
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');
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]