Using Origin.js

Origin.js is an easy-to-use libray for the Origin Protocol.

The Origin object is the base of interaction with origin.js. Other resources are members of this object. For example, origin.marketplace, origin.purchases, origin.attestations, etc.


Configuration options are passed into the Origin constructor at instantiation.

let configOptions = {
  option: 'value'
let origin = new Origin(configOptions)

Valid options:

For example, if you are running a local IPFS daemon then you could set following config options:

const configOptions = {
  ipfsDomain: '',
  ipfsApiPort: '5001',
  ipfsGatewayPort: '8080',
  ipfsGatewayProtocol: 'http'
const origin = new Origin(configOptions)