Blockchain Messages Format and Schemae

From OIP Wiki
Revision as of 02:07, 28 November 2017 by OstlerDev (talk | contribs) (Register Publisher)
Jump to: navigation, search

Registration Messages

Register Publisher

You can view information about the Register Publish Schema here Publisher Registration Message Format

Register Promoter

Register Autominer

Register Autominer Pool

Register Retailer

Artifact Messages

Artifact Publish

{

"oip-041":{
"artifact":{
"publisher": "string",
"timestamp": 10 digit int,
"type": "string",
"info":{
"title": "string",
"description": "string",
"year": 4 digit int,
"extraInfo":{
"artist": "string",
"company": "string",
"tags":[
"string",
"string"
]
}
},
"payment":{
"fiat": "string",
"scale": int,
"sugTip":[
int,
int,
int
],
"addresses": {
"three letter string":"string",
"three letter string":"string"
},
"tokens": {
"STRING": int,
"STRING": int
}
},
"storage":{
"network": "string",
"location": "string,
"files":[
{
"disBuy": boolean,
"disPlay": boolean,
"dName": "string",
"duration": int,
"fName": "string",
"fSize": int,
"sugPlay": "int",
"minPlay": "int",
"sugBuy": "int",
"minBuy": "int",
"disPer": "int",
"promo": "int",
"retail": "int",
"ptpFT": int,
"ptpDT": int,
"ptpDA": int,
"type": "string",
"tokenlyID": "string"
}
},
"signature": "string"
}

}

Artifact Edit

{
	"oip-041":{
		"editArtifact":{
			"txid":"$artifactID",
			"timestamp":1234567890,
			"patch":{
				"add":[
					{
					"path":"/payment/tokens/mtcproducer",
					"value":""
					}
				],
				"replace":[
					{
					"path":"/storage/files/3/fname",
					"value":"birthdayepFirst.jpg"
					},
					{
					"path":"/storage/files/3/dname",
					"value":"Cover Art 2"
					},
					{
					"path":"/info/title",
					"value":"Happy Birthday"
					},
					{
					"path":"/timestamp",
					"value":1481420001
					}
				],
				"remove":[
					{
					"path":"/payment/tokens/mtmproducer"
					},
					{
					"path":"/storage/files/0/sugBuy"
					}
				]
			}
		}
	},
	"signature":"$txid-$MD5HashOfPatch-$timestamp"
}

Artifact Transfer

{
	"oip-041":{
		"transferArtifact":{
			"txid":"$artifactID",
			"to":"$newPublisherAddress",
			"from":"$oldPublisherAddress",
			"timestamp":1234567890
		},
	"signature":"$artifactID-$newPublisherAddress-$oldPublisherAddress-$timestamp"
	}
}

Artifact Deactivate

{
	"oip-041":{
		"deactivateArtifact":{
			"txid":"$artifactID",
			"timestamp":1234567890
		},
	"signature":"$txid-$publisher-$timestamp"
	}
}

Historian Messages

Historian Datapoint

Historian Summary