1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1321],{3905:(t,e,n)=>{n.d(e,{Zo:()=>s,kt:()=>c});var a=n(7294);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e){if(null==t)return{};var n,a,r=function(t,e){if(null==t)return{};var n,a,r={},l=Object.keys(t);for(a=0;a<l.length;a++)n=l[a],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a<l.length;a++)n=l[a],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var p=a.createContext({}),d=function(t){var e=a.useContext(p),n=e;return t&&(n="function"==typeof t?t(e):i(i({},e),t)),n},s=function(t){var e=d(t.components);return a.createElement(p.Provider,{value:e},t.children)},m="mdxType",u={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},g=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,p=t.parentName,s=o(t,["components","mdxType","originalType","parentName"]),m=d(n),g=r,c=m["".concat(p,".").concat(g)]||m[g]||u[g]||l;return n?a.createElement(c,i(i({ref:e},s),{},{components:n})):a.createElement(c,i({ref:e},s))}));function c(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,i=new Array(l);i[0]=g;var o={};for(var p in e)hasOwnProperty.call(e,p)&&(o[p]=e[p]);o.originalType=t,o[m]="string"==typeof t?t:r,i[1]=o;for(var d=2;d<l;d++)i[d]=n[d];return a.createElement.apply(null,i)}return a.createElement.apply(null,n)}g.displayName="MDXCreateElement"},5169:(t,e,n)=>{n.r(e),n.d(e,{assets:()=>s,contentTitle:()=>p,default:()=>c,frontMatter:()=>o,metadata:()=>d,toc:()=>m});var a=n(7462),r=n(3366),l=(n(7294),n(3905)),i=["components"],o={title:"Transaction Types"},p=void 0,d={unversionedId:"integrator/misc/types",id:"integrator/misc/types",title:"Transaction Types",description:"| No. | Transaction Type | Type Code | Description |",source:"@site/../docs/8.integrator/misc/types.md",sourceDirName:"8.integrator/misc",slug:"/integrator/misc/types",permalink:"/integrator/misc/types",draft:!1,editUrl:"https://github.com/elastos/Elastos.Wiki/edit/master/website/../docs/8.integrator/misc/types.md",tags:[],version:"current",lastUpdatedBy:"racollette",lastUpdatedAt:1676175778,formattedLastUpdatedAt:"Feb 12, 2023",frontMatter:{title:"Transaction Types"},sidebar:"integratorSidebar",previous:{title:"Merged Mining Guide",permalink:"/integrator/mining"},next:{title:"Structure",permalink:"/integrator/misc/structure"}},s={},m=[],u={toc:m},g="wrapper";function c(t){var e=t.components,n=(0,r.Z)(t,i);return(0,l.kt)(g,(0,a.Z)({},u,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"No."),(0,l.kt)("th",{parentName:"tr",align:null},"Transaction Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Type Code"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"0"),(0,l.kt)("td",{parentName:"tr",align:null},"Coinbase"),(0,l.kt)("td",{parentName:"tr",align:null},"0x00"),(0,l.kt)("td",{parentName:"tr",align:null},"The first transaction in the block is a Coinbase transaction, which is used to distribute miners\u2019 rewards and DPOS profits, etc.")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"1"),(0,l.kt)("td",{parentName:"tr",align:null},"RegisterAsset"),(0,l.kt)("td",{parentName:"tr",align:null},"0x01"),(0,l.kt)("td",{parentName:"tr",align:null},"RegisterAsset transaction. The main chain only supports ELA asset.")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"2"),(0,l.kt)("td",{parentName:"tr",align:null},"TransferAsset"),(0,l.kt)("td",{parentName:"tr",align:null},"0x02"),(0,l.kt)("td",{parentName:"tr",align:null},"TransferAsset transaction. Whether the output category area is a voting transaction")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"3"),(0,l.kt)("td",{parentName:"tr",align:null},"Record"),(0,l.kt)("td",{parentName:"tr",align:null},"0x03"),(0,l.kt)("td",{parentName:"tr",align:null},"Useless")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"4"),(0,l.kt)("td",{parentName:"tr",align:null},"Deploy"),(0,l.kt)("td",{parentName:"tr",align:null},"0x04"),(0,l.kt)("td",{parentName:"tr",align:null},"Useless")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"5"),(0,l.kt)("td",{parentName:"tr",align:null},"SideChainPow"),(0,l.kt)("td",{parentName:"tr",align:null},"0x05"),(0,l.kt)("td",{parentName:"tr",align:null},"SideChainPow transaction, which is used to transfer the consensus of main chain to POW side chain of block generation.")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"6"),(0,l.kt)("td",{parentName:"tr",align:null},"RechargeToSideChain"),(0,l.kt)("td",{parentName:"tr",align:null},"0x06"),(0,l.kt)("td",{parentName:"tr",align:null},"There is no such transaction in the main chain, which is defined in the main chain (cross-chain recharge transaction tx2 on the old DID chain) for keeping the same transaction type with the old DID chain.")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"7"),(0,l.kt)("td",{parentName:"tr",align:null},"WithdrawFromSideChain"),(0,l.kt)("td",{parentName:"tr",align:null},"0x07"),(0,l.kt)("td",{parentName:"tr",align:null},"Cross-chain withdrawal transaction (tx4)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"8"),(0,l.kt)("td",{parentName:"tr",align:null},"TransferCrossChainAsset"),(0,l.kt)("td",{parentName:"tr",align:null},"0x08"),(0,l.kt)("td",{parentName:"tr",align:null},"TransferCrossChainAsset transaction (tx1)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"9"),(0,l.kt)("td",{parentName:"tr",align:null},"RegisterProducer"),(0,l.kt)("td",{parentName:"tr",align:null},"0x09"),(0,l.kt)("td",{parentName:"tr",align:null},"RegisterProducer transaction")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"10"),(0,l.kt)("td",{parentName:"tr",align:null},"CancelProducer"),(0,l.kt)("td",{parentName:"tr",align:null},"0x0a"),(0,l.kt)("td",{parentName:"tr",align:null},"Transaction of canceling DPOS candidate node")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"11"),(0,l.kt)("td",{parentName:"tr",align:null},"UpdateProducer"),(0,l.kt)("td",{parentName:"tr",align:null},"0x0b"),(0,l.kt)("td",{parentName:"tr",align:null},"Transaction of updating DPOS candidate node information")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"12"),(0,l.kt)("td",{parentName:"tr",align:null},"ReturnDepositCoin"),(0,l.kt)("td",{parentName:"tr",align:null},"0x0c"),(0,l.kt)("td",{parentName:"tr",align:null},"Transaction of retrieving DPOS deposit")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"13"),(0,l.kt)("td",{parentName:"tr",align:null},"ActivateProducer"),(0,l.kt)("td",{parentName:"tr",align:null},"0x0d"),(0,l.kt)("td",{parentName:"tr",align:null},"Order-taking transaction of activating inactive or illegal\u2019s DPOS")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"14"),(0,l.kt)("td",{parentName:"tr",align:null},"IllegalProposalEvidence"),(0,l.kt)("td",{parentName:"tr",align:null},"0x0e"),(0,l.kt)("td",{parentName:"tr",align:null},"Confirm the evidence that the proposal is illegal in the block consensus")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"15"),(0,l.kt)("td",{parentName:"tr",align:null},"IllegalVoteEvidence"),(0,l.kt)("td",{parentName:"tr",align:null},"0x0f"),(0,l.kt)("td",{parentName:"tr",align:null},"Confirm the evidence of illegality voting on the proposal in the block consensus")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"16"),(0,l.kt)("td",{parentName:"tr",align:null},"IllegalBlockEvidence"),(0,l.kt)("td",{parentName:"tr",align:null},"0x10"),(0,l.kt)("td",{parentName:"tr",align:null},"Block consensus shows evidence that forked blocks are illegal.")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"17"),(0,l.kt)("td",{parentName:"tr",align:null},"IllegalSidechainEvidence"),(0,l.kt)("td",{parentName:"tr",align:null},"0x11"),(0,l.kt)("td",{parentName:"tr",align:null},"Useless")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"18"),(0,l.kt)("td",{parentName:"tr",align:null},"InactiveArbitrators"),(0,l.kt)("td",{parentName:"tr",align:null},"0x12"),(0,l.kt)("td",{parentName:"tr",align:null},"Batch inactive transactions of DPOS nodes")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"19"),(0,l.kt)("td",{parentName:"tr",align:null},"UpdateVersion"),(0,l.kt)("td",{parentName:"tr",align:null},"0x13"),(0,l.kt)("td",{parentName:"tr",align:null},"Not used (code is used to set the transaction that supports producer inactive block interval)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"20"),(0,l.kt)("td",{parentName:"tr",align:null}
1,"NextTurnDPOSInfo"),(0,l.kt)("td",{parentName:"tr",align:null},"0x14"),(0,l.kt)("td",{parentName:"tr",align:null},"NextTurnDPOSInfo transaction, which is used to record the information of the personnel on duty in the next round of DPOS.")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"21"),(0,l.kt)("td",{parentName:"tr",align:null},"RecordProposalResult"),(0,l.kt)("td",{parentName:"tr",align:null},"0x15"),(0,l.kt)("td",{parentName:"tr",align:null},"Record whether the result of the proposal review period and referendum period for reserving short names is passed (the version will be expanded later)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"22"),(0,l.kt)("td",{parentName:"tr",align:null},"RegisterCR"),(0,l.kt)("td",{parentName:"tr",align:null},"0x21"),(0,l.kt)("td",{parentName:"tr",align:null},"Transaction of registering CR member")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"23"),(0,l.kt)("td",{parentName:"tr",align:null},"UnregisterCR"),(0,l.kt)("td",{parentName:"tr",align:null},"0x22"),(0,l.kt)("td",{parentName:"tr",align:null},"Transaction of registering CR member")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"24"),(0,l.kt)("td",{parentName:"tr",align:null},"UpdateCR"),(0,l.kt)("td",{parentName:"tr",align:null},"0x23"),(0,l.kt)("td",{parentName:"tr",align:null},"Transaction of updating CR member information")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"25"),(0,l.kt)("td",{parentName:"tr",align:null},"ReturnCRDepositCoin"),(0,l.kt)("td",{parentName:"tr",align:null},"0x24"),(0,l.kt)("td",{parentName:"tr",align:null},"Transaction of retrieving deposit of CR members")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"26"),(0,l.kt)("td",{parentName:"tr",align:null},"CRCProposal"),(0,l.kt)("td",{parentName:"tr",align:null},"0x25"),(0,l.kt)("td",{parentName:"tr",align:null},"Proposal issuance transaction. There will be a one-week review period and a one-week referendum period after the issuance.")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"27"),(0,l.kt)("td",{parentName:"tr",align:null},"CRCProposalReview"),(0,l.kt)("td",{parentName:"tr",align:null},"0x26"),(0,l.kt)("td",{parentName:"tr",align:null},"Proposal review transaction, which is used to express review opinions and results on proposals during the review period.")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"28"),(0,l.kt)("td",{parentName:"tr",align:null},"CRCProposalTracking"),(0,l.kt)("td",{parentName:"tr",align:null},"0x27"),(0,l.kt)("td",{parentName:"tr",align:null},"ProposalTracking transaction, which is used to track the progress of the proposal in execution.")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"29"),(0,l.kt)("td",{parentName:"tr",align:null},"CRCAppropriation"),(0,l.kt)("td",{parentName:"tr",align:null},"0x28"),(0,l.kt)("td",{parentName:"tr",align:null},"CR member ProposalAppropriation Transaction")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"30"),(0,l.kt)("td",{parentName:"tr",align:null},"CRCProposalWithdraw"),(0,l.kt)("td",{parentName:"tr",align:null},"0x29"),(0,l.kt)("td",{parentName:"tr",align:null},"Proposal application withdrawal transaction, through which the proposal owner can withdraw the money in the proposal stage.")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"31"),(0,l.kt)("td",{parentName:"tr",align:null},"CRCProposalRealWithdraw"),(0,l.kt)("td",{parentName:"tr",align:null},"0x2a"),(0,l.kt)("td",{parentName:"tr",align:null},"Proposal withdrawal and loan transaction. The transaction of withdrawing money according to the application proposal and the real loan transaction on the chain.")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"32"),(0,l.kt)("td",{parentName:"tr",align:null},"CRAssetsRectify"),(0,l.kt)("td",{parentName:"tr",align:null},"0x2b"),(0,l.kt)("td",{parentName:"tr",align:null},"Asset arrangement transaction, which is used to reduce loose change for CR asset address to avoid excessive scattered utxo.")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"33"),(0,l.kt)("td",{parentName:"tr",align:null},"CRCouncilMemberClaimNode"),(0,l.kt)("td",{parentName:"tr",align:null},"0x31"),(0,l.kt)("td",{parentName:"tr",align:null},"CR member claims operating DPOS node transaction.")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"34"),(0,l.kt)("td",{parentName:"tr",align:null},"RevertToPOW"),(0,l.kt)("td",{parentName:"tr",align:null},"0x41"),(0,l.kt)("td",{parentName:"tr",align:null},"Degenerate to POW consensus transaction")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"35"),(0,l.kt)("td",{parentName:"tr",align:null},"RevertToDPOS"),(0,l.kt)("td",{parentName:"tr",align:null},"0x42"),(0,l.kt)("td",{parentName:"tr",align:null},"Recover DPOS consensus transaction")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"36"),(0,l.kt)("td",{parentName:"tr",align:null},"ReturnSideChainDepositCoin"),(0,l.kt)("td",{parentName:"tr",align:null},"0x51"),(0,l.kt)("td",{parentName:"tr",align:null},"ReturnSideChainDepositCoin transaction. When cross-chain recharge fails, the money of frozen address can be returned to the user.")))))}c.isMDXComponent=!0}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.