Configures connections to IPFS for metadata retrieval. This is used as a part of DappetizerConfigUsingDb.

Example

Sample usage (all properties specified explicitly) within dappetizer.config.ts file:

import { DappetizerConfigUsingDb } from '@tezos-dappetizer/database';

const config: DappetizerConfigUsingDb = {
ipfs: {
gateways: ['https://ipfs.io/', 'https://cloudflare-ipfs.com/'],
timeoutMillis: 100_000,
},
... // Other config parts.
};

export default config;

Hierarchy

  • IpfsDappetizerConfig

Properties

gateways?: NonEmptyArray<string>

The IPFS gateways that are requested at the same time. Then the fastest response is used.

Limits

A non-empty array of absolute URLs.

Default

['https://ipfs.io/', 'https://cloudflare-ipfs.com/']

timeoutMillis?: number

The timeout for IPFS requests in milliseconds.

Limits

An integer with minimum 1.

Default

100_000 (100 seconds)

Generated using TypeDoc