{"id":579,"date":"2023-07-15T11:34:18","date_gmt":"2023-07-15T03:34:18","guid":{"rendered":"https:\/\/www.paralism.com\/info\/docs\/paralism-node-restapi\/1-submitregistration-submit-an-uplink-request\/"},"modified":"2023-07-15T13:45:17","modified_gmt":"2023-07-15T05:45:17","slug":"1-submitregistration-submit-an-uplink-request","status":"publish","type":"docs","link":"https:\/\/www.paralism.com\/info\/docs\/paralism-node-restapi\/1-submitregistration-submit-an-uplink-request\/","title":{"rendered":"1. SubmitRegistration Submit an on-chain request"},"content":{"rendered":"\n<p>Get method (upper limit of uplink data load is 16KB)<\/p>\n\n\n\n<p>*Parameter: The content of the data chain<\/p>\n\n\n\n<p>*Example: http:\/\/127.0.0.1:8080\/SubmitRegistration?data=123456789<\/p>\n\n\n\n<p>*Return example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"queuenum\": \"4\",\n  \"requestid\": \"4wLGmMkJqxhaDxWK23TnTH8YVEy\",\n  \"state\": \"queueing\"\n}<\/code><\/pre>\n\n\n\n<p>Post mode (on-chain data load limit is 2MB)<\/p>\n\n\n\n<p>*Example: http:\/\/127.0.0.1:8080?SubmitRegistration<\/p>\n\n\n\n<p>*Return example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"queuenum\": \"4\",\n  \"requestid\": \"4wLGmMkJqxhaDxWK23TnTH8YVEy\",\n  \"state\": \"queueing\"\n}<\/code><\/pre>\n\n\n\n<p>Return value:<\/p>\n\n\n\n<p>queue, the sequence number of on-chain requests cached locally on the node. Returned when state is queuing<\/p>\n\n\n\n<p>requestid, on-chain request id, base58 encoded string<\/p>\n\n\n\n<p>state, on-chain status:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>queue, the sequence number of on-chain requests cached locally on the node. Returns when the state is queuing.<\/li>\n\n\n\n<li>onChainState, on-chain state:<\/li>\n\n\n\n<li>queuing, the on-chain request is cached locally on the node and queued in the uplink.<\/li>\n\n\n\n<li>onchaining1, the on-chain data has been added to the local consensus for constructing the sub chain.<\/li>\n\n\n\n<li>onchaining2, the on-chain data has been added to the local consensus along with the business sub chain.<\/li>\n\n\n\n<li>onchained, the on-chain data has been recognized by the global consensus and corresponding hyperblocks have been obtained in the business local chain, in mapSearchOnChain<\/li>\n\n\n\n<li>matured, mature, after 4 global consensus cycles (which can be set by MATURATY_TIME), the obtained hyperblock is not discarded by the network, indicating that the hyperblock and related local chains have successfully solidified consensus across the entire network, and the possibility of being forked and discarded again is extremely low.<\/li>\n\n\n\n<li>nonexistent, the submitted  on-chain request was not found<\/li>\n\n\n\n<li>failed, the  on-chain request submission failed<\/li>\n\n\n\n<li>unknown, an unknown problem has occurred.<\/li>\n<\/ul>\n","protected":false},"featured_media":0,"parent":578,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-579","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/docs\/579","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/comments?post=579"}],"version-history":[{"count":4,"href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/docs\/579\/revisions"}],"predecessor-version":[{"id":644,"href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/docs\/579\/revisions\/644"}],"up":[{"embeddable":true,"href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/docs\/578"}],"next":[{"title":"2. GetOnchainState queries the processing status of submitted on-chain requests","link":"https:\/\/www.paralism.com\/info\/docs\/paralism-node-restapi\/2-getonchainstate-queries-the-processing-status-of-submitted-uplink-requests\/","href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/docs\/582"}],"wp:attachment":[{"href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/media?parent=579"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/doc_tag?post=579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}