1"use strict";(globalThis.webpackChunkrebar_docs=globalThis.webpackChunkrebar_docs||[]).push([[864],{27814(e,t,a){a.r(t),a.d(t,{assets:()=>w,contentTitle:()=>v,default:()=>x,frontMatter:()=>k,metadata:()=>n,toc:()=>f});const n=JSON.parse('{"id":"api/data/json-rpc/alkanes/preview-getbytecode","title":"Preview bytecode for a block and transaction","description":"Retrieves bytecode for a specific block and transaction in the mempool","source":"@site/docs/api/data/json-rpc/alkanes/preview-getbytecode.api.mdx","sourceDirName":"api/data/json-rpc/alkanes","slug":"/api/data/json-rpc/alkanes/preview-getbytecode","permalink":"/api/data/json-rpc/alkanes/preview-getbytecode","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"preview-getbytecode","title":"Preview bytecode for a block and transaction","description":"Retrieves bytecode for a specific block and transaction in the mempool","sidebar_label":"Preview bytecode for a block and transaction","hide_title":true,"hide_table_of_contents":true,"api":"eJzFVV1v0zAU/SuWn0Dq1wZPfRsTgiHBqm48VRVynNvGmxMb2+laRfnv3OskzbpWE7Ah8tD64/r4+J7j64oHsfZ8uuA5BOEzBw8/rIONggc+4ELfiwI8Xw54Cl46ZYMyBZ/yOQSnYAOeJbsA0qTAVsYxwbwFqVZKskQbec9EkbLgROGFpJVMFSxkwHLIrTEadzAWnKCpqxRh250/QehgMcTBzxJ8+GDSHZ9WsascYHhwJQy4NEWAItCUsFYrGeHGd56IVtzLDHJBrbCzgHuY5A5kaHEboAWnaGcljmIaMpNiwwonco8NldL5rSOqQWE2EKuL72E9JqRYYzgUZU6Q56PJcd6+3Fx/G85nl2wDztNQvd/xGahjaY6Av0YQFgyTQmuCbfn3sMI5seNPF84oDALSYV2ACnCwsOWDmLAVudVAnKK+n2GL8esDuSbb0WgEBfVS1NuWAfs4rkVAFfmyjhnt0RXKtwZ3RGzeyM5UiuqipTCkrnsOkeAJv+DoRugSDlSKYvSZPun1Ll8vOFpzsrM6fmQwb03hG6rnkwn9HZ7xppQSvF+VmnXB/NUdrdI45Usd/q2R/1rWPb0TLA5XoyrDToB95WkXv9QdUbueCqp9dv7uvUhkSirXnap7E1njQ/RNyLA37mrlgHtwlBXMXcVLp3EyC8H66XiM240cJMJpkfiRMse30Zm0bEplg8JrTD0xnfdV8GN3C/+XwyckdrEyUS8ViAq/aI7PyBMXsys2ZI+Q2ZtZw+LtiRPHiafvyG8+H537pvxsNMEMUN1DWXIRb0qBle0Pt3jKr+pv4+s9eq3HA2zD2Gqh4u2JTqlaOy0eP70ZGQ2HqioRHr47Xdc0jH5w+CIusLkRTokkFmaqrxmIFK1D/rsHDOGXzRmGt7TxoLsCx9WlHnQrLrAw2fBs7PKR3WbXN7cYnLRvdB7vGneCbEe/Ux7felodr2Ycq9BWxboUa4ptMOn7BQlN8/0=","sidebar_class_name":"post api-method","info_path":"api/data/json-rpc/alkanes/alkanes-rpc-api-getbytecode-preview","custom_edit_url":null},"sidebar":"api","previous":{"title":"Pack runes into a transaction","permalink":"/api/data/json-rpc/alkanes/pack"},"next":{"title":"Simulate a transaction","permalink":"/api/data/json-rpc/alkanes/simulate"}}');var s=a(86070),r=a(38322),i=a(31936),o=a.n(i),c=a(62372),p=a.n(c),d=a(39822),l=a.n(d),b=a(22212),u=a.n(b),m=(a(49233),a(41737),a(21699)),y=a(4538);const k={id:"preview-getbytecode",title:"Preview bytecode for a block and transaction",description:"Retrieves bytecode for a specific block and transaction in the mempool",sidebar_label:"Preview bytecode for a block and transaction",hide_title:!0,hide_table_of_contents:!0,api:"eJzFVV1v0zAU/SuWn0Dq1wZPfRsTgiHBqm48VRVynNvGmxMb2+laRfnv3OskzbpWE7Ah8tD64/r4+J7j64oHsfZ8uuA5BOEzBw8/rIONggc+4ELfiwI8Xw54Cl46ZYMyBZ/yOQSnYAOeJbsA0qTAVsYxwbwFqVZKskQbec9EkbLgROGFpJVMFSxkwHLIrTEadzAWnKCpqxRh250/QehgMcTBzxJ8+GDSHZ9WsascYHhwJQy4NEWAItCUsFYrGeHGd56IVtzLDHJBrbCzgHuY5A5kaHEboAWnaGcljmIaMpNiwwonco8NldL5rSOqQWE2EKuL72E9JqRYYzgUZU6Q56PJcd6+3Fx/G85nl2wDztNQvd/xGahjaY6Av0YQFgyTQmuCbfn3sMI5seNPF84oDALSYV2ACnCwsOWDmLAVudVAnKK+n2GL8esDuSbb0WgEBfVS1NuWAfs4rkVAFfmyjhnt0RXKtwZ3RGzeyM5UiuqipTCkrnsOkeAJv+DoRugSDlSKYvSZPun1Ll8vOFpzsrM6fmQwb03hG6rnkwn9HZ7xppQSvF+VmnXB/NUdrdI45Usd/q2R/1rWPb0TLA5XoyrDToB95WkXv9QdUbueCqp9dv7uvUhkSirXnap7E1njQ/RNyLA37mrlgHtwlBXMXcVLp3EyC8H66XiM240cJMJpkfiRMse30Zm0bEplg8JrTD0xnfdV8GN3C/+XwyckdrEyUS8ViAq/aI7PyBMXsys2ZI+Q2ZtZw+LtiRPHiafvyG8+H537pvxsNMEMUN1DWXIRb0qBle0Pt3jKr+pv4+s9eq3HA2zD2Gqh4u2JTqlaOy0eP70ZGQ2HqioRHr47Xdc0jH5w+CIusLkRTokkFmaqrxmIFK1D/rsHDOGXzRmGt7TxoLsCx9WlHnQrLrAw2fBs7PKR3WbXN7cYnLRvdB7vGneCbEe/Ux7felodr2Ycq9BWxboUa4ptMOn7BQlN8/0=",sidebar_class_name:"post api-method",info_path:"api/data/json-rpc/alkanes/alkanes-rpc-api-getbytecode-preview",custom_edit_url:null},v=void 0,w={},f=[];function h(e){const t={p:"p",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m.default,{as:"h1",className:"openapi__heading",children:"Preview bytecode for a block and transaction"}),"\n",(0,s.jsx)(o(),{method:"post",path:"/alkanes",context:"endpoint"}),"\n",(0,s.jsx)(t.p,{children:"Retrieves bytecode for a specific block and transaction in the mempool"}),"\n",(0,s.jsx)(m.default,{id:"request",as:"h2",className:"openapi-tabs__heading",children:(0,s.jsx)(y.default,{id:"theme.openapi.request.title",children:"Request"})}),"\n",(0,s.jsx)(p(),{parameters:void 0}),"\n",(0,s.jsx)(l(),{...a(51503)}),"\n",(0,s.jsx)(u(),{...a(93537)})]})}function x(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},51503(e){e.exports=JSON.parse('{"title":"Body","body":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method","params","id"],"properties":{"jsonrpc":{"type":"string","enum":["2.0"],"description":"JSON-RPC version"},"method":{"type":"string","enum":["metashrew_preview"],"description":"Method to call"},"params":{"type":"array","description":"Parameters array","items":{"type":"string"},"example":["blockHex","getbytecode","0x...encoded input...","latest"]},"id":{"type":"integer","description":"Request identifier"}}},"examples":{"previewGetbytecode":{"value":{"jsonrpc":"2.0","method":"metashrew_preview","params":["blockHex","getbytecode","0x...encoded input...","latest"],"id":1}}}}}}}')},93537(e){e.exports=JSON.parse('{"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","id","result"],"properties":{"jsonrpc":{"type":"string","enum":["2.0"],"description":"JSON-RPC version"},"id":{"type":"integer","description":"Request identifier"},"result":{"type":"string","description":"Hex-encoded bytecode result"}}},"examples":{"previewGetbytecode":{"value":{"jsonrpc":"2.0","id":1,"result":"0x1234abcd..."}}}}}}}}')}}]);
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.