code: async function maybeApi ({ apiAddress, apiOpts, ipfsConnectionTest, IpfsApi }) {
    try {
      const ipfs = new IpfsApi(apiAddress, apiOpts)
      await ipfsConnectionTest(ipfs)
      return { ipfs, provider, apiAddress }
    } catch (error) {
      console.log('Failed to connect to ipfs-api', apiAddress)
    }
  }
docs: Helper to construct and test an api client. Returns an js-ipfs-api instance or null