Difference between revisions of "Blockchain Messages Format and Schemae"

From OIP Wiki
Jump to: navigation, search
(Artifact Publish)
(Move to separate page)
Line 19: Line 19:
  
 
=== Artifact Edit ===
 
=== Artifact Edit ===
<pre>
+
You can view the schema information for Artifact Edits here: [[Artifact Edit Message Format]]
{
+
 
"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"
 
}
 
</pre>
 
 
=== Artifact Transfer ===
 
=== Artifact Transfer ===
 
<pre>
 
<pre>

Revision as of 02:10, 28 November 2017

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

You can find the Artifact Publish Schema here: Artifact Publish Message Format

Artifact Edit

You can view the schema information for Artifact Edits here: Artifact Edit Message Format

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