Search…
JSON Standard for P-Rep Detailed Information

Intended Audience

We recommend all P-Rep candidates to go through this guideline and submit this JSON Standard to provide the detailed information to ICONist.

JSON Standard for Public Representative Detailed Information

This is the JSON standard for detailed information about the P-Rep. P-Rep can submit the url of detailed information via the registerPRep and setPRep action on the ICON Blockchain. We strongly recommend that you register this information.
1
{
2
"representative": {
3
"logo": {
4
"logo_256": "https://icon.foundation/img/img-256.png",
5
"logo_1024": "https://icon.foundation/img/img-1024.png",
6
"logo_svg": "https://icon.foundation/img/img-logo.svg"
7
},
8
"media": {
9
"steemit": "",
10
"twitter": "",
11
"youtube": "",
12
"facebook": "",
13
"github": "",
14
"reddit": "",
15
"keybase": "",
16
"telegram": "",
17
"wechat": ""
18
}
19
},
20
"server": {
21
"location": {
22
"country": "",
23
"city": ""
24
},
25
"server_type": "",
26
"api_endpoint": ""
27
}
28
}
Copied!
    representative: Basic information of Public Representative
      logo: Logo images of P-Rep
        logo_256: image 256x256px
        logo_1024: image 1024x1024px
        logo_sgv: image svg
      media: URL and username of social media
        steemit: Steemit URL
        twitter: Twitter URL
        youtube: Youtube URL
        Facebook: Facebook URL
        github: Github URL
        reddit: Raddit URL
        keybase: Username
        telegram: Username
        wechat: Username
    server: Server information of Public Representative
      location: Server location
        country: Node country code in accordance to ISO 3166-1 alpha-2
        city: Node city in human readable format
      server_type: Type of server ‘cloud, on-premise, hybrid’
      api_endpoint: HTTP endpoint http://host:port

How to use

Create a JSON file and upload it to your domain server. When you call the registerPRep or setPRep function, input the url of this file into the details field.

Example

1
{
2
"representative": {
3
"logo": {
4
"logo_256": "https://icon.foundation/img/img-256.png",
5
"logo_1024": "https://icon.foundation/img/img-1024.png",
6
"logo_svg": "https://icon.foundation/img/img-logo.svg"
7
},
8
"media": {
9
"steemit": "https://steemit.com/@iconproject",
10
"twitter": "https://twitter.com/iconproject",
11
"youtube": "https://www.youtube.com/channel/iconproject",
12
"facebook": "https://www.facebook.com/iconproject",
13
"github": "https://github.com/iconproject",
14
"reddit": "https://www.reddit.com/user/iconproject",
15
"keybase": "@iconproject",
16
"telegram": "@iconproject",
17
"wechat": "@iconproject"
18
},
19
},
20
"server": {
21
"location": {
22
"country": "KOR",
23
"city": "Seoul"
24
},
25
"server_type": "on-premise",
26
"api_endpoint": ""
27
},
28
}
Copied!

References

License

This project follows the Apache 2.0 License. Please refer to LICENSE for details.
Last modified 4mo ago