signet.js 0.0.5 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +67 -0
- package/.prettierrc +1 -0
- package/README.md +3 -3
- package/babel.config.js +6 -0
- package/docs/dist/.vocs/icons/arrow-diagonal.svg +3 -0
- package/docs/dist/.vocs/icons/chevron-down.svg +13 -0
- package/docs/dist/.vocs/icons/chevron-up.svg +13 -0
- package/docs/dist/.vocs/icons/link.svg +3 -0
- package/docs/dist/.vocs/search-index-7b499e25.json +1 -0
- package/docs/dist/assets/arbitrary-hash-Cd6eo8ZD.js +309 -0
- package/docs/dist/assets/broadcast-tx-CeTEE9yX.js +8 -0
- package/docs/dist/assets/btc-rpc-adapter-C-qSHpFV.js +226 -0
- package/docs/dist/assets/chain-adapter-interface-B9TpOgQv.js +1280 -0
- package/docs/dist/assets/chain-contract-interface-DEku3k45.js +392 -0
- package/docs/dist/assets/constructor-73n7bp3b.js +161 -0
- package/docs/dist/assets/constructor-Bg7nvLe0.js +14 -0
- package/docs/dist/assets/contract-addresses-BYlrAOs3.js +200 -0
- package/docs/dist/assets/derive-address-and-public-key-DExrKiGV.js +14 -0
- package/docs/dist/assets/finalize-message-signing-W435d71R.js +20 -0
- package/docs/dist/assets/finalize-transaction-signing-BIgJ2dnc.js +36 -0
- package/docs/dist/assets/finalize-transaction-signing-C--HJs8D.js +24 -0
- package/docs/dist/assets/finalize-transaction-signing-CjGmN7d9.js +24 -0
- package/docs/dist/assets/finalize-typed-data-signing-CEOp_GWt.js +21 -0
- package/docs/dist/assets/get-balance-DBC-i6KG.js +13 -0
- package/docs/dist/assets/get-current-signature-deposit-BXm9AzYy.js +6 -0
- package/docs/dist/assets/get-current-signature-deposit-nOw4j1MN.js +6 -0
- package/docs/dist/assets/get-derived-public-key-BXvfo2m2.js +14 -0
- package/docs/dist/assets/get-derived-public-key-DQ1pyiFS.js +14 -0
- package/docs/dist/assets/get-latest-key-version-DWlkMCre.js +6 -0
- package/docs/dist/assets/get-public-key-B4PFoVqu.js +6 -0
- package/docs/dist/assets/get-public-key-B9xkYkD_.js +6 -0
- package/docs/dist/assets/index-BFuwoY4w.js +601 -0
- package/docs/dist/assets/index-C62Mf-vy.js +426 -0
- package/docs/dist/assets/index-D8xhaiVb.js +121 -0
- package/docs/dist/assets/index-DTr0DlO0.js +36 -0
- package/docs/dist/assets/index-V9dXf-ik.js +457 -0
- package/docs/dist/assets/prepare-message-for-signing-DESTq-Hg.js +16 -0
- package/docs/dist/assets/prepare-transaction-for-signing-DIKTU0zj.js +33 -0
- package/docs/dist/assets/prepare-transaction-for-signing-DV_wkZ5g.js +21 -0
- package/docs/dist/assets/prepare-transaction-for-signing-LVDP0COu.js +33 -0
- package/docs/dist/assets/prepare-typed-data-for-signing-CWcmJvw0.js +192 -0
- package/docs/dist/assets/sign-CwtS5LnB.js +13 -0
- package/docs/dist/assets/sign-OQxf9yn7.js +15 -0
- package/docs/dist/assets/signet-quick-start-CQK52nVG.js +350 -0
- package/docs/dist/assets/sponsor-foreign-chain-gas-C9iWXM8Q.js +1 -0
- package/docs/dist/assets/style-CKGXuRqx.css +1 -0
- package/docs/dist/examples/arbitrary-hash/index.html +88 -0
- package/docs/dist/examples/sponsor-foreign-chain-gas/index.html +21 -0
- package/docs/dist/index.html +56 -0
- package/docs/dist/initializeTheme.iife.js +1 -0
- package/docs/dist/introduction/signet-quick-start/index.html +109 -0
- package/docs/dist/primitives/chain-adapter-interface/index.html +515 -0
- package/docs/dist/primitives/chain-contract-interface/index.html +306 -0
- package/docs/dist/primitives/contract-addresses/index.html +97 -0
- package/docs/dist/signet-logo.png +0 -0
- package/docs/dist/signetjs/chain-adapters/bitcoin/btc-rpc-adapter/index.html +148 -0
- package/docs/dist/signetjs/chain-adapters/bitcoin/finalize-transaction-signing/index.html +41 -0
- package/docs/dist/signetjs/chain-adapters/bitcoin/index.html +187 -0
- package/docs/dist/signetjs/chain-adapters/bitcoin/prepare-transaction-for-signing/index.html +34 -0
- package/docs/dist/signetjs/chain-adapters/broadcast-tx/index.html +28 -0
- package/docs/dist/signetjs/chain-adapters/cosmos/finalize-transaction-signing/index.html +41 -0
- package/docs/dist/signetjs/chain-adapters/cosmos/index.html +166 -0
- package/docs/dist/signetjs/chain-adapters/cosmos/prepare-transaction-for-signing/index.html +43 -0
- package/docs/dist/signetjs/chain-adapters/derive-address-and-public-key/index.html +31 -0
- package/docs/dist/signetjs/chain-adapters/evm/finalize-message-signing/index.html +38 -0
- package/docs/dist/signetjs/chain-adapters/evm/finalize-transaction-signing/index.html +41 -0
- package/docs/dist/signetjs/chain-adapters/evm/finalize-typed-data-signing/index.html +39 -0
- package/docs/dist/signetjs/chain-adapters/evm/index.html +129 -0
- package/docs/dist/signetjs/chain-adapters/evm/prepare-message-for-signing/index.html +31 -0
- package/docs/dist/signetjs/chain-adapters/evm/prepare-transaction-for-signing/index.html +34 -0
- package/docs/dist/signetjs/chain-adapters/evm/prepare-typed-data-for-signing/index.html +49 -0
- package/docs/dist/signetjs/chain-adapters/get-balance/index.html +30 -0
- package/docs/dist/signetjs/contracts/evm/constructor/index.html +45 -0
- package/docs/dist/signetjs/contracts/evm/get-current-signature-deposit/index.html +26 -0
- package/docs/dist/signetjs/contracts/evm/get-derived-public-key/index.html +31 -0
- package/docs/dist/signetjs/contracts/evm/get-latest-key-version/index.html +26 -0
- package/docs/dist/signetjs/contracts/evm/get-public-key/index.html +26 -0
- package/docs/dist/signetjs/contracts/evm/sign/index.html +32 -0
- package/docs/dist/signetjs/contracts/near/constructor/index.html +34 -0
- package/docs/dist/signetjs/contracts/near/get-current-signature-deposit/index.html +26 -0
- package/docs/dist/signetjs/contracts/near/get-derived-public-key/index.html +31 -0
- package/docs/dist/signetjs/contracts/near/get-public-key/index.html +26 -0
- package/docs/dist/signetjs/contracts/near/sign/index.html +32 -0
- package/docs/pages/examples/arbitrary-hash.mdx +73 -0
- package/docs/pages/examples/sponsor-foreign-chain-gas.mdx +1 -0
- package/docs/pages/index.mdx +36 -0
- package/docs/pages/introduction/signet-quick-start.mdx +88 -0
- package/docs/pages/primitives/chain-adapter-interface.mdx +45 -0
- package/docs/pages/primitives/chain-contract-interface.mdx +52 -0
- package/docs/pages/primitives/contract-addresses.mdx +27 -0
- package/docs/pages/signetjs/chain-adapters/bitcoin/btc-rpc-adapter.mdx +26 -0
- package/docs/pages/signetjs/chain-adapters/bitcoin/finalize-transaction-signing.mdx +47 -0
- package/docs/pages/signetjs/chain-adapters/bitcoin/index.mdx +119 -0
- package/docs/pages/signetjs/chain-adapters/bitcoin/prepare-transaction-for-signing.mdx +30 -0
- package/docs/pages/signetjs/chain-adapters/broadcast-tx.mdx +23 -0
- package/docs/pages/signetjs/chain-adapters/cosmos/finalize-transaction-signing.mdx +53 -0
- package/docs/pages/signetjs/chain-adapters/cosmos/index.mdx +108 -0
- package/docs/pages/signetjs/chain-adapters/cosmos/prepare-transaction-for-signing.mdx +39 -0
- package/docs/pages/signetjs/chain-adapters/derive-address-and-public-key.mdx +28 -0
- package/docs/pages/signetjs/chain-adapters/evm/finalize-message-signing.mdx +33 -0
- package/docs/pages/signetjs/chain-adapters/evm/finalize-transaction-signing.mdx +44 -0
- package/docs/pages/signetjs/chain-adapters/evm/finalize-typed-data-signing.mdx +34 -0
- package/docs/pages/signetjs/chain-adapters/evm/index.mdx +84 -0
- package/docs/pages/signetjs/chain-adapters/evm/prepare-message-for-signing.mdx +26 -0
- package/docs/pages/signetjs/chain-adapters/evm/prepare-transaction-for-signing.mdx +30 -0
- package/docs/pages/signetjs/chain-adapters/evm/prepare-typed-data-for-signing.mdx +44 -0
- package/docs/pages/signetjs/chain-adapters/get-balance.mdx +26 -0
- package/docs/pages/signetjs/contracts/evm/constructor.mdx +38 -0
- package/docs/pages/signetjs/contracts/evm/get-current-signature-deposit.mdx +17 -0
- package/docs/pages/signetjs/contracts/evm/get-derived-public-key.mdx +28 -0
- package/docs/pages/signetjs/contracts/evm/get-latest-key-version.mdx +17 -0
- package/docs/pages/signetjs/contracts/evm/get-public-key.mdx +17 -0
- package/docs/pages/signetjs/contracts/evm/sign.mdx +36 -0
- package/docs/pages/signetjs/contracts/near/constructor.mdx +29 -0
- package/docs/pages/signetjs/contracts/near/get-current-signature-deposit.mdx +17 -0
- package/docs/pages/signetjs/contracts/near/get-derived-public-key.mdx +28 -0
- package/docs/pages/signetjs/contracts/near/get-public-key.mdx +17 -0
- package/docs/pages/signetjs/contracts/near/sign.mdx +32 -0
- package/docs/public/signet-logo.png +0 -0
- package/docs/snippets/code/chains.ts +42 -0
- package/docs/snippets/code/contract.ts +44 -0
- package/docs/snippets/code/evm/contract.ts +24 -0
- package/docs/snippets/code/evm/env.ts +16 -0
- package/docs/snippets/code/near/env.ts +13 -0
- package/hardhat.config.mts +19 -0
- package/package.json +38 -22
- package/src/chain-adapters/Bitcoin/BTCRpcAdapter/BTCRpcAdapter.ts +15 -0
- package/src/chain-adapters/Bitcoin/BTCRpcAdapter/Mempool/Mempool.ts +101 -0
- package/src/chain-adapters/Bitcoin/BTCRpcAdapter/Mempool/index.ts +1 -0
- package/src/chain-adapters/Bitcoin/BTCRpcAdapter/Mempool/types.ts +72 -0
- package/src/chain-adapters/Bitcoin/BTCRpcAdapter/index.ts +6 -0
- package/src/chain-adapters/Bitcoin/Bitcoin.ts +287 -0
- package/src/chain-adapters/Bitcoin/index.ts +13 -0
- package/src/chain-adapters/Bitcoin/types.ts +48 -0
- package/src/chain-adapters/Bitcoin/utils.ts +14 -0
- package/src/chain-adapters/ChainAdapter.ts +92 -0
- package/src/chain-adapters/Cosmos/Cosmos.ts +258 -0
- package/src/chain-adapters/Cosmos/index.ts +8 -0
- package/src/chain-adapters/Cosmos/types.ts +35 -0
- package/src/chain-adapters/Cosmos/utils.ts +45 -0
- package/src/chain-adapters/EVM/EVM.test.ts +238 -0
- package/src/chain-adapters/EVM/EVM.ts +337 -0
- package/src/chain-adapters/EVM/index.ts +11 -0
- package/src/chain-adapters/EVM/types.ts +53 -0
- package/src/chain-adapters/EVM/utils.ts +27 -0
- package/src/chain-adapters/index.ts +5 -0
- package/src/constants.ts +62 -0
- package/src/contracts/ChainSignatureContract.ts +65 -0
- package/src/contracts/evm/ChainSignaturesContract.ts +323 -0
- package/src/contracts/evm/ChainSignaturesContractABI.ts +359 -0
- package/src/contracts/evm/errors.ts +52 -0
- package/src/contracts/evm/index.ts +10 -0
- package/src/contracts/evm/types.ts +39 -0
- package/src/contracts/evm/utils.ts +41 -0
- package/src/contracts/index.ts +4 -0
- package/src/contracts/near/ChainSignatureContract.ts +196 -0
- package/src/contracts/near/account.ts +42 -0
- package/src/contracts/near/constants.ts +4 -0
- package/src/contracts/near/index.ts +10 -0
- package/src/contracts/near/signAndSend/index.ts +1 -0
- package/src/contracts/near/signAndSend/keypair.ts +178 -0
- package/src/contracts/near/transaction.ts +202 -0
- package/src/contracts/near/types.ts +71 -0
- package/src/index.ts +5 -0
- package/src/types.ts +46 -0
- package/src/utils/cryptography.ts +141 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/publicKey.ts +17 -0
- package/tsconfig.eslint.json +8 -0
- package/tsconfig.json +126 -0
- package/tsup.config.ts +58 -0
- package/vitest.config.ts +19 -0
- package/vocs.config.ts +213 -0
- package/browser/index.browser.cjs +0 -3
- package/browser/index.browser.cjs.map +0 -1
- package/browser/index.browser.js +0 -3
- package/browser/index.browser.js.map +0 -1
- package/node/index.node.cjs +0 -3
- package/node/index.node.cjs.map +0 -1
- package/node/index.node.js +0 -3
- package/node/index.node.js.map +0 -1
- package/types/index.d.cts +0 -919
- package/types/index.d.ts +0 -919
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{u as a,j as s}from"./index-D8xhaiVb.js";const n={title:"prepareMessageForSigning",description:"undefined"};function i(r){const e={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...a(),...r.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"preparemessageforsigning",children:["prepareMessageForSigning",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#preparemessageforsigning",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),`
|
|
2
|
+
`,s.jsxs(e.p,{children:["The ",s.jsx(e.code,{children:"prepareMessageForSigning"})," method prepares a message for MPC signing according to EIP-191 (Ethereum signed message standard)."]}),`
|
|
3
|
+
`,s.jsxs(e.h2,{id:"usage",children:["Usage",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#usage",children:s.jsx(e.div,{"data-autolink-icon":!0})})]}),`
|
|
4
|
+
`,s.jsx(s.Fragment,{children:s.jsx(e.pre,{className:"shiki shiki-themes github-light github-dark-dimmed twoslash lsp",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(e.code,{children:[s.jsx(e.span,{className:"line","data-empty-line":!0,children:" "}),`
|
|
5
|
+
`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" "}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsx(e.div,{className:"twoslash-popup-info-hover",children:s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" message"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" SignableMessage"})]})}),s.jsx(e.span,{className:"twoslash-target",children:"message"})]})}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" "}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsx(e.div,{className:"twoslash-popup-info-hover",children:s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"import"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" chainAdapters"})]})}),s.jsx(e.span,{className:"twoslash-target",children:"chainAdapters"})]})}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsx(e.div,{className:"twoslash-popup-info-hover",children:s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"import"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" evm"})]})}),s.jsx(e.span,{className:"twoslash-target",children:"evm"})]})}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsxs(e.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"type"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" EVMMessage"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ="}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" string"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
|
|
6
|
+
`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" raw"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Hex"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" ByteArray"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
|
|
7
|
+
`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}"})}),`
|
|
8
|
+
`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"export"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" EVMMessage"})]})]}),s.jsx(e.span,{className:"twoslash-target",children:"EVMMessage"})]})}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ="}),s.jsxs(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:[" '","Sign"," ","this"," ","message","'"]})]}),`
|
|
9
|
+
`,s.jsx(e.span,{className:"line","data-empty-line":!0,children:" "}),`
|
|
10
|
+
`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" { "}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsx(e.div,{className:"twoslash-popup-info-hover",children:s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" hashToSign"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" number"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"[]"})]})}),s.jsx(e.span,{className:"twoslash-target",children:"hashToSign"})]})}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" } "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"="}),s.jsxs(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:[" ","await"]}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsx(e.div,{className:"twoslash-popup-info-hover",children:s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" evmChain"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" chainAdapters"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"evm"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"EVM"})]})}),s.jsx(e.span,{className:"twoslash-target",children:"evmChain"})]})}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsxs(e.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:"EVM"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:"prepareMessageForSigning"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"(message: chainAdapters.evm.EVMMessage): "}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:"Promise"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<{"})]}),`
|
|
11
|
+
`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" hashToSign"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" HashToSign"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
|
|
12
|
+
`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}>"})})]}),s.jsx(e.span,{className:"twoslash-target",children:"prepareMessageForSigning"})]})}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"("}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsx(e.div,{className:"twoslash-popup-info-hover",children:s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" message"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" string"})]})}),s.jsx(e.span,{className:"twoslash-target",children:"message"})]})}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:")"})]})]})})}),`
|
|
13
|
+
`,s.jsxs(e.h2,{id:"parameters",children:["Parameters",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#parameters",children:s.jsx(e.div,{"data-autolink-icon":!0})})]}),`
|
|
14
|
+
`,s.jsxs(e.table,{children:[s.jsx(e.thead,{children:s.jsxs(e.tr,{children:[s.jsx(e.th,{children:"Parameter"}),s.jsx(e.th,{children:"Type"}),s.jsx(e.th,{children:"Description"})]})}),s.jsx(e.tbody,{children:s.jsxs(e.tr,{children:[s.jsx(e.td,{children:s.jsx(e.code,{children:"message"})}),s.jsx(e.td,{children:s.jsx(e.code,{children:"EVMMessage"})}),s.jsx(e.td,{children:"The message to be signed"})]})})]}),`
|
|
15
|
+
`,s.jsxs(e.h2,{id:"returns",children:["Returns",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#returns",children:s.jsx(e.div,{"data-autolink-icon":!0})})]}),`
|
|
16
|
+
`,s.jsxs(e.table,{children:[s.jsx(e.thead,{children:s.jsxs(e.tr,{children:[s.jsx(e.th,{children:"Property"}),s.jsx(e.th,{children:"Type"}),s.jsx(e.th,{children:"Description"})]})}),s.jsx(e.tbody,{children:s.jsxs(e.tr,{children:[s.jsx(e.td,{children:s.jsx(e.code,{children:"hashToSign"})}),s.jsx(e.td,{children:s.jsx(e.code,{children:"HashToSign"})}),s.jsx(e.td,{children:"The hash to be signed by the MPC network"})]})})]})]})}function h(r={}){const{wrapper:e}={...a(),...r.components};return e?s.jsx(e,{...r,children:s.jsx(i,{...r})}):i(r)}export{h as default,n as frontmatter};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import{u as i,j as s}from"./index-D8xhaiVb.js";const l={title:"prepareTransactionForSigning",description:"undefined"};function n(a){const e={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...i(),...a.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"preparetransactionforsigning",children:["prepareTransactionForSigning",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#preparetransactionforsigning",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),`
|
|
2
|
+
`,s.jsxs(e.p,{children:["The ",s.jsx(e.code,{children:"prepareTransactionForSigning"})," method prepares a Cosmos transaction for MPC signing by creating the transaction structure and computing the hash that needs to be signed."]}),`
|
|
3
|
+
`,s.jsxs(e.h2,{id:"usage",children:["Usage",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#usage",children:s.jsx(e.div,{"data-autolink-icon":!0})})]}),`
|
|
4
|
+
`,s.jsx(s.Fragment,{children:s.jsx(e.pre,{className:"shiki shiki-themes github-light github-dark-dimmed twoslash lsp",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(e.code,{children:[s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" { "}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsx(e.div,{className:"twoslash-popup-info-hover",children:s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" transaction"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" TxRaw"})]})}),s.jsx(e.span,{className:"twoslash-target",children:"transaction"})]})}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsx(e.div,{className:"twoslash-popup-info-hover",children:s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" hashesToSign"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" number"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"[][]"})]})}),s.jsx(e.span,{className:"twoslash-target",children:"hashesToSign"})]})}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" } "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"="})]}),`
|
|
5
|
+
`,s.jsxs(e.span,{className:"line",children:[s.jsxs(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:[" ","await"]}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsx(e.div,{className:"twoslash-popup-info-hover",children:s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" cosmosChain"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" chainAdapters"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"cosmos"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"Cosmos"})]})}),s.jsx(e.span,{className:"twoslash-target",children:"cosmosChain"})]})}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsxs(e.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"Cosmos."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:"prepareTransactionForSigning"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"(transactionRequest: chainAdapters.cosmos.CosmosTransactionRequest): "}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:"Promise"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<{"})]}),`
|
|
6
|
+
`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" transaction"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" chainAdapters"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"cosmos"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"CosmosUnsignedTransaction"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
|
|
7
|
+
`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" hashesToSign"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" HashToSign"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"[];"})]}),`
|
|
8
|
+
`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}>"})}),s.jsx(e.div,{className:"twoslash-popup-jsdoc",children:s.jsx(e.p,{children:`Prepares a transaction for Sig Network MPC signing by creating the necessary payloads. This method handles chain-specific transaction preparation including:
|
|
9
|
+
Fee calculation
|
|
10
|
+
Nonce/sequence management
|
|
11
|
+
UTXO selection (for UTXO-based chains)
|
|
12
|
+
Transaction encoding`})})]}),s.jsx(e.span,{className:"twoslash-target",children:"prepareTransactionForSigning"})]})}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"({"})]}),`
|
|
13
|
+
`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsx(e.div,{className:"twoslash-popup-info-hover",children:s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"CosmosTransactionRequest.address: string"})})}),s.jsx(e.span,{className:"twoslash-target",children:"address"})]})}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsxs(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:["'","cosmos1","...'"]}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:","})]}),`
|
|
14
|
+
`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsx(e.div,{className:"twoslash-popup-info-hover",children:s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"CosmosTransactionRequest.publicKey: string"})})}),s.jsx(e.span,{className:"twoslash-target",children:"publicKey"})]})}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsxs(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:["'","0350e8","...'"]}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:","})]}),`
|
|
15
|
+
`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsx(e.div,{className:"twoslash-popup-info-hover",children:s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"CosmosTransactionRequest.messages: EncodeObject[]"})})}),s.jsx(e.span,{className:"twoslash-target",children:"messages"})]})}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": ["})]}),`
|
|
16
|
+
`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})}),`
|
|
17
|
+
`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsx(e.div,{className:"twoslash-popup-info-hover",children:s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"EncodeObject.typeUrl: string"})})}),s.jsx(e.span,{className:"twoslash-target",children:"typeUrl"})]})}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsxs(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:["'/","cosmos",".","bank",".","v1beta1",".","MsgSend","'"]}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:","})]}),`
|
|
18
|
+
`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsx(e.div,{className:"twoslash-popup-info-hover",children:s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"EncodeObject.value: any"})})}),s.jsx(e.span,{className:"twoslash-target",children:"value"})]})}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": {"})]}),`
|
|
19
|
+
`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsx(e.div,{className:"twoslash-popup-info-hover",children:s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"fromAddress"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": string"})]})}),s.jsx(e.span,{className:"twoslash-target",children:"fromAddress"})]})}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsxs(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:["'","cosmos1","...'"]}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:","})]}),`
|
|
20
|
+
`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsx(e.div,{className:"twoslash-popup-info-hover",children:s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"toAddress"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": string"})]})}),s.jsx(e.span,{className:"twoslash-target",children:"toAddress"})]})}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsxs(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:["'","cosmos1","...'"]}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:","})]}),`
|
|
21
|
+
`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsxs(e.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"amount"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": {"})]}),`
|
|
22
|
+
`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" denom"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": string;"})]}),`
|
|
23
|
+
`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" amount"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": string;"})]}),`
|
|
24
|
+
`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}[]"})})]}),s.jsx(e.span,{className:"twoslash-target",children:"amount"})]})}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": [{ "}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsx(e.div,{className:"twoslash-popup-info-hover",children:s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"denom"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": string"})]})}),s.jsx(e.span,{className:"twoslash-target",children:"denom"})]})}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsxs(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:["'","uatom","'"]}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsx(e.div,{className:"twoslash-popup-info-hover",children:s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"amount"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": string"})]})}),s.jsx(e.span,{className:"twoslash-target",children:"amount"})]})}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsxs(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:["'","1000000","'"]}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" }],"})]}),`
|
|
25
|
+
`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" },"})}),`
|
|
26
|
+
`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" },"})}),`
|
|
27
|
+
`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ],"})}),`
|
|
28
|
+
`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsx(e.div,{className:"twoslash-popup-info-hover",children:s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"CosmosTransactionRequest.memo"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" string "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"|"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"})]})}),s.jsx(e.span,{className:"twoslash-target",children:"memo"})]})}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsxs(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:["'","Token"," ","transfer","'"]}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:","})]}),`
|
|
29
|
+
`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" })"})})]})})}),`
|
|
30
|
+
`,s.jsxs(e.h2,{id:"parameters",children:["Parameters",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#parameters",children:s.jsx(e.div,{"data-autolink-icon":!0})})]}),`
|
|
31
|
+
`,s.jsxs(e.table,{children:[s.jsx(e.thead,{children:s.jsxs(e.tr,{children:[s.jsx(e.th,{children:"Parameter"}),s.jsx(e.th,{children:"Type"}),s.jsx(e.th,{children:"Description"})]})}),s.jsx(e.tbody,{children:s.jsxs(e.tr,{children:[s.jsx(e.td,{children:s.jsx(e.code,{children:"transactionRequest"})}),s.jsx(e.td,{children:s.jsx(e.code,{children:"CosmosTransactionRequest"})}),s.jsx(e.td,{children:"The transaction request object containing address, publicKey, messages, and optional memo and fee settings"})]})})]}),`
|
|
32
|
+
`,s.jsxs(e.h2,{id:"returns",children:["Returns",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#returns",children:s.jsx(e.div,{"data-autolink-icon":!0})})]}),`
|
|
33
|
+
`,s.jsxs(e.table,{children:[s.jsx(e.thead,{children:s.jsxs(e.tr,{children:[s.jsx(e.th,{children:"Property"}),s.jsx(e.th,{children:"Type"}),s.jsx(e.th,{children:"Description"})]})}),s.jsxs(e.tbody,{children:[s.jsxs(e.tr,{children:[s.jsx(e.td,{children:s.jsx(e.code,{children:"transaction"})}),s.jsx(e.td,{children:s.jsx(e.code,{children:"CosmosUnsignedTransaction"})}),s.jsx(e.td,{children:"Object containing the unsigned transaction"})]}),s.jsxs(e.tr,{children:[s.jsx(e.td,{children:s.jsx(e.code,{children:"hashesToSign"})}),s.jsx(e.td,{children:s.jsx(e.code,{children:"string[]"})}),s.jsx(e.td,{children:"Array of hashes that need to be signed"})]})]})]})]})}function c(a={}){const{wrapper:e}={...i(),...a.components};return e?s.jsx(e,{...a,children:s.jsx(n,{...a})}):n(a)}export{c as default,l as frontmatter};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import{u as r,j as s}from"./index-D8xhaiVb.js";const l={title:"prepareTransactionForSigning",description:"undefined"};function n(i){const e={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...r(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"preparetransactionforsigning",children:["prepareTransactionForSigning",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#preparetransactionforsigning",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),`
|
|
2
|
+
`,s.jsxs(e.p,{children:["The ",s.jsx(e.code,{children:"prepareTransactionForSigning"})," method prepares a Bitcoin transaction for MPC signing by creating a PSBT (Partially Signed Bitcoin Transaction) and computing the hash that needs to be signed."]}),`
|
|
3
|
+
`,s.jsxs(e.h2,{id:"usage",children:["Usage",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#usage",children:s.jsx(e.div,{"data-autolink-icon":!0})})]}),`
|
|
4
|
+
`,s.jsx(s.Fragment,{children:s.jsx(e.pre,{className:"shiki shiki-themes github-light github-dark-dimmed twoslash lsp",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(e.code,{children:[s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" { "}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsx(e.div,{className:"twoslash-popup-info-hover",children:s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" transaction"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" chainAdapters"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"btc"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"BTCUnsignedTransaction"})]})}),s.jsx(e.span,{className:"twoslash-target",children:"transaction"})]})}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsx(e.div,{className:"twoslash-popup-info-hover",children:s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" hashesToSign"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" number"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"[][]"})]})}),s.jsx(e.span,{className:"twoslash-target",children:"hashesToSign"})]})}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" } "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"="})]}),`
|
|
5
|
+
`,s.jsxs(e.span,{className:"line",children:[s.jsxs(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:[" ","await"]}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsx(e.div,{className:"twoslash-popup-info-hover",children:s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" btcChain"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" chainAdapters"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"btc"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"Bitcoin"})]})}),s.jsx(e.span,{className:"twoslash-target",children:"btcChain"})]})}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsxs(e.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"Bitcoin."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:"prepareTransactionForSigning"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"(transactionRequest: chainAdapters.btc.BTCTransactionRequest): "}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:"Promise"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<{"})]}),`
|
|
6
|
+
`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" transaction"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" chainAdapters"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"btc"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"BTCUnsignedTransaction"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
|
|
7
|
+
`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" hashesToSign"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" HashToSign"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"[];"})]}),`
|
|
8
|
+
`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}>"})}),s.jsx(e.div,{className:"twoslash-popup-jsdoc",children:s.jsx(e.p,{children:`Prepares a transaction for Sig Network MPC signing by creating the necessary payloads. This method handles chain-specific transaction preparation including:
|
|
9
|
+
Fee calculation
|
|
10
|
+
Nonce/sequence management
|
|
11
|
+
UTXO selection (for UTXO-based chains)
|
|
12
|
+
Transaction encoding`})})]}),s.jsx(e.span,{className:"twoslash-target",children:"prepareTransactionForSigning"})]})}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"({"})]}),`
|
|
13
|
+
`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsx(e.div,{className:"twoslash-popup-info-hover",children:s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"from"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": string"})]})}),s.jsx(e.span,{className:"twoslash-target",children:"from"})]})}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsxs(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:["'","bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh","'"]}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:","})]}),`
|
|
14
|
+
`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsx(e.div,{className:"twoslash-popup-info-hover",children:s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"to"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": string"})]})}),s.jsx(e.span,{className:"twoslash-target",children:"to"})]})}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsxs(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:["'","bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4","'"]}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:","})]}),`
|
|
15
|
+
`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsx(e.div,{className:"twoslash-popup-info-hover",children:s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"value"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": string"})]})}),s.jsx(e.span,{className:"twoslash-target",children:"value"})]})}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsxs(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:["'","0",".","001","'"]}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsxs(e.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:["// ","0",".","001"," ","BTC"]})]}),`
|
|
16
|
+
`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(e.span,{className:"twoslash-hover",children:[s.jsx(e.div,{className:"twoslash-popup-info-hover",children:s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"publicKey"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": string"})]})}),s.jsx(e.span,{className:"twoslash-target",children:"publicKey"})]})}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsxs(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:["'","0235a3","...'"]}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:","})]}),`
|
|
17
|
+
`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" })"})})]})})}),`
|
|
18
|
+
`,s.jsxs(e.h2,{id:"parameters",children:["Parameters",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#parameters",children:s.jsx(e.div,{"data-autolink-icon":!0})})]}),`
|
|
19
|
+
`,s.jsxs(e.table,{children:[s.jsx(e.thead,{children:s.jsxs(e.tr,{children:[s.jsx(e.th,{children:"Parameter"}),s.jsx(e.th,{children:"Type"}),s.jsx(e.th,{children:"Description"})]})}),s.jsx(e.tbody,{children:s.jsxs(e.tr,{children:[s.jsx(e.td,{children:s.jsx(e.code,{children:"transactionRequest"})}),s.jsx(e.td,{children:s.jsx(e.code,{children:"BTCTransactionRequest"})}),s.jsx(e.td,{children:"The transaction request object containing from, to, value, publicKey, and optional feeRate and utxos"})]})})]}),`
|
|
20
|
+
`,s.jsxs(e.h2,{id:"returns",children:["Returns",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#returns",children:s.jsx(e.div,{"data-autolink-icon":!0})})]}),`
|
|
21
|
+
`,s.jsxs(e.table,{children:[s.jsx(e.thead,{children:s.jsxs(e.tr,{children:[s.jsx(e.th,{children:"Property"}),s.jsx(e.th,{children:"Type"}),s.jsx(e.th,{children:"Description"})]})}),s.jsxs(e.tbody,{children:[s.jsxs(e.tr,{children:[s.jsx(e.td,{children:s.jsx(e.code,{children:"transaction"})}),s.jsx(e.td,{children:s.jsx(e.code,{children:"BTCUnsignedTransaction"})}),s.jsx(e.td,{children:"Object containing the unsigned PSBT"})]}),s.jsxs(e.tr,{children:[s.jsx(e.td,{children:s.jsx(e.code,{children:"hashesToSign"})}),s.jsx(e.td,{children:s.jsx(e.code,{children:"string[]"})}),s.jsx(e.td,{children:"Array of hashes that need to be signed"})]})]})]})]})}function c(i={}){const{wrapper:e}={...r(),...i.components};return e?s.jsx(e,{...i,children:s.jsx(n,{...i})}):n(i)}export{c as default,l as frontmatter};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import{u as n,j as s}from"./index-D8xhaiVb.js";const a={title:"prepareTransactionForSigning",description:"undefined"};function r(e){const i={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...n(),...e.components};return s.jsxs(s.Fragment,{children:[s.jsx(i.header,{children:s.jsxs(i.h1,{id:"preparetransactionforsigning",children:["prepareTransactionForSigning",s.jsx(i.a,{"aria-hidden":"true",tabIndex:"-1",href:"#preparetransactionforsigning",children:s.jsx(i.div,{"data-autolink-icon":!0})})]})}),`
|
|
2
|
+
`,s.jsxs(i.p,{children:["The ",s.jsx(i.code,{children:"prepareTransactionForSigning"})," method prepares an EVM transaction for MPC signing by adding necessary fields like gas estimation, nonce, and chain ID."]}),`
|
|
3
|
+
`,s.jsxs(i.h2,{id:"usage",children:["Usage",s.jsx(i.a,{"aria-hidden":"true",tabIndex:"-1",href:"#usage",children:s.jsx(i.div,{"data-autolink-icon":!0})})]}),`
|
|
4
|
+
`,s.jsx(s.Fragment,{children:s.jsx(i.pre,{className:"shiki shiki-themes github-light github-dark-dimmed twoslash lsp",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(i.code,{children:[s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" { "}),s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:s.jsxs(i.span,{className:"twoslash-hover",children:[s.jsxs(i.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" transaction"}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
|
|
5
|
+
`,s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" data"}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(i.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" `0x${"}),s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:"string"}),s.jsx(i.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:"}`"}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
|
|
6
|
+
`,s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" from"}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(i.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" `0x${"}),s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:"string"}),s.jsx(i.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:"}`"}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
|
|
7
|
+
`,s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" gas"}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" bigint"}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
|
|
8
|
+
`,s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" nonce"}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" number"}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
|
|
9
|
+
`,s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" to"}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(i.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" `0x${"}),s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:"string"}),s.jsx(i.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:"}`"}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" null"}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
|
|
10
|
+
`,s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" type"}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(i.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:' "eip1559"'}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
|
|
11
|
+
`,s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" value"}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" bigint"}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
|
|
12
|
+
`,s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ..."}),s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" 9"}),s.jsx(i.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" more"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ...;"})]}),`
|
|
13
|
+
`,s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" sidecars"}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
|
|
14
|
+
`,s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"} "}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"&"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
|
|
15
|
+
`,s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ..."}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
|
|
16
|
+
`,s.jsx(i.span,{className:"line",children:s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}"})})]}),s.jsx(i.span,{className:"twoslash-target",children:"transaction"})]})}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:s.jsxs(i.span,{className:"twoslash-hover",children:[s.jsx(i.div,{className:"twoslash-popup-info-hover",children:s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" hashesToSign"}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" number"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"[][]"})]})}),s.jsx(i.span,{className:"twoslash-target",children:"hashesToSign"})]})}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" } "}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"="})]}),`
|
|
17
|
+
`,s.jsxs(i.span,{className:"line",children:[s.jsxs(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:[" ","await"]}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(i.span,{className:"twoslash-hover",children:[s.jsx(i.div,{className:"twoslash-popup-info-hover",children:s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" evmChain"}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(i.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" chainAdapters"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(i.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"evm"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(i.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"EVM"})]})}),s.jsx(i.span,{className:"twoslash-target",children:"evmChain"})]})}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(i.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:s.jsxs(i.span,{className:"twoslash-hover",children:[s.jsxs(i.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:"EVM"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(i.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:"prepareTransactionForSigning"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"(transactionRequest: chainAdapters.evm.EVMTransactionRequest): "}),s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:"Promise"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<{"})]}),`
|
|
18
|
+
`,s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" transaction"}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(i.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" chainAdapters"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(i.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"evm"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(i.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"EVMUnsignedTransaction"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
|
|
19
|
+
`,s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" hashesToSign"}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(i.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" HashToSign"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"[];"})]}),`
|
|
20
|
+
`,s.jsx(i.span,{className:"line",children:s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}>"})}),s.jsx(i.div,{className:"twoslash-popup-jsdoc",children:s.jsx(i.p,{children:`Prepares a transaction for Sig Network MPC signing by creating the necessary payloads. This method handles chain-specific transaction preparation including:
|
|
21
|
+
Fee calculation
|
|
22
|
+
Nonce/sequence management
|
|
23
|
+
UTXO selection (for UTXO-based chains)
|
|
24
|
+
Transaction encoding`})})]}),s.jsx(i.span,{className:"twoslash-target",children:"prepareTransactionForSigning"})]})}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"({"})]}),`
|
|
25
|
+
`,s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(i.span,{className:"twoslash-hover",children:[s.jsxs(i.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"to"}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(i.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" `0x${"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"string"}),s.jsx(i.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:"}`"}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" null"}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"})]}),s.jsx(i.div,{className:"twoslash-popup-jsdoc",children:s.jsx(i.p,{children:"Transaction recipient"})})]}),s.jsx(i.span,{className:"twoslash-target",children:"to"})]})}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsxs(i.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:["'","0x742d35Cc6634C0532925a3b844Bc454e4438f44e","'"]}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:","})]}),`
|
|
26
|
+
`,s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(i.span,{className:"twoslash-hover",children:[s.jsxs(i.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"EVMTransactionRequest.from: "}),s.jsx(i.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:"`0x${"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"string"}),s.jsx(i.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:"}`"})]}),s.jsx(i.div,{className:"twoslash-popup-jsdoc",children:s.jsx(i.p,{children:"Transaction sender"})})]}),s.jsx(i.span,{className:"twoslash-target",children:"from"})]})}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsxs(i.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:["'","0x8626f6940E2eb28930eFb4CeF49B2d1F2C9C1199","'"]}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:","})]}),`
|
|
27
|
+
`,s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(i.span,{className:"twoslash-hover",children:[s.jsxs(i.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"value"}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" bigint "}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"|"}),s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"})]}),s.jsx(i.div,{className:"twoslash-popup-jsdoc",children:s.jsx(i.p,{children:"Value in wei sent with this transaction"})})]}),s.jsx(i.span,{className:"twoslash-target",children:"value"})]})}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:"1"}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"n"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsxs(i.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:["// ","1"," ","wei"]})]}),`
|
|
28
|
+
`,s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(i.span,{className:"twoslash-hover",children:[s.jsxs(i.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"data"}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(i.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" `0x${"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"string"}),s.jsx(i.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:"}`"}),s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(i.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"})]}),s.jsx(i.div,{className:"twoslash-popup-jsdoc",children:s.jsx(i.p,{children:"Contract code or a hashed method call with encoded args"})})]}),s.jsx(i.span,{className:"twoslash-target",children:"data"})]})}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsxs(i.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:["'","0x","'"]}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsxs(i.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:["// ","Empty"," ","data"," ","for"," ","a"," ","simple"," ","ETH"," ","transfer"]})]}),`
|
|
29
|
+
`,s.jsx(i.span,{className:"line",children:s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" })"})})]})})}),`
|
|
30
|
+
`,s.jsxs(i.h2,{id:"parameters",children:["Parameters",s.jsx(i.a,{"aria-hidden":"true",tabIndex:"-1",href:"#parameters",children:s.jsx(i.div,{"data-autolink-icon":!0})})]}),`
|
|
31
|
+
`,s.jsxs(i.table,{children:[s.jsx(i.thead,{children:s.jsxs(i.tr,{children:[s.jsx(i.th,{children:"Parameter"}),s.jsx(i.th,{children:"Type"}),s.jsx(i.th,{children:"Description"})]})}),s.jsx(i.tbody,{children:s.jsxs(i.tr,{children:[s.jsx(i.td,{children:s.jsx(i.code,{children:"transactionRequest"})}),s.jsx(i.td,{children:s.jsx(i.code,{children:"EVMTransactionRequest"})}),s.jsx(i.td,{children:"The transaction request object"})]})})]}),`
|
|
32
|
+
`,s.jsxs(i.h2,{id:"returns",children:["Returns",s.jsx(i.a,{"aria-hidden":"true",tabIndex:"-1",href:"#returns",children:s.jsx(i.div,{"data-autolink-icon":!0})})]}),`
|
|
33
|
+
`,s.jsxs(i.table,{children:[s.jsx(i.thead,{children:s.jsxs(i.tr,{children:[s.jsx(i.th,{children:"Property"}),s.jsx(i.th,{children:"Type"}),s.jsx(i.th,{children:"Description"})]})}),s.jsxs(i.tbody,{children:[s.jsxs(i.tr,{children:[s.jsx(i.td,{children:s.jsx(i.code,{children:"transaction"})}),s.jsx(i.td,{children:s.jsx(i.code,{children:"EVMUnsignedTransaction"})}),s.jsx(i.td,{children:"The prepared transaction with all required fields"})]}),s.jsxs(i.tr,{children:[s.jsx(i.td,{children:s.jsx(i.code,{children:"hashesToSign"})}),s.jsx(i.td,{children:s.jsx(i.code,{children:"HashToSign[]"})}),s.jsx(i.td,{children:"Array of hash(es) to be signed by the MPC network"})]})]})]})]})}function c(e={}){const{wrapper:i}={...n(),...e.components};return i?s.jsx(i,{...e,children:s.jsx(r,{...e})}):r(e)}export{c as default,a as frontmatter};
|