Skip to content

Latest commit

 

History

History
60 lines (40 loc) · 1.73 KB

IPFSGatewayApi.md

File metadata and controls

60 lines (40 loc) · 1.73 KB

blockfrost.api.IPFSGatewayApi

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
ipfsGatewayIPFSPathGet GET /ipfs/gateway/{IPFS_path} Relay to an IPFS gateway

ipfsGatewayIPFSPathGet

ipfsGatewayIPFSPathGet(iPFSPath)

Relay to an IPFS gateway

Retrieve an object from the IPFS gateway (useful if you do not want to rely on a public gateway, such as ipfs.blockfrost.dev).

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().getIPFSGatewayApi();
final String iPFSPath = iPFSPath_example; // String | 

try {
    api.ipfsGatewayIPFSPathGet(iPFSPath);
} catch on DioError (e) {
    print('Exception when calling IPFSGatewayApi->ipfsGatewayIPFSPathGet: $e\n');
}

Parameters

Name Type Description Notes
iPFSPath String

Return type

void (empty response body)

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]