1"use strict";(globalThis.webpackChunkelastos_docs=globalThis.webpackChunkelastos_docs||[]).push([[6669],{67160(e,n,s){s.r(n),s.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>x,frontMatter:()=>t,metadata:()=>r,toc:()=>h});const r=JSON.parse('{"id":"blockchain/developers/api-mainchain","title":"Main Chain JSON-RPC API","description":"Complete JSON-RPC API reference for the Elastos ELA main chain.","source":"@site/docs/blockchain/developers/api-mainchain.md","sourceDirName":"blockchain/developers","slug":"/blockchain/developers/api-mainchain","permalink":"/blockchain/developers/api-mainchain","draft":false,"unlisted":false,"tags":[],"version":"current","sidebarPosition":15,"frontMatter":{"type":"reference","sidebar_position":15,"title":"Main Chain JSON-RPC API","description":"Complete JSON-RPC API reference for the Elastos ELA main chain.","chains":["main"],"keywords":["Elastos","World Computer","Blockchain","main chain","JSON-RPC","API","ELA"],"image":"/img/og-blockchain.jpg"},"sidebar":"blockchainSidebar","previous":{"title":"Blockchain API Reference","permalink":"/blockchain/developers/api-reference"},"next":{"title":"Main Chain REST API","permalink":"/blockchain/developers/api-mainchain-rest"}}');var d=s(74848),i=s(28453);const t={type:"reference",sidebar_position:15,title:"Main Chain JSON-RPC API",description:"Complete JSON-RPC API reference for the Elastos ELA main chain.",chains:["main"],keywords:["Elastos","World Computer","Blockchain","main chain","JSON-RPC","API","ELA"],image:"/img/og-blockchain.jpg"},c="Main Chain JSON-RPC API",l={},h=[{value:"Connection",id:"connection",level:2},{value:"Block & Transaction",id:"block--transaction",level:2},{value:"<code>getbestblockhash</code>",id:"getbestblockhash",level:3},{value:"<code>getblockhash</code>",id:"getblockhash",level:3},{value:"<code>getblock</code>",id:"getblock",level:3},{value:"<code>getblockcount</code>",id:"getblockcount",level:3},{value:"<code>getblockbyheight</code>",id:"getblockbyheight",level:3},{value:"<code>getrawtransaction</code>",id:"getrawtransaction",level:3},{value:"<code>sendrawtransaction</code>",id:"sendrawtransaction",level:3},{value:"<code>getrawmempool</code>",id:"getrawmempool",level:3},{value:"<code>createrawtransaction</code>",id:"createrawtransaction",level:3},{value:"<code>signrawtransactionwithkey</code>",id:"signrawtransactionwithkey",level:3},{value:"<code>decoderawtransaction</code>",id:"decoderawtransaction",level:3},{value:"Address & UTXO",id:"address--utxo",level:2},{value:"<code>getreceivedbyaddress</code>",id:"getreceivedbyaddress",level:3},{value:"<code>listunspent</code>",id:"listunspent",level:3},{value:"<code>getutxosbyamount</code>",id:"getutxosbyamount",level:3},{value:"<code>getamountbyinputs</code>",id:"getamountbyinputs",level:3},{value:"Node Info",id:"node-info",level:2},{value:"<code>getinfo</code>",id:"getinfo",level:3},{value:"<code>getnodestate</code>",id:"getnodestate",level:3},{value:"<code>getconnectioncount</code>",id:"getconnectioncount",level:3},{value:"<code>getneighbors</code>",id:"getneighbors",level:3},{value:"<code>setloglevel</code>",id:"setloglevel",level:3},{value:"BPoS & Validators",id:"bpos--validators",level:2},{value:"<code>listproducers</code>",id:"listproducers",level:3},{value:"<code>producerstatus</code>",id:"producerstatus",level:3},{value:"<code>votestatus</code>",id:"votestatus",level:3},{value:"<code>getdepositcoin</code>",id:"getdepositcoin",level:3},{value:"<code>getarbitersinfo</code>",id:"getarbitersinfo",level:3},{value:"<code>getarbitratorgroupbyheight</code>",id:"getarbitratorgroupbyheight",level:3},{value:"<code>getarbiterpeersinfo</code>",id:"getarbiterpeersinfo",level:3},{value:"<code>getconfirmbyheight</code>",id:"getconfirmbyheight",level:3},{value:"<code>getconfirmbyhash</code>",id:"getconfirmbyhash",level:3},{value:"<code>estimatesmartfee</code>",id:"estimatesmartfee",level:3},{value:"Mining",id:"mining",level:2},{value:"<code>togglemining</code>",id:"togglemining",level:3},{value:"<code>discretemining</code>",id:"discretemining",level:3},{value:"<code>getmininginfo</code>
1",id:"getmininginfo",level:3},{value:"<code>createauxblock</code>",id:"createauxblock",level:3},{value:"<code>submitauxblock</code>",id:"submitauxblock",level:3},{value:"CR (Elastos DAO)",id:"cr-elastos-dao",level:2},{value:"<code>listcrcandidates</code>",id:"listcrcandidates",level:3},{value:"<code>getcrdepositcoin</code>",id:"getcrdepositcoin",level:3},{value:"<code>getsecretarygeneral</code>",id:"getsecretarygeneral",level:3},{value:"<code>listcurrentcrs</code>",id:"listcurrentcrs",level:3},{value:"<code>listcrproposalbasestate</code>",id:"listcrproposalbasestate",level:3},{value:"<code>getcrproposalstate</code>",id:"getcrproposalstate",level:3},{value:"<code>getproposaldraftdata</code>",id:"getproposaldraftdata",level:3},{value:"<code>getcrrelatedstage</code>",id:"getcrrelatedstage",level:3},{value:"Cross-Chain",id:"cross-chain",level:2},{value:"<code>submitsidechainillegaldata</code>",id:"submitsidechainillegaldata",level:3},{value:"<code>getexistwithdrawtransactions</code>",id:"getexistwithdrawtransactions",level:3},{value:"Resources",id:"resources",level:2}];function a(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,i.R)(),...e.components};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(n.header,{children:(0,d.jsx)(n.h1,{id:"main-chain-json-rpc-api",children:"Main Chain JSON-RPC API"})}),"\n",(0,d.jsxs)(n.p,{children:["The ELA main chain uses a ",(0,d.jsx)(n.strong,{children:"custom JSON-RPC interface"})," that is not Ethereum-compatible. All calls use ",(0,d.jsx)(n.code,{children:"POST"})," with a JSON body containing ",(0,d.jsx)(n.code,{children:"method"}),", ",(0,d.jsx)(n.code,{children:"params"}),", and ",(0,d.jsx)(n.code,{children:"id"}),". The ",(0,d.jsx)(n.code,{children:"jsonrpc"})," field is optional; if omitted, the node defaults to ",(0,d.jsx)(n.code,{children:'"2.0"'}),"."]}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'{\n "method": "getblockcount",\n "params": {},\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.h2,{id:"connection",children:"Connection"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Network"}),(0,d.jsx)(n.th,{children:"URL"}),(0,d.jsx)(n.th,{children:"Notes"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:(0,d.jsx)(n.strong,{children:"Mainnet"})}),(0,d.jsx)(n.td,{children:(0,d.jsx)(n.code,{children:"https://api.elastos.io/ela"})}),(0,d.jsx)(n.td,{children:"Public endpoint"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:(0,d.jsx)(n.strong,{children:"Testnet"})}),(0,d.jsx)(n.td,{children:(0,d.jsx)(n.code,{children:"https://api-testnet.elastos.io/ela"})}),(0,d.jsx)(n.td,{children:"Public testnet endpoint"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:(0,d.jsx)(n.strong,{children:"Self-hosted"})}),(0,d.jsx)(n.td,{children:(0,d.jsx)(n.code,{children:"http://localhost:20336"})}),(0,d.jsx)(n.td,{children:"Default JSON-RPC port"})]})]})]}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h2,{id:"block--transaction",children:"Block & Transaction"}),"\n",(0,d.jsx)(n.h3,{id:"getbestblockhash",children:(0,d.jsx)(n.code,{children:"getbestblockhash"})}),"\n",(0,d.jsx)(n.p,{children:"Returns the hash of the most recent block on the longest chain."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsx)(n.p,{children:"None."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"blockhash"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Hash of the tip block"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "getbestblockhash",\n "params": {},\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": "68692d63a8bfc8887553b97f99f09e523d34a2b599bf5b388436b2ddc85ed76e",\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"getblockhash",children:(0,d.jsx)(n.code,{children:"getblockhash"})}),"\n",(0,d.jsx)(n.p,{children:"Returns the block hash at a given he
1ight."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"height"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Block height"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"blockhash"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Hash of the block at the specified height"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "getblockhash",\n "params": {\n "height": 100\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": "3893390c9fe372eab5b356a02c54d3baa41fc48918bbdbd7f4f12f9a9f4c4dc4",\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"getblock",children:(0,d.jsx)(n.code,{children:"getblock"})}),"\n",(0,d.jsx)(n.p,{children:"Returns block information for a given block hash."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"blockhash"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"The block hash"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"verbosity"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsxs)(n.td,{children:[(0,d.jsx)(n.code,{children:"0"})," = serialized hex string, ",(0,d.jsx)(n.code,{children:"1"})," = JSON summary with tx hashes, ",(0,d.jsx)(n.code,{children:"2"})," = JSON with full transaction objects"]})]})]})]}),"\n",(0,d.jsx)(n.admonition,{title:"Verbosity matters",type:"tip",children:(0,d.jsxs)(n.p,{children:["Use verbosity ",(0,d.jsx)(n.code,{children:"0"})," when you only need the raw hex. Use ",(0,d.jsx)(n.code,{children:"1"})," for block metadata with transaction IDs. Use ",(0,d.jsx)(n.code,{children:"2"})," to get full transaction objects embedded in the block response \u2014 this avoids separate ",(0,d.jsx)(n.code,{children:"getrawtransaction"})," calls."]})}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result (verbosity 1)"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"hash"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Block hash"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"confirmations"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Number of confirmations"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"size"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Block size in bytes"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"strippedsize"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Block size excluding witness data"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"weight"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Block weight"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"height"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Block height"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"version"}),(0,d.jsx)(n.td,{children:"integer"}
1),(0,d.jsx)(n.td,{children:"Block version"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"versionhex"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Block version in hex"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"merkleroot"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Merkle root of transactions"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"tx"}),(0,d.jsx)(n.td,{children:"array<string>"}),(0,d.jsx)(n.td,{children:"Transaction hashes in this block"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"time"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Block timestamp (Unix)"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"mediantime"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Median time of the previous 11 blocks"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"nonce"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Nonce used in mining"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"bits"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Compact target"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"difficulty"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Mining difficulty"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"chainwork"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Cumulative chain work in hex"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"previousblockhash"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Hash of the previous block"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"nextblockhash"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Hash of the next block (if any)"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"auxpow"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Auxiliary proof-of-work data (from merged mining)"})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "getblock",\n "params": {\n "blockhash": "68692d63a8bfc8887553b97f99f09e523d34a2b599bf5b388436b2ddc85ed76e",\n "verbosity": 1\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": {\n "hash": "68692d63a8bfc8887553b97f99f09e523d34a2b599bf5b388436b2ddc85ed76e",\n "confirmations": 5,\n "size": 498,\n "strippedsize": 498,\n "weight": 1992,\n "height": 171454,\n "version": 0,\n "versionhex": "00000000",\n "merkleroot": "6c42a2ee69444c0fe684e0be82e38ce67a32cb2d66ae2c72ef21eeb5c073f4c2",\n "tx": [\n "6c42a2ee69444c0fe684e0be82e38ce67a32cb2d66ae2c72ef21eeb5c073f4c2"\n ],\n "time": 1620000000,\n "mediantime": 1619999400,\n "nonce": 0,\n "bits": 486801407,\n "difficulty": "1234567.89012345",\n "chainwork": "0000000000000000000000000000000000000000000000000000012345678901",\n "previousblockhash": "8fc39d0d18d2341bba75a74d3f0bab87bcc585aba87de3e05f3dd691ae0b0e1a",\n "nextblockhash": "aa51e400f3e9faa52e58de04a7e9dbb64db93a1c6c4bb2b32be98e690e5206da",\n "auxpow": "..."\n },\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"getblockcount",children:(0,d.jsx)(n.code,{children:"getblockcount"})}),"\n",(0,d.jsx)(n.p,{children:"Returns the current block height of the node's longest chain."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsx)(n.p,{children:"None."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"height"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Current block height"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "getblockcount",\n "params": {},\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": 171454,\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"getblockbyheight",children:(0,d.jsx)(n.code,{children:"getblockbyheight"})}),"\n",(0,d.jsxs)(n.p,{children:["Returns full block information for a given he
1ight. The result schema matches ",(0,d.jsx)(n.code,{children:"getblock"})," with verbosity ",(0,d.jsx)(n.code,{children:"2"})," (includes full transaction objects)."]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"height"}),(0,d.jsx)(n.td,{children:"uint32"}),(0,d.jsx)(n.td,{children:"Block height"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.p,{children:["Same as ",(0,d.jsx)(n.a,{href:"#getblock",children:(0,d.jsx)(n.code,{children:"getblock"})})," with verbosity ",(0,d.jsx)(n.code,{children:"2"}),"."]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "getblockbyheight",\n "params": {\n "height": 171454\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": {\n "hash": "68692d63a8bfc8887553b97f99f09e523d34a2b599bf5b388436b2ddc85ed76e",\n "confirmations": 5,\n "size": 498,\n "strippedsize": 498,\n "weight": 1992,\n "height": 171454,\n "version": 0,\n "versionhex": "00000000",\n "merkleroot": "6c42a2ee69444c0fe684e0be82e38ce67a32cb2d66ae2c72ef21eeb5c073f4c2",\n "tx": [\n {\n "txid": "6c42a2ee69444c0fe684e0be82e38ce67a32cb2d66ae2c72ef21eeb5c073f4c2",\n "hash": "6c42a2ee69444c0fe684e0be82e38ce67a32cb2d66ae2c72ef21eeb5c073f4c2",\n "size": 254,\n "vsize": 254,\n "version": 0,\n "type": 0,\n "payloadversion": 0,\n "payload": {},\n "locktime": 171454,\n "vin": [],\n "vout": [\n {\n "value": "1.50000000",\n "n": 0,\n "address": "EXoXaT68VzPBRVpnqRFVkFMaTPmiiVzPqo",\n "assetid": "a3d0eaa466df74983b5d7c543de6904f4c9418ead5ffd6d25814234a96db37b0",\n "outputlock": 0\n }\n ],\n "blockhash": "68692d63a8bfc8887553b97f99f09e523d34a2b599bf5b388436b2ddc85ed76e",\n "confirmations": 5,\n "time": 1620000000,\n "blocktime": 1620000000,\n "attributes": [],\n "programs": []\n }\n ],\n "time": 1620000000,\n "mediantime": 1619999400,\n "nonce": 0,\n "bits": 486801407,\n "difficulty": "1234567.89012345",\n "chainwork": "0000000000000000000000000000000000000000000000000000012345678901",\n "previousblockhash": "8fc39d0d18d2341bba75a74d3f0bab87bcc585aba87de3e05f3dd691ae0b0e1a",\n "nextblockhash": "aa51e400f3e9faa52e58de04a7e9dbb64db93a1c6c4bb2b32be98e690e5206da",\n "auxpow": "..."\n },\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"getrawtransaction",children:(0,d.jsx)(n.code,{children:"getrawtransaction"})}),"\n",(0,d.jsxs)(n.p,{children:["Returns raw transaction data. When ",(0,d.jsx)(n.code,{children:"verbose"})," is ",(0,d.jsx)(n.code,{children:"true"}),", returns a decoded JSON object; otherwise returns the serialized hex string."]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"txid"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Transaction hash"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"verbose"}),(0,d.jsx)(n.td,{children:"bool"}),(0,d.jsxs)(n.td,{children:[(0,d.jsx)(n.code,{children:"true"})," for decoded JSON, ",(0,d.jsx)(n.code,{children:"false"})," for hex string"]})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result (verbose = true)"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"txid"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Transaction ID"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"hash"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Transaction hash"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"size"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Transaction size in bytes"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"vsize"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Virtual size"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"version"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Transaction version"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"locktime"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Lock time"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"vin"}),(0,d.jsx)(n.td,{children:"array"}),(0,d.jsx)(n.td,{children:"Array of inputs"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"vout"}),(0,d.jsx)(n.td,{children:"array"}),(0,d.jsxs)(n.td,{children:["Array of outputs, each with ",(0,d.jsx)(n.code,{children:"value"}),", ",(0,d.jsx)(n.code,{children:"n"}),", ",(0,d.jsx)(n.code,{children:"address"}),", ",(0,d.jsx)(n.code,{children:"assetid"}),", ",(0,d.jsx)(n.code,{children:"outputlock"})]})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"blockhash"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Block containing this transaction"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"confirmations"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Number of confirmations"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"time"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Transaction timestamp"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"blocktime"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Block timestamp"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"type"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Transaction type"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"payloadversion"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Payload version"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"payload"}),(0,d.jsx)(n.td,{children:"object"}),(0,d.jsx)(n.td,{children:"Transaction payload"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"attributes"}),(0,d.jsx)(n.td,{children:"array"}),(0,d.jsx)(n.td,{children:"Transaction attributes"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"programs"}),(0,d.jsx)(n.td,{children:"array"}),(0,d.jsx)(n.td,{children:"Transaction programs (scripts)"})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "getrawtransaction",\n "params": {\n "txid": "6c42a2ee69444c0fe684e0be82e38ce67a32cb2d66ae2c72ef21eeb5c073f4c2",\n "verbose": true\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": {\n "txid": "6c42a2ee69444c0fe684e0be82e38ce67a32cb2d66ae2c72ef21eeb5c073f4c2",\n "hash": "6c42a2ee69444c0fe684e0be82e38ce67a32cb2d66ae2c72ef21eeb5c073f4c2",\n "size": 254,\n "vsize": 254,\n "version": 0,\n "type": 0,\n "payloadversion": 0,\n "payload": {},\n "locktime": 171454,\n "vin": [\n {\n "txid": "0000000000000000000000000000000000000000000000000000000000000000",\n "vout": 65535,\n "sequence": 4294967295\n }\n ],\n "vout": [\n {\n "value": "1.50000000",\n "n": 0,\n "address": "EXoXaT68VzPBRVpnqRFVkFMaTPmiiVzPqo",\n "assetid": "a3d0eaa466df74983b5d7c543de6904f4c9418ead5ffd6d25814234a96db37b0",\n "outputlock": 0\n }\n ],\n "blockhash": "68692d63a8bfc8887553b97f99f09e523d34a2b599bf5b388436b2ddc85ed76e",\n "confirmations": 5,\n "time": 1620000000,\n "blocktime": 1620000000,\n "attributes": [],\n "programs": []\n },\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"sendrawtransaction",children:(0,d.jsx)(n.code,{children:"sendrawtransaction"})}),"\n",(0,d.jsx)(n.p,{children:"Broadcasts a signed, serialized transaction to the network."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"data"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Hex-encoded signed transaction"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"hash"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Transaction hash of the broadcast transaction"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "sendrawtransaction",\n "params": {\n "data": "0200010013313637..."\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6abcd",\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"getrawmempool",children:(0,d.jsx)(n.code,{children:"getrawmempool"})}),"\n",(0,d.jsx)(n.p,{children:"Returns all transaction hashes currently in the memory pool."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"state"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsxs)(n.td,{children:[(0,d.jsx)(n.em,{children:"(optional)"})," Pass ",(0,d.jsx)(n.code,{children:'"all"'})," to return full transaction details instead of just hashes"]})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"(default)"}),(0,d.jsx)(n.td,{children:"array<string>"}),(0,d.jsx)(n.td,{children:"Array of transaction hashes"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:'(state="all")'}),(0,d.jsx)(n.td,{children:"array<object>"}),(0,d.jsx)(n.td,{children:"Full transaction details"})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "getrawmempool",\n "params": {},\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": [\n "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6abcd",\n "b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6abcdef"\n ],\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"createrawtransaction",children:(0,d.jsx)(n.code,{children:"createrawtransaction"})}),"\n",(0,d.jsx)(n.p,{children:"Creates an unsigned raw transaction from the given inputs and outputs."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"inputs"}),(0,d.jsx)(n.td,{children:"array"}),(0,d.jsxs)(n.td,{children:["Array of ",(0,d.jsx)(n.code,{children:'{"txid": "...", "vout": N}'})," objects"]})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"outputs"}),(0,d.jsx)(n.td,{children:"array"}),(0,d.jsxs)(n.td,{children:["Array of ",(0,d.jsx)(n.code,{children:'{"address": "...", "amount": "..."}'})," objects"]})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"locktime"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Transaction lock time"})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"data"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Hex-encoded unsigned transaction"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "createrawtransaction",\n "params": {\n "inputs": [\n {\n "txid": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6abcd",\n "vout": 0\n }\n ],\n "outputs": [\n {\n "address": "EXoXaT68VzPBRVpnqRFVkFMaTPmiiVzPqo",\n "amount": "1.00000000"\n }\n ],\n "locktime": 0\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": "0200010013313637...",\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"signrawtransactionwithkey",children:(0,d.jsx)(n.code,{children:"signrawtransactionwithkey"})}),"\n",(0,d.jsx)(n.p,{children:"Signs a raw transaction with the provided private keys."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"data"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Hex-encoded raw transaction"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"codes"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Redeem script(s)"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"privkeys"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Private key(s) for signing"})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"data"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Hex-encoded signed transaction"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.co
1de,{className:"language-json",children:'// Request\n{\n "method": "signrawtransactionwithkey",\n "params": {\n "data": "0200010013313637...",\n "codes": "2102...",\n "privkeys": "5JYc..."\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": "0200010013313637...signed...",\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"decoderawtransaction",children:(0,d.jsx)(n.code,{children:"decoderawtransaction"})}),"\n",(0,d.jsx)(n.p,{children:"Decodes a raw transaction hex string into a human-readable JSON object."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"data"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Hex-encoded raw transaction"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"txid"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Transaction ID"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"hash"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Transaction hash"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"size"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Size in bytes"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"vsize"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Virtual size"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"version"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Transaction version"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"type"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Transaction type"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"payloadversion"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Payload version"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"payload"}),(0,d.jsx)(n.td,{children:"object"}),(0,d.jsx)(n.td,{children:"Transaction payload"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"locktime"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Lock time"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"vin"}),(0,d.jsx)(n.td,{children:"array"}),(0,d.jsx)(n.td,{children:"Inputs"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"vout"}),(0,d.jsx)(n.td,{children:"array"}),(0,d.jsx)(n.td,{children:"Outputs"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"attributes"}),(0,d.jsx)(n.td,{children:"array"}),(0,d.jsx)(n.td,{children:"Attributes"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"programs"}),(0,d.jsx)(n.td,{children:"array"}),(0,d.jsx)(n.td,{children:"Programs"})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "decoderawtransaction",\n "params": {\n "data": "0200010013313637..."\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": {\n "txid": "6c42a2ee69444c0fe684e0be82e38ce67a32cb2d66ae2c72ef21eeb5c073f4c2",\n "hash": "6c42a2ee69444c0fe684e0be82e38ce67a32cb2d66ae2c72ef21eeb5c073f4c2",\n "size": 254,\n "vsize": 254,\n "version": 0,\n "type": 0,\n "payloadversion": 0,\n "payload": {},\n "locktime": 0,\n "vin": [\n {\n "txid": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6abcd",\n "vout": 0,\n "sequence": 4294967295\n }\n ],\n "vout": [\n {\n "value": "1.00000000",\n "n": 0,\n "address": "EXoXaT68VzPBRVpnqRFVkFMaTPmiiVzPqo",\n "assetid": "a3d0eaa466df74983b5d7c543de6904f4c9418ead5ffd6d25814234a96db37b0",\n "outputlock": 0\n }\n ],\n "attributes": [],\n "programs": []\n },\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h2,{id:"address--utxo",children:"Address & UTXO"}),"\n",(0,d.jsx)(n.h3,{id:"getreceivedbyaddress",children:(0,d.jsx)(n.code,{children:"getreceivedbyaddress"})}),"\n",(0,d.jsx)(n.p,{children:"Returns the total amount received by the given address (confirmed transactions only)."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"address"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"ELA address"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"amount"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Total ELA received"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "getreceivedbyaddress",\n "params": {\n "address": "EXoXaT68VzPBRVpnqRFVkFMaTPmiiVzPqo"\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": "15.23400000",\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"listunspent",children:(0,d.jsx)(n.code,{children:"listunspent"})}),"\n",(0,d.jsx)(n.p,{children:"Returns unspent transaction outputs (UTXOs) for the specified addresses."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"addresses"}),(0,d.jsx)(n.td,{children:"array<string>"}),(0,d.jsx)(n.td,{children:"List of ELA addresses"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"utxotype"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsxs)(n.td,{children:[(0,d.jsx)(n.em,{children:"(optional)"})," ",(0,d.jsx)(n.code,{children:'"mixed"'})," (default), ",(0,d.jsx)(n.code,{children:'"vote"'}),", or ",(0,d.jsx)(n.code,{children:'"normal"'})]})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"result"}),(0,d.jsx)(n.td,{children:"array"}),(0,d.jsxs)(n.td,{children:["Array of UTXO objects with ",(0,d.jsx)(n.code,{children:"txid"}),", ",(0,d.jsx)(n.code,{children:"vout"}),", ",(0,d.jsx)(n.code,{children:"address"}),", ",(0,d.jsx)(n.code,{children:"amount"}),", ",(0,d.jsx)(n.code,{children:"confirmations"})]})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "listunspent",\n "params": {\n "addresses": [\n "EXoXaT68VzPBRVpnqRFVkFMaTPmiiVzPqo"\n ]\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": [\n {\n "txid": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6abcd",\n "vout": 0,\n "address": "EXoXaT68VzPBRVpnqRFVkFMaTPmiiVzPqo",\n "amount": "5.00000000",\n "confirmations": 120,\n "assetid": "a3d0eaa466df74983b5d7c543de6904f4c9418ead5ffd6d25814234a96db37b0",\n "outputlock": 0\n }\n ],\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"getutxosbyamount",children:(0,d.jsx)(n.code,{children:"getutxosbyamount"})}),"\n",(0,d.jsx)(n.p,{children:"Returns UTXOs whose total value is greater than or equal to the specified amount."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"address"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"ELA address"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"amount"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Minimum total value required"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"utxotype"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsxs)(n.td,{children:[(0,d.jsx)(n.em,{children:"(optional)"})," ",(0,d.jsx)(n.code,{children:'"mixed"'}),", ",(0,d.jsx)(n.code,{children:'"vote"'}),", or ",(0,d.jsx)(n.code,{children:'"normal"'})]})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"result"}),(0,d.jsx)(n.td,{children:"array"}),(0,d.jsx)(n.td,{children:"Array of UTXO objects sufficient to cover the requested amount"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "getutxosbyamount",\n "params": {\n "address": "EXoXaT68VzPBRVpnqRFVkFMaTPmiiVzPqo",\n "amount": "2.50000000"\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": [\n {\n "txid": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6abcd",\n "vout": 0,\n "address": "EXoXaT68VzPBRVpnqRFVkFMaTPmiiVzPqo",\n "amount": "5.00000000",\n "confirmations": 120\n }\n ],\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"getamountbyinputs",children:(0,d.jsx)(n.code,{children:"getamountbyinputs"})}),"\n",(0,d.jsx)(n.p,{children:"Calculates the total value of the specified inputs."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"inputs"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Hex-encoded input data"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"amount"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Total ELA value of the inputs"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "getamountbyinputs",\n "params": {\n "inputs": "0201a1b2c3d4..."\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": "10.50000000",\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h2,{id:"node-info",children:"Node Info"}),"\n",(0,d.jsx)(n.h3,{id:"getinfo",children:(0,d.jsx)(n.code,{children:"getinfo"})}),"\n",(0,d.jsx)(n.p,{children:"Returns general information about the node."}),"\n",(0,d.jsxs)(n.blockquote,{children:["\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.strong,{children:"Deprecated"})," \u2014 Use ",(0,d.jsx)(n.code,{children:"getnodestate"})," for more detailed information."]}),"\n"]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsx)(n.p,{children:"None."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"version"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Node software version"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"height"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Current block height"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"connections"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Number of connected peers"})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "getinfo",\n "params": {},\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": {\n "version": 10000,\n "height": 171454,\n "connections": 25\n },\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"getnodestate",children:(0,d.jsx)(n.code,{children:"getnodestate"})}),"\n",(0,d.jsx)(n.p,{children:"Returns detailed information about the node's state, including compile info, ports, and connected peers."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsx)(n.p,{children:"None."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"compile"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Node compile version string"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"height"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Current block height"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"version"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Protocol version"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"services"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Supported service flags"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"port"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"P2P listen port"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"rpcport"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"JSON-RPC port"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"restport"}),(0,d.jsx)(n.td,{childr
1en:"integer"}),(0,d.jsx)(n.td,{children:"REST API port"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"wsport"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"WebSocket port"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"neighbors"}),(0,d.jsx)(n.td,{children:"array"}),(0,d.jsx)(n.td,{children:"Connected peers (see below)"})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Neighbor fields"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"netaddress"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Peer IP and port"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"services"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Peer service flags"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"relaytx"}),(0,d.jsx)(n.td,{children:"bool"}),(0,d.jsx)(n.td,{children:"Whether the peer relays transactions"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"lastsend"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Timestamp of last message sent"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"lastrecv"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Timestamp of last message received"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"conntime"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Connection established time"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"timeoffset"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Time offset from local clock (seconds)"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"version"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Peer protocol version"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"inbound"}),(0,d.jsx)(n.td,{children:"bool"}),(0,d.jsx)(n.td,{children:"Whether this is an inbound connection"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"startingheight"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Peer's block height when connected"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"lastblock"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Peer's latest known block height"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"lastpingtime"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Last ping timestamp"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"lastpingmicros"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Last ping round-trip in microseconds"})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "getnodestate",\n "params": {},\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": {\n "compile": "v0.9.2-48-gd1e2f3a",\n "height": 171454,\n "version": 30000,\n "services": "SFNodeNetwork|SFTxFiltering|SFNodeBloom",\n "port": 20338,\n "rpcport": 20336,\n "restport": 20334,\n "wsport": 20335,\n "neighbors": [\n {\n "netaddress": "192.0.2.1:20338",\n "services": "SFNodeNetwork|SFTxFiltering|SFNodeBloom",\n "relaytx": false,\n "lastsend": "2024-01-15 10:30:00",\n "lastrecv": "2024-01-15 10:30:01",\n "conntime": "2024-01-14 08:00:00",\n "timeoffset": 0,\n "version": 30000,\n "inbound": false,\n "startingheight": 171400,\n "lastblock": 171454,\n "lastpingtime": "2024-01-15 10:29:50",\n "lastpingmicros": 12345\n }\n ]\n },\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"getconnectioncount",children:(0,d.jsx)(n.code,{children:"getconnectioncount"})}),"\n",(0,d.jsx)(n.p,{children:"Returns the number of peers connected to the node."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsx)(n.p,{children:"None."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"count"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Number of connected peers"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "getconnectioncount",\n "params": {},\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": 25,\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"getneighbors",children:(0,d.jsx)(n.code,{children:"getneighbors"})}),"\n",(0,d.jsx)(n.p,{children:"Returns information about connected peers."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsx)(n.p,{children:"None."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"result"}),(0,d.jsx)(n.td,{children:"array"}),(0,d.jsx)(n.td,{children:"Array of peer info objects"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "getneighbors",\n "params": {},\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": [\n {\n "netaddress": "192.0.2.1:20338",\n "services": "SFNodeNetwork|SFTxFiltering|SFNodeBloom",\n "inbound": false,\n "version": 30000,\n "lastblock": 171454\n }\n ],\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"setloglevel",children:(0,d.jsx)(n.code,{children:"setloglevel"})}),"\n",(0,d.jsx)(n.p,{children:"Changes the logging verbosity of the node at runtime."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"level"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Log level (0 = debug, 1 = info, 2 = warn, 3 = error, 4 = fatal, 5 = off)"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"result"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Confirmation message"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "setloglevel",\n "params": {\n "level": 1\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": "log level has been set to 1",\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h2,{id:"bpos--validators",children:"BPoS & Validators"}),"\n",(0,d.jsx)(n.h3,{id:"listproducers",children:(0,d.jsx)(n.code,{children:"listproducers"})}),"\n",(0,d.jsx)(n.p,{children:"Returns a paginated list of block producers (validators) with optional state filtering."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"start"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Start index for pagination"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"limit"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Maximum number of results"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"state"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsxs)(n.td,{children:["Filter: ",(0,d.jsx)(n.code,{children:'"all"'}),", ",(0,d.jsx)(n.code,{children:'"pending"'}),", ",(0,d.jsx)(n.code,{children:'"active"'}),", ",(0,d.jsx)(n.code,{children:'"inactive"'}),", ",(0,d.jsx)(n.code,{children:'"canceled"'}),", ",(0,d.jsx)(n.code,{children:'"illegal"'}),", ",(0,d.jsx)(n.code,{children:'"returned"'})]})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"ownerpublickey"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Owner's public key"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"nodepublickey"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Node's public key"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"nickname"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Producer name"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"url"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Producer info URL"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"location"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Location code"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"active"}),(0,d.jsx)(n.td,{children:"bool"}),(0,d.jsx)(n.td,{children:"Whether the producer is currently active"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"votes"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Number of votes received"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"state"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Current state"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"registerheight"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Block height of registration"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"cancelheight"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Block height of cancellation (0 if active)"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"inactiveheight"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Block height when became inactive (0 if active)"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"illegalheight"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Block height when marked illegal (0 if not)"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"index"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Index in the result set"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"totalvotes"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Total votes across all producers"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"totalcounts"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Total number of producers matching the filter"})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "listproducers",\n "params": {\n "start": 0,\n "limit": 3,\n "state": "active"\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": {\n "producers": [\n {\n "ownerpublickey": "0306e4f...",\n "nodepublickey": "0282d5a...",\n "nickname": "Elephant Wallet",\n "url": "https://elephantwallet.app",\n "location": 86,\n "active": true,\n "votes": "45230120.12345678",\n "state": "Active",\n "registerheight": 362738,\n "cancelheight": 0,\n "inactiveheight": 0,\n "illegalheight": 0,\n "index": 0\n }\n ],\n "totalvotes": "182345670.98765432",\n "totalcounts": 96\n },\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"producerstatus",children:(0,d.jsx)(n.code,{children:"producerstatus"})}),"\n",(0,d.jsx)(n.p,{children:"Checks the registration status of a block producer."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"publickey"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Producer's public key"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"status"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsxs)(n.td,{children:[(0,d.jsx)(n.code,{children:"0"})," = not registered, ",(0,d.jsx)(n.code,{children:"1"})," = confirmed, ",(0,d.jsx)(n.code,{children:"2"})," = registered but unconfirmed"]})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "producerstatus",\n "params": {\n "publickey": "0306e4f..."\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": 1,\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"votestatus",children:(0,d.jsx)(n.code,{children:"votestatus"})}),"\n",(0,d.jsx)(n.p,{children:"Returns the voting status for a given address."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"address"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"ELA address"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"total"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Total ELA in the address"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"voting"}),(0,d.jsx)(n.td,{children:"string
1"}),(0,d.jsx)(n.td,{children:"ELA currently locked in votes"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"pending"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"ELA in pending vote transactions"})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "votestatus",\n "params": {\n "address": "EXoXaT68VzPBRVpnqRFVkFMaTPmiiVzPqo"\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": {\n "total": "1000.00000000",\n "voting": "500.00000000",\n "pending": "0.00000000"\n },\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"getdepositcoin",children:(0,d.jsx)(n.code,{children:"getdepositcoin"})}),"\n",(0,d.jsx)(n.p,{children:"Returns deposit coin information for a producer by their owner public key."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"ownerpublickey"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Producer's owner public key"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"available"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Available (withdrawable) amount"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"deducted"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Deducted penalty amount"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"deposit"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Locked deposit amount"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"assets"}),(0,d.jsx)(n.td,{children:"array"}),(0,d.jsx)(n.td,{children:"Additional asset details"})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "getdepositcoin",\n "params": {\n "ownerpublickey": "0306e4f..."\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": {\n "available": "500.00000000",\n "deducted": "0.00000000",\n "deposit": "5000.00000000",\n "assets": []\n },\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"getarbitersinfo",children:(0,d.jsx)(n.code,{children:"getarbitersinfo"})}),"\n",(0,d.jsx)(n.p,{children:"Returns information about current and next round arbiters and candidates."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsx)(n.p,{children:"None."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"arbiters"}),(0,d.jsx)(n.td,{children:"array<string>"}),(0,d.jsx)(n.td,{children:"Current arbiter public keys"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"candidates"}),(0,d.jsx)(n.td,{children:"array<string>"}),(0,d.jsx)(n.td,{children:"Current candidate public keys"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"nextarbiters"}),(0,d.jsx)(n.td,{children:"array<string>"}),(0,d.jsx)(n.td,{children:"Next round arbiter public keys"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"nextcandidates"}),(0,d.jsx)(n.td,{children:"array<string>"}),(0,d.jsx)(n.td,{children:"Next round candidate public keys"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"ondutyarbiter"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Public key of the currently on-duty arbiter"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"currentturnstartheight"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Block height when the current rotation started"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"nextturnstartheight"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Block height when the next rotation starts"})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "getarbitersinfo",\n "params": {},\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": {\n "arbiters": [\n "0306e4f...",\n "0282d5a...",\n "03a9b2c..."\n ],\n "candidates": [\n "02f1d8e...",\n "03b4c6d..."\n ],\n "nextarbiters": [\n "0306e4f...",\n "0282d5a...",\n "03a9b2c..."\n ],\n "nextcandidates": [\n "02f1d8e...",\n "03b4c6d..."\n ],\n "onduty
1arbiter": "0306e4f...",\n "currentturnstartheight": 171440,\n "nextturnstartheight": 171476\n },\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"getarbitratorgroupbyheight",children:(0,d.jsx)(n.code,{children:"getarbitratorgroupbyheight"})}),"\n",(0,d.jsx)(n.p,{children:"Returns the arbitrator group that was active at a given block height."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"height"}),(0,d.jsx)(n.td,{children:"uint32"}),(0,d.jsx)(n.td,{children:"Block height to query"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"ondutyarbitratorindex"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Index of the on-duty arbitrator"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"arbitrators"}),(0,d.jsx)(n.td,{children:"array<string>"}),(0,d.jsx)(n.td,{children:"List of arbitrator public keys"})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "getarbitratorgroupbyheight",\n "params": {\n "height": 171454\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": {\n "ondutyarbitratorindex": 2,\n "arbitrators": [\n "0306e4f...",\n "0282d5a...",\n "03a9b2c..."\n ]\n },\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"getarbiterpeersinfo",children:(0,d.jsx)(n.code,{children:"getarbiterpeersinfo"})}),"\n",(0,d.jsx)(n.p,{children:"Returns network connection information for DPoS arbiter peers."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsx)(n.p,{children:"None."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result (array)"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"ownerpublickey"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Owner public key"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"nodepublickey"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Node public key"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"ip"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Peer IP address"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"connstate"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsxs)(n.td,{children:["Connection state (e.g. ",(0,d.jsx)(n.code,{children:'"EstablishConnection"'}),", ",(0,d.jsx)(n.code,{children:'"NoneConnection"'}),")"]})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "getarbiterpeersinfo",\n "params": {},\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": [\n {\n "ownerpublickey": "0306e4f...",\n "nodepublickey": "0282d5a...",\n "ip": "192.0.2.1",\n "connstate": "EstablishConnection"\n }\n ],\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"getconfirmbyheight",children:(0,d.jsx)(n.code,{children:"getconfirmbyheight"})}),"\n",(0,d.jsx)(n.p,{children:"Returns the block confirmation (DPoS consensus signature) at a given he
1ight."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"height"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Block height"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"verbosity"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsxs)(n.td,{children:[(0,d.jsx)(n.code,{children:"0"})," for hex, ",(0,d.jsx)(n.code,{children:"1"})," for decoded JSON"]})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result (verbosity 1)"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"sponsor"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Public key of the confirm sponsor"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"viewoffset"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"View offset in the consensus round"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"votes"}),(0,d.jsx)(n.td,{children:"array"}),(0,d.jsxs)(n.td,{children:["Array of vote objects with ",(0,d.jsx)(n.code,{children:"signer"})," and ",(0,d.jsx)(n.code,{children:"accept"})," fields"]})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "getconfirmbyheight",\n "params": {\n "height": 171454,\n "verbosity": 1\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": {\n "sponsor": "0306e4f...",\n "viewoffset": 0,\n "votes": [\n {\n "signer": "0282d5a...",\n "accept": true\n },\n {\n "signer": "03a9b2c...",\n "accept": true\n }\n ]\n },\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"getconfirmbyhash",children:(0,d.jsx)(n.code,{children:"getconfirmbyhash"})}),"\n",(0,d.jsx)(n.p,{children:"Returns the block confirmation (DPoS consensus signature) for a given block hash."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"blockhash"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Block hash"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"verbosity"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsxs)(n.td,{children:[(0,d.jsx)(n.code,{children:"0"})," for hex, ",(0,d.jsx)(n.code,{children:"1"})," for decoded JSON"]})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.p,{children:["Same as ",(0,d.jsx)(n.a,{href:"#getconfirmbyheight",children:(0,d.jsx)(n.code,{children:"getconfirmbyheight"})}),"."]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "getconfirmbyhash",\n "params": {\n "blockhash": "68692d63a8bfc8887553b97f99f09e523d34a2b599bf5b388436b2ddc85ed76e",\n "verbosity": 1\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": {\n "sponsor": "0306e4f...",\n "viewoffset": 0,\n "votes": [\n {\n "signer": "0282d5a...",\n "accept": true\n }\n ]\n },\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"estimatesmartfee",children:(0,d.jsx)(n.code,{children:"estimatesmartfee"})}),"\n",(0,d.jsx)(n.p,{children:"Estimates the fee rate needed for a transaction to be confirmed within a given number of blocks."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"confirmations"}),(0,d.jsx)(n.td,{children:"integer"}
1),(0,d.jsx)(n.td,{children:"Target number of blocks for confirmation"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"fee"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Estimated fee rate in sela per KB"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "estimatesmartfee",\n "params": {\n "confirmations": 6\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": 10000,\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h2,{id:"mining",children:"Mining"}),"\n",(0,d.jsx)(n.h3,{id:"togglemining",children:(0,d.jsx)(n.code,{children:"togglemining"})}),"\n",(0,d.jsx)(n.p,{children:"Starts or stops CPU mining on the node."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"mining"}),(0,d.jsx)(n.td,{children:"bool"}),(0,d.jsxs)(n.td,{children:[(0,d.jsx)(n.code,{children:"true"})," to start mining, ",(0,d.jsx)(n.code,{children:"false"})," to stop"]})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"result"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Confirmation message"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "togglemining",\n "params": {\n "mining": true\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": "mining started",\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"discretemining",children:(0,d.jsx)(n.code,{children:"discretemining"})}),"\n",(0,d.jsx)(n.p,{children:"Mines a specified number of blocks instantly. Intended for regtest/testing environments."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"count"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Number of blocks to mine"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"result"}),(0,d.jsx)(n.td,{children:"array<string>"}),(0,d.jsx)(n.td,{children:"Array of mined block hashes"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "discretemining",\n "params": {\n "count": 3\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": [\n "aabb1122...",\n "ccdd3344...",\n "eeff5566..."\n ],\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"getmininginfo",children:(0,d.jsx)(n.code,{children:"getmininginfo"})}),"\n",(0,d.jsx)(n.p,{children:"Returns information about the node's mining state."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsx)(n.p,{children:"None."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"blocks"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Current block height"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"currentblocktx"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Number of transactions in the current block template"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"difficulty"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Current mining difficulty"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"networkhashps"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Estimated network hash rate per second"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"pooledtx"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Number of transactions in the mempool"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"chain"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsxs)(n.td,{children:["Network name (e.g. ",(0,d.jsx)(n.code,{children:'"mainnet"'}),", ",(0,d.jsx)(n.code,{children:'"testnet"'}),", ",(0,d.jsx)(n.code,{children:'"regnet"'}),")"]})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "getmininginfo",\n "params": {},\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": {\n "blocks": 171454,\n "currentblocktx": 12,\n "difficulty": "1234567.89012345",\n "networkhashps": "98765432109876",\n "pooledtx": 47,\n "chain": "mainnet"\n },\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"createauxblock",children:(0,d.jsx)(n.code,{children:"createauxblock"})}),"\n",(0,d.jsx)(n.p,{children:"Creates an auxiliary block for merged mining. A Bitcoin miner calls this to get work from the ELA node."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"paytoaddress"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"ELA address to receive the block reward"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"chainid"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Auxiliary chain ID"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"height"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Block height of the candidate block"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"coinbasevalue"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Block reward in sela"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"bits"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Compact target for the block"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"hash"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Hash of the candidate block"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"previousblockhash"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Previous block hash"})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "createauxblock",\n "params": {\n "paytoaddress": "EXoXaT68VzPBRVpnqRFVkFMaTPmiiVzPqo"\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": {\n "chainid": 1224,\n "height": 171455,\n "coinbasevalue": 150000000,\n "bits": "1a016729",\n "hash": "79c20b21ba5af617a0c147e7fc2c3b4bfb0c283a4d15a2e4624e0cda98e1a0d2",\n "previousblockhash": "68692d63a8bfc8887553b97f99f09e523d34a2b599bf5b388436b2ddc85ed76e"\n },\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"submitauxblock",children:(0,d.jsx)(n.code,{children:"submitauxblock"})}),"\n",(0,d.jsx)(n.p,{children:"Submits a solved auxiliary proof-of-work block. Called by a Bitc
1oin miner after solving a block that includes the ELA auxiliary chain."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"blockhash"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsxs)(n.td,{children:["Hash of the auxiliary block (from ",(0,d.jsx)(n.code,{children:"createauxblock"}),")"]})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"auxpow"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Serialized auxiliary proof-of-work data"})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"result"}),(0,d.jsx)(n.td,{children:"bool"}),(0,d.jsxs)(n.td,{children:[(0,d.jsx)(n.code,{children:"true"})," if accepted, error otherwise"]})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "submitauxblock",\n "params": {\n "blockhash": "79c20b21ba5af617a0c147e7fc2c3b4bfb0c283a4d15a2e4624e0cda98e1a0d2",\n "auxpow": "02000000010000000000..."\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": true,\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h2,{id:"cr-elastos-dao",children:"CR (Elastos DAO)"}),"\n",(0,d.jsx)(n.h3,{id:"listcrcandidates",children:(0,d.jsx)(n.code,{children:"listcrcandidates"})}),"\n",(0,d.jsx)(n.p,{children:"Returns a paginated list of Cyber Republic (CR) council candidates."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"start"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Start index for pagination"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"limit"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Maximum number of results"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"state"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsxs)(n.td,{children:["Filter: ",(0,d.jsx)(n.code,{children:'"all"'}),", ",(0,d.jsx)(n.code,{children:'"pending"'}),", ",(0,d.jsx)(n.code,{children:'"active"'}),", ",(0,d.jsx)(n.code,{children:'"canceled"'}),", ",(0,d.jsx)(n.code,{children:'"returned"'})]})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"code"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Candidate code"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"cid"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Candidate CID (CRC ID)"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"did"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Candidate DID"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"nickname"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Candidate name"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"url"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Candidate info URL"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"location"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Location code"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"state"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Current state"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"votes"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Number of votes received"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"registerheight"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Block height of registration"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"cancelheight"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Block height of cancellation (0 if active)"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"index"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Index in result set"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"totalvotes"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Total votes across all candidates"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"totalcounts"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Total number of candidates matching the filter"})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "listcrcandidates",\n "params": {\n "start": 0,\n "limit": 3,\n "state": "all"\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": {\n "crcandidatesinfo": [\n {\n "code": "21024f3a...",\n "cid": "ihfb4V1u...",\n "did": "igNBwC2P...",\n "nickname": "CR Council Member A",\n "url": "https://example.com/cr-a",\n "location": 86,\n "state": "Active",\n "votes": "12500000.00000000",\n "registerheight": 413568,\n "cancelheight": 0,\n "index": 0\n }\n ],\n "totalvotes": "75000000.00000000",\n "totalcounts": 24\n },\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"getcrdepositcoin",children:(0,d.jsx)(n.code,{children:"getcrdepositcoin"})}),"\n",(0,d.jsx)(n.p,{children:"Returns deposit coin information for a CR member."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"id"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"CRC ID or DID of the CR member"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"publickey"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsxs)(n.td,{children:[(0,d.jsx)(n.em,{children:"(alternative)"})," Public key of the CR member"]})]})]})]}),"\n",(0,d.jsxs)(n.p,{children:["Provide either ",(0,d.jsx)(n.code,{children:"id"})," or ",(0,d.jsx)(n.code,{children:"publickey"}),"."]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"available"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Available (withdrawable) amount"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"deducted"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Deducted penalty amount"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"deposit"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Locked deposit amount"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"assets"}),(0,d.jsx)(n.td,{children:"array"}),(0,d.jsx)(n.td,{children:"Additional asset details"})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "getcrdepositcoin",\n "params": {\n "id": "ihfb4V1u..."\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": {\n "available": "0.00000000",\n "deducted": "0.00000000",\n "deposit": "5000.00000000",\n "assets": []\n },\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"getsecretarygeneral",children:(0,d.jsx)(n.code,{children:"getsecretarygeneral"})}),"\n",(0,d.jsx)(n.p,{children:"Returns the public key of the current CR secretary general."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsx)(n.p,{children:"None."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"secretarygeneral"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Public key of the secretary general"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "getsecretarygeneral",\n "params": {},\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": {\n "secretarygeneral": "0306e4f..."\n },\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"listcurrentcrs",children:(0,d.jsx)(n.code,{children:"listcurrentcrs"})}),"\n",(0,d.jsx)(n.p,{children:"Returns the current active CR council members."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"state"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsxs)(n.td,{children:["Filter: ",(0,d.jsx)(n.code,{children:'"all"'}),", ",(0,d.jsx)(n.code,{children:'"elected"'}),", ",(0,d.jsx)(n.code,{children:'"impeached"'}),", ",(0,d.jsx)(n.code,{children:'"returned"'})]})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"code"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Member code"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"cid"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"CRC ID"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"did"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"DID"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"nickname"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Member name"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"url"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Member info URL"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"location"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Location code"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"impeachmentvotes"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Votes cast for impeachment"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"depositamount"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Deposit amount locked"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"depositaddress"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Deposit address"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"penalty"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Accumulated penalty amount"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"index"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Index in result set"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"totalcounts"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Total number of members matching the filter"})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "listcurrentcrs",\n "params": {\n "state": "all"\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": {\n "crmembersinfo": [\n {\n "code": "21024f3a...",\n "cid": "ihfb4V1u...",\n "did": "igNBwC2P...",\n "nickname": "CR Council Member A",\n "url": "https://example.com/cr-a",\n "location": 86,\n "impeachmentvotes": "0.00000000",\n "depositamount": "5000.00000000",\n "depositaddress": "8VYXVxKKSAxkmRrfmGpQR2Kc66XhG6m3ta",\n "penalty": "0.00000000",\n "index": 0\n }\n ],\n "totalcounts": 12\n },\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"listcrproposalbasestate",children:(0,d.jsx)(n.code,{children:"listcrproposalbasestate"})}),"\n",(0,d.jsx)(n.p,{children:"Returns a paginated list of CR proposal states."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"start"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Start index for pagination"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"limit"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Maximum number of results"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"state"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsxs)(n.td,{children:["Filter: ",(0,d.jsx)(n.code,{children:'"all"'}),", ",(0,d.jsx)(n.code,{children:'"registered"'}),", ",(0,d.jsx)(n.code,{children:'"cragreed"'}),", ",(0,d.jsx)(n.code,{children:'"voteragreed"'}),", ",(0,d.jsx)(n.code,{children:'"finished"'}),", ",(0,d.jsx)(n.code,{children:'"crcanceled"'}),", ",(0,d.jsx)(n.code,{children:'"votercanceled"'}),", ",(0,d.jsx)(n.code,{children:'"aborted"'})]})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"proposalbasestates"}),(0,d.jsx)(n.td,{children:"array"}),(0,d.jsxs)(n.td,{children:["Array of proposal state objects with ",(0,d.jsx)(n.code,{children:"proposalhash"}),", ",(0,d.jsx)(n.code,{children:"title"}),", ",(0,d.jsx)(n.code,{children:"status"}),", ",(0,d.jsx)(n.code,{children:"instate"})]})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"totalcounts"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Total number of proposals matching the filter"})]})]})]}),"\n",(0,d.jsx)(n
1.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "listcrproposalbasestate",\n "params": {\n "start": 0,\n "limit": 5,\n "state": "all"\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": {\n "proposalbasestates": [\n {\n "proposalhash": "ab12cd34...",\n "title": "Community Development Fund",\n "status": "VoterAgreed",\n "instate": "Normal"\n }\n ],\n "totalcounts": 47\n },\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"getcrproposalstate",children:(0,d.jsx)(n.code,{children:"getcrproposalstate"})}),"\n",(0,d.jsx)(n.p,{children:"Returns detailed state information for a specific CR proposal."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"proposalhash"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsxs)(n.td,{children:[(0,d.jsx)(n.em,{children:"(option 1)"})," Hash of the proposal"]})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"drafthash"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsxs)(n.td,{children:[(0,d.jsx)(n.em,{children:"(option 2)"})," Hash of the proposal draft"]})]})]})]}),"\n",(0,d.jsxs)(n.p,{children:["Provide either ",(0,d.jsx)(n.code,{children:"proposalhash"})," or ",(0,d.jsx)(n.code,{children:"drafthash"}),"."]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"status"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Current proposal status"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"proposal"}),(0,d.jsx)(n.td,{children:"object"}),(0,d.jsx)(n.td,{children:"Full proposal details including title, sponsor, budget, etc."})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"proposalstate"}),(0,d.jsx)(n.td,{children:"object"}),(0,d.jsx)(n.td,{children:"State machine details: tracking numbers, review info"})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "getcrproposalstate",\n "params": {\n "proposalhash": "ab12cd34..."\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": {\n "status": "VoterAgreed",\n "proposal": {\n "proposalhash": "ab12cd34...",\n "type": "Normal",\n "categorydata": "",\n "ownerpublickey": "0306e4f...",\n "drafthash": "ef56ab78...",\n "budgets": [\n {\n "type": "Imprest",\n "stage": 0,\n "amount": "10000.00000000"\n }\n ],\n "recipient": "EXoXaT68VzPBRVpnqRFVkFMaTPmiiVzPqo"\n },\n "proposalstate": {\n "registerheight": 500000,\n "status": "VoterAgreed",\n "votestartheight": 500010,\n "votersagreeamount": "125000000.00000000"\n }\n },\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"getproposaldraftdata",children:(0,d.jsx)(n.code,{children:"getproposaldraftdata"})}),"\n",(0,d.jsx)(n.p,{children:"Returns the raw draft data for a CR proposal in hex format."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"drafthash"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Hash of the proposal draft"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"data"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Hex-encoded draft data"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "getproposaldraftdata",\n "params": {\n "drafthash": "ef56ab78..."\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": "0200010013313637...",\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"getcrrelatedstage",children:(0,d.jsx)(n.code,{children:"getcrrelatedstage"})}),"\n",(0,d.jsx)(n.p,{children:"Returns information about the current CR election and voting stage."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsx)(n.p,{children:"None."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"onduty"}),(0,d.jsx)(n.td,{children:"bool"}),(0,d.jsx)(n.td,{children:"Whether the CR council is currently on duty"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"votingstartheight"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Block height when the current voting period started"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"votingendheight"}),(0,d.jsx)(n.td,{children:"integer"}),(0,d.jsx)(n.td,{children:"Block height when the current voting period ends"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"inelectionperiod"}),(0,d.jsx)(n.td,{children:"bool"}),(0,d.jsx)(n.td,{children:"Whether we are in an election period"})]})]})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "getcrrelatedstage",\n "params": {},\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": {\n "onduty": true,\n "votingstartheight": 500000,\n "votingendheight": 510000,\n "inelectionperiod": false\n },\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h2,{id:"cross-chain",children:"Cross-Chain"}),"\n",(0,d.jsx)(n.h3,{id:"submitsidechainillegaldata",children:(0,d.jsx)(n.code,{children:"submitsidechainillegaldata"})}),"\n",(0,d.jsx)(n.p,{children:"Submits evidence of illegal activity detected on a sidechain. Used by arbiter nodes to report sidechain misbehavior to the main chain."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"illegaldata"}),(0,d.jsx)(n.td,{children:"string"}),(0,d.jsx)(n.td,{children:"Hex-encoded illegal data evidence"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"result"}),(0,d.jsx)(n.td,{children:"bool"}),(0,d.jsxs)(n.td,{children:[(0,d.jsx)(n.code,{children:"true"})," if accepted"]})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "submitsidechainillegaldata",\n "params": {\n "illegaldata": "02000100..."\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": true,\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"getexistwithdrawtransactions",children:(0,d.jsx)(n.code,{children:"getexistwithdrawtransactions"})}),"\n",(0,d.jsx)(n.p,{children:"Checks which of the given withdrawal transaction hashes already exist on the main chain. Used to avoid duplicate cross-chain withdrawal processing."}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Parameters"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"txs"}),(0,d.jsx)(n.td,{children:"array<string>"}),(0,d.jsx)(n.td,{children:"Array of withdrawal transaction hashes to check"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Result"})}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{children:"Name"}),(0,d.jsx)(n.th,{children:"Type"}),(0,d.jsx)(n.th,{children:"Description"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{children:"result"}),(0,d.jsx)(n.td,{children:"array<string>"}),(0,d.jsx)(n.td,{children:"Subset of input hashes that already exist"})]})})]}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.strong,{children:"Example"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Request\n{\n "method": "getexistwithdrawtransactions",\n "params": {\n "txs": [\n "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6abcd",\n "b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6abcdef"\n ]\n },\n "id": 1\n}\n'})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-json",children:'// Response\n{\n "id": 1,\n "jsonrpc": "2.0",\n "result": [\n "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6abcd"\n ],\n "error": null\n}\n'})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h2,{id:"resources",children:"Resources"}),"\n",(0,d.jsxs)(n.ul,{children:["\n",(0,d.jsxs)(n.li,{children:[(0,d.jsx)(n.strong,{children:"ELA node source"}),": ",(0,d.jsx)(n.a,{href:"https://github.com/elastos/Elastos.ELA",children:"github.com/elastos/Elastos.ELA"})]}),"\n",(0,d.jsxs)(n.li,{children:[(0,d.jsx)(n.strong,{children:"Node operation guide"}),": ",(0,d.jsx)(n.a,{href:"/blockchain/nodes/ela-full-node",children:"Run an ELA Full Node"})]}),"\n",(0,d.jsxs)(n.li,{children:[(0,d.jsx)(n.strong,{children:"Network endpoints"}),": ",(0,d.jsx)(n.a,{href:"network-endpoints",children:"Network Endpoints"})]}),"\n"]})]})}function x(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,d.jsx)(n,{...e,children:(0,d.jsx)(a,{...e})}):a(e)}},28453(e,n,s){s.d(n,{R:()=>t,x:()=>c});var r=s(96540);const d={},i=r.createContext(d);function t(e){const n=r.useContext(i);return r.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(d):e.components||d:t(e.components),r.createElement(i.Provider,{value:n},e.children)}}}]);
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.