Skip to content

Latest commit

 

History

History
65 lines (60 loc) · 1.94 KB

Root.md

File metadata and controls

65 lines (60 loc) · 1.94 KB

Root

Top level schema for an account

Schema

Key Type Description
profile Metadata A profile information for the account
graph Graph The outgoing graph connections from the account
badge Badges Badges issued by the account and recipients of these badges
widget Widgets Widgets created by the account
post Posts Posts created by the account
settings Settings Settings stored by the account

Example

{
  "profile": {
    "name": "NEARCON 22 Demo Acc",
    "image": {
      "url": "https://cloudflare-ipfs.com/ipfs/QmQqzMTavQgT4f4T5v6PWBp7XNKtoPmC9jvn12WPT3gkSE"
    }
  },
  "graph": {
    "like": {
      "root.near": "",
      "mike.near": ""
    },
    "follow": {
      "mob.near": "",
      "root.near": ""
    }
  },
  "badge": {
    "whale": {
      "info": {
        "name": "Whale",
        "description": "A really whalethy user",
        "image": {
          "url": "https://upload.wikimedia.org/wikipedia/commons/e/e2/Southern_right_whale.jpg"
        }
      },
      "holder": {
        "x.near": "",
        "root.near": ""
      }
    }
  },
  "widget": {
    "HelloWorld": "return \"Hello World!\";",
    "Test": "return \"Test!\";"
  },
  "post": {
    "meme": {
      "title": "NEAR Protocol",
      "description": "Looks the same to me",
      "image": {
        "ipfs_cid": "bafkreicrp3nosvz4advbmp26dlmbjkl37gb7etztqf4gforuwxg5ofqov4"
      }
    }
  }
}