Skip to content

Instantly share code, notes, and snippets.

@oed
Created May 3, 2019 09:02
Show Gist options
  • Select an option

  • Save oed/ffa8d514524954a5fb49377dfaee38f4 to your computer and use it in GitHub Desktop.

Select an option

Save oed/ffa8d514524954a5fb49377dfaee38f4 to your computer and use it in GitHub Desktop.
// Set the public app profile data
livepeerSpace.public.set('defaultProfile', 'livepeer')
livepeerSpace.public.set('name', 'yourname')
const imageObject = [{
"@type":"ImageObject",
"contentUrl": "<https://ipfs.infura.io/ipfs/><ipfs-hash-of-image>",
"cid": {"/":"<ipfs-hash-of-image>"}
}]
livepeerSpace.public.set('image', imageObject)
livepeerSpace.public.set('url', '<https://yoursite.com>')
// Set the private app profile data
livepeerSpace.private.set('email', 'youremail@gmail.com')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment