Skip to content
LogoLogo

IpfsRemoteStore

Store the signed DDO on IPFS.

Usage

const  = new ({ 
  : 'http://127.0.0.1:5001/api/v0/add'
}) 

Parameters

options

  • Type: IpfsRemoteStoreOptions
OptionTypePurpose
uploadUrlstringThe Kubo RPC add endpoint. Required.
headersRecord<string, string>For an authenticated gateway.
extractCid(response: unknown) => string | undefinedOverride CID extraction. Defaults to Hash/cid/Cid/IpfsHash/hash.
fetchImpltypeof fetchInject a custom fetch.

Produces an { type: 'ipfs', hash } pointer. See remote stores.