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(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
).
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');
}
Name | Type | Description | Notes |
---|---|---|---|
iPFSPath | String |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]