Custom IPFS gateway
See Taquito docs => Using a custom Metadata Provider.
// The constructor of the `MetadataProvider` class takes a `Map<string, Handler>` as a parameter.
const customHandler = new Map<string, Handler>([
['ipfs', new IpfsHttpHandler('gateway.ipfs.io')], // Constructor of IpfsHttpHandler takes an optional gateway
['http', 'customHttpHandler'], // Custom HTTP(S) handler
['https', 'customHttpHandler'],
['tezos-storage', new TezosStorageHandler()],
]);
Our gateway: http://65.21.161.237:8546
Edited by Peter Smolinský