Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fee calculation for tx "OracleValidator" #336

Open
jinglescode opened this issue Oct 17, 2024 · 1 comment · May be fixed by #344
Open

fee calculation for tx "OracleValidator" #336

jinglescode opened this issue Oct 17, 2024 · 1 comment · May be fixed by #344
Assignees

Comments

@jinglescode
Copy link
Member

jinglescode commented Oct 17, 2024

@twwu123 check this JSON from this tx:

txBodyJson {"inputs":[{"pubKeyTxIn":{"txIn":{"txHash":"e637646b721e730e7f8f1336cb46736c796d069e4af9b5ad175f3805fd4253ef","txIndex":0,"amount":[{"unit":"lovelace","quantity":"3008380"}],"address":"addr_test1vpvx0sacufuypa2k4sngk7q40zc5c4npl337uusdh64kv0c7e4cxr"}}},{"pubKeyTxIn":{"txIn":{"txHash":"bb5c5a24c7bbfb819e5560e73b5bfa22982cb2bced632eb25d6ee7ed5a6b6e60","txIndex":1,"amount":[{"unit":"lovelace","quantity":"47321359"}],"address":"addr_test1qpvx0sacufuypa2k4sngk7q40zc5c4npl337uusdh64kv0uafhxhu32dys6pvn6wlw8dav6cmp4pmtv7cc3yel9uu0nq93swx9"}}}],"outputs":[{"address":"addr_test1vpvx0sacufuypa2k4sngk7q40zc5c4npl337uusdh64kv0c7e4cxr","amount":[],"datum":null,"referenceScript":{"providedScriptSource":{"scriptCbor":"5906d05906cd01010032323232323232253330023232323232533233008300130093754004264646464646464a66601e60060022a66602460226ea8028540085854ccc03cc02000454ccc048c044dd50050a8010b0a9998079802000899191919299980b180c8010a8030b1bae30170013017002375c602a00260226ea802854ccc03ccdc3a400c0022a66602460226ea8028540085858c03cdd5004899191919192999809180318099baa008132323232323232323232323232323232323232323232325333029301d00713333001019011300200f4800854ccc0a4c08801c4cccc004064034c00802d2002132533302a301f00813232323232325333033303600213253330313026303237540022646464a6660686050606a6ea800c4c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c94ccc12cc1380084cc0540444cc0540344cc05401c4c94ccc124c8cc004004cc138dd4815198271ba90294bd701129998270008a51132533304c3302303b375c60a20042660060060022940c144004400452819baf0173232323232323230223305330540073305330540063305330540053305330540043305330540033305330540023305330540013305330543055001330533752048660a66ea408d2f5c060a800260a600260a400260a200260a0002609e00260946ea80d858dd7182600098260011bae304a001304a002375a60900026090004608c002608c0046eb8c110004c110008dd698210009821001182000098200011bae303e001303e002303c001303c002375c6074002606c6ea800c58894ccc0d4c0a4c0d8dd5001099191919299981e181f80109980380189919299981d9817800899192999820182180109919299981f981980089919299982218238010998078008a8020b182280098209baa0031533303f303800113232323232325333048304b0021500816375a609200260920046eb4c11c004c11c008dd6982280098209baa00316303f37540042a0082c6082002607a6ea800c54ccc0ecc0d000454ccc0f8c0f4dd50018a8010b0b181d9baa0021500516303d001303d002303b001303737540042c4464a66606a605200226464a666074607a0042a0082c6eb8c0ec004c0dcdd50018a99981a981700089919299981d181e8010a8020b1bae303b001303737540062c606a6ea8008c0d8c0ccdd50008b181a981b181b18191baa001163034001323300100102122533303300114bd70099192999819299981919baf3037303437540040382605664a666066605860686ea8004520001375a6070606a6ea8004c94ccc0ccc0b0c0d0dd50008a60103d87a80001323300100137566072606c6ea8008894ccc0e0004530103d87a800013232323253330393372291100002153330393371e9101000021300c3303d375000297ae014c0103d87a8000133006006003375a60740066eb8c0e0008c0f0008c0e8004c8cc004004dd5981c181c981a9baa00322533303700114c103d87a80001323232325333038337220480042a66607066e3c0900084c02ccc0f0dd3000a5eb80530103d87a8000133006006003375660720066eb8c0dc008c0ec008c0e400452809981b00119802002000899802002000981b801181a8009ba548000dd7181898190011bae3030001302c375404a2a666054660020320122666600403402c91100480045281119198008008019129998180008a50132533302e3371e6eb8c0cc008010528899801801800981980091111929998180008a50153330303033001132323253330303371e6eb8c0d400c01c54ccc0c0cdc7800803099b8700200514a02940dd7181a181a8011bad303330343034001375860640022940c8cc004004014894ccc0c400452f5c0264666444646600200200644a66606e0022006264660726e9ccc0e4dd48031981c981b0009981c981b800a5eb80cc00c00cc0ec008c0e4004dd718180009bab30310013300300330350023033001232337140029101012900337149110a5265676973747279202800330020013300400148008c0040048894ccc0a0c0840044cdc599b80002481812210013371666e00cdc1801000a40c066600600666e18008004cdc1800a40286002002444a66604c66e2000920141001133300300333706004900a19b8200148050c08cdd500e9bae30263027002375c604a002604a0046eb4c08c004c08cc08c008dd7181080098108011bad301f001301f301f002375c603a002603a004603600260360046eb8c064004c054dd5000980b980a1baa008163758602c602e602e602e602e0046eacc054004c054c054008dd618098009809980998079baa00a370e90001b8748010c03cc040008c038004c028dd50011b874800858c02cc030008c028004c028008c020004c010dd50008a4c26cacae6955ceaab9e5573eae815d0aba201","languageVersion":"v3"}}}],"collaterals":[],"requiredSignatures":[],"referenceInputs":[],"mints":[],"changeAddress":"addr_test1qpvx0sacufuypa2k4sngk7q40zc5c4npl337uusdh64kv0uafhxhu32dys6pvn6wlw8dav6cmp4pmtv7cc3yel9uu0nq93swx9","metadata":[],"validityRange":{"invalidBefore":null,"invalidHereafter":null},"certificates":[],"signingKey":[],"withdrawals":[],"votes":[],"network":"preprod"}

txHex:

84a30082825820bb5c5a24c7bbfb819e5560e73b5bfa22982cb2bced632eb25d6ee7ed5a6b6e6001825820e637646b721e730e7f8f1336cb46736c796d069e4af9b5ad175f3805fd4253ef000182a300581d605867c3b8e27840f556ac268b781578b14c5661fc63ee720dbeab663f011a008258d403d8185906d582035906d05906cd01010032323232323232253330023232323232533233008300130093754004264646464646464a66601e60060022a66602460226ea8028540085854ccc03cc02000454ccc048c044dd50050a8010b0a9998079802000899191919299980b180c8010a8030b1bae30170013017002375c602a00260226ea802854ccc03ccdc3a400c0022a66602460226ea8028540085858c03cdd5004899191919192999809180318099baa008132323232323232323232323232323232323232323232325333029301d00713333001019011300200f4800854ccc0a4c08801c4cccc004064034c00802d2002132533302a301f00813232323232325333033303600213253330313026303237540022646464a6660686050606a6ea800c4c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c94ccc12cc1380084cc0540444cc0540344cc05401c4c94ccc124c8cc004004cc138dd4815198271ba90294bd701129998270008a51132533304c3302303b375c60a20042660060060022940c144004400452819baf0173232323232323230223305330540073305330540063305330540053305330540043305330540033305330540023305330540013305330543055001330533752048660a66ea408d2f5c060a800260a600260a400260a200260a0002609e00260946ea80d858dd7182600098260011bae304a001304a002375a60900026090004608c002608c0046eb8c110004c110008dd698210009821001182000098200011bae303e001303e002303c001303c002375c6074002606c6ea800c58894ccc0d4c0a4c0d8dd5001099191919299981e181f80109980380189919299981d9817800899192999820182180109919299981f981980089919299982218238010998078008a8020b182280098209baa0031533303f303800113232323232325333048304b0021500816375a609200260920046eb4c11c004c11c008dd6982280098209baa00316303f37540042a0082c6082002607a6ea800c54ccc0ecc0d000454ccc0f8c0f4dd50018a8010b0b181d9baa0021500516303d001303d002303b001303737540042c4464a66606a605200226464a666074607a0042a0082c6eb8c0ec004c0dcdd50018a99981a981700089919299981d181e8010a8020b1bae303b001303737540062c606a6ea8008c0d8c0ccdd50008b181a981b181b18191baa001163034001323300100102122533303300114bd70099192999819299981919baf3037303437540040382605664a666066605860686ea8004520001375a6070606a6ea8004c94ccc0ccc0b0c0d0dd50008a60103d87a80001323300100137566072606c6ea8008894ccc0e0004530103d87a800013232323253330393372291100002153330393371e9101000021300c3303d375000297ae014c0103d87a8000133006006003375a60740066eb8c0e0008c0f0008c0e8004c8cc004004dd5981c181c981a9baa00322533303700114c103d87a80001323232325333038337220480042a66607066e3c0900084c02ccc0f0dd3000a5eb80530103d87a8000133006006003375660720066eb8c0dc008c0ec008c0e400452809981b00119802002000899802002000981b801181a8009ba548000dd7181898190011bae3030001302c375404a2a666054660020320122666600403402c91100480045281119198008008019129998180008a50132533302e3371e6eb8c0cc008010528899801801800981980091111929998180008a50153330303033001132323253330303371e6eb8c0d400c01c54ccc0c0cdc7800803099b8700200514a02940dd7181a181a8011bad303330343034001375860640022940c8cc004004014894ccc0c400452f5c0264666444646600200200644a66606e0022006264660726e9ccc0e4dd48031981c981b0009981c981b800a5eb80cc00c00cc0ec008c0e4004dd718180009bab30310013300300330350023033001232337140029101012900337149110a5265676973747279202800330020013300400148008c0040048894ccc0a0c0840044cdc599b80002481812210013371666e00cdc1801000a40c066600600666e18008004cdc1800a40286002002444a66604c66e2000920141001133300300333706004900a19b8200148050c08cdd500e9bae30263027002375c604a002604a0046eb4c08c004c08cc08c008dd7181080098108011bad301f001301f301f002375c603a002603a004603600260360046eb8c064004c054dd5000980b980a1baa008163758602c602e602e602e602e0046eacc054004c054c054008dd618098009809980998079baa00a370e90001b8748010c03cc040008c038004c028dd50011b874800858c02cc030008c028004c028008c020004c010dd50008a4c26cacae6955ceaab9e5573eae815d0aba201825839005867c3b8e27840f556ac268b781578b14c5661fc63ee720dbeab663f9d4dcd7e454d2434164f4efb8edeb358d86a1dad9ec6224cfcbce3e61a0279dfe6021a0003bfd1a10081825820c32dfdb461dd016e8fdd9b6d424a77439eab8f8c644a804b013b6cefa2454f9558406f50e83ec942e0aa8b0150f62737bd80dd34ee740eccbab5c53f42c844775ad88f139fe92aed81ae4fe90aba71de65e89a334ced1eae44d84b85582daa83e104f5f6

got error:

Insufficient fee! The transaction doesn't not contain enough fee to cover the minimum required by the protocol. Note that fee depends on (a) a flat cost fixed by the protocol, (b) the size of the serialized transaction, (c) the budget allocated for Plutus script execution. The field 'data.minimumRequiredFee' indicates the minimum required fee whereas 'data.providedFee' refers to the fee currently supplied with the transaction.
Data: {"minimumRequiredFee":{"ada":{"lovelace":252393}},"providedFee":{"ada":{"lovelace":245713}}}
@jinglescode
Copy link
Member Author

sample 2, for "ContentRegistry" tx:

 {"inputs":[{"pubKeyTxIn":{"txIn":{"txHash":"e637646b721e730e7f8f1336cb46736c796d069e4af9b5ad175f3805fd4253ef","txIndex":0,"amount":[{"unit":"lovelace","quantity":"3008380"}],"address":"addr_test1vpvx0sacufuypa2k4sngk7q40zc5c4npl337uusdh64kv0c7e4cxr"}}},{"pubKeyTxIn":{"txIn":{"txHash":"bb5c5a24c7bbfb819e5560e73b5bfa22982cb2bced632eb25d6ee7ed5a6b6e60","txIndex":1,"amount":[{"unit":"lovelace","quantity":"47321359"}],"address":"addr_test1qpvx0sacufuypa2k4sngk7q40zc5c4npl337uusdh64kv0uafhxhu32dys6pvn6wlw8dav6cmp4pmtv7cc3yel9uu0nq93swx9"}}}],"outputs":[{"address":"addr_test1vpvx0sacufuypa2k4sngk7q40zc5c4npl337uusdh64kv0c7e4cxr","amount":[],"datum":null,"referenceScript":{"providedScriptSource":{"scriptCbor":"590d71590d6e01010033232323232323223225333004323232323253323300a3001300b375400426464646464646464a6660246006002264646464a666032603800426601200244a6660360042a0102646004603e0066eb8c07400858dd6180d000980d0011bae3018001301437540162a6660246012002264646464a66603260380042a00c2c6eb4c068004c068008dd7180c000980a1baa00b15333012300400115333015301437540162a0042c2c60246ea80284c8c8c8c8c8c8c8c8c8c8c8c8c8c94ccc0840045280a9998109812000899192999810180918109baa001132533302130123022375400226464646464646464646464646464646464646464a6660706076004264646600202626600201e26600201226464646464646464646464a6660846066016264646464646464a6660980040022a666098609e004264a66609a0080042a66609a60a00082646464a66609a607c609c6ea80044c8c94ccc13cc100c140dd500089919191919299982b982d001899299982c182d801899299982b1824182b9baa001132325333058304a305937540022646603a00626603c002264a6660b4609860b66ea80044c8c94ccc170c138c174dd50008991981080189981100089919191919299983119b8f01501315333062005153330620021533306200115333062004100314a029405280a5014a060a6604e60446eacc118c18cdd50069829181318109bab30453062375401a66ebc00cc118cc18cdd418139bad30223061375400e660c66e9ccc88c8cc00400400c894ccc198004400c4cc19cc1a0004cc008008c1a4004dd6182218309baa00733063374e03697ae04bd7019baf0043045330623750604c6eb4c084c180dd5004198311ba73301d3758608660c06ea8020cc188dd480da5eb812f5c066e1cdd69810182f9baa007375a604060be6ea8014c184c178dd50008b181e982e9baa007305f305c37540022c607660b66ea8018c174c168dd50008b181c982c9baa303c3059375401a60b660b06ea800458c0dcc15cdd5181d182b9baa00c163059002163058002375860ae60b00046eb0c158004cc150dd3999980901d8140150019982a1ba7333301203b0220240014bd701bae30543055375860a860a26ea800458cc00cc03cdd5981998281baa303330503754008466e3cdd718090008119bae30523053375860a4609e6ea800458cc004c034dd5981898271baa3031304e3754006466e3cdd718080008139119198008008019129998290008a6103d87a800013232533305130050021303833055374e00497ae01330040040013056002375860a8002609e008004609c0040022940dd618260011bac304b304c00133049374e66600a06803a03e660926e9cccc0140d005c0652f5c06eb0c124c128008dd7182400098221baa03b1325333043303a00c13232323232533304b304e0021325333049303a304a375400226464646464a6660a260a8006264a6660a460aa00626464a6660a2608660a46ea80044c8cc05c0044c94ccc14cc110c150dd500089919299982a8030a99982a80108008a5014a0608c6034602a6eacc0e4c158dd500319b8848000c8c8c8c94ccc168c1740084c8cc004004c8cc004004120894ccc17400452f5c02660bc6ea0ccc100dd5981f982e1baa303f305c375460be00200c0086600400460c000244a6660b800229000099b80375a60bc0026600400460be0022c6eb8c16c004c16c008dd7182c8009bac3058305537540022c66646002002444a6660b00042980103d87a800013232533305730480031303e3305b374e00497ae01333005005001337000069000982e0019bac305a0023758606e60a86ea8004034c158c14cdd50008b181918291baa30353052375401266646444a6660a6608a60a86ea80084c8cc06000454ccc150c118c154dd50010991980c800899baf001303c33059301830573754004660b26e9cc8c94ccc15cc120c160dd500089980b1bac301a0023305b37520266eb0c170c164dd50008b19299982d0008a60103d87a80001303e3305b374e60ba00297ae0375860760026600a6eb0c0e8c15cdd500100825eb80c164c158dd50010b182c182a9baa002163001001222533305500214bd70810180008101800009919299982a19b89003480004cc16130101800033058374e00897ae013233059374e660b26ea400cdd6182d0009982c982d182d800a5eb80ccc014014004cdc0001a400260b20066eb8c15c008c0c4c144dd5181a18289baa0023031305137540022c60a60042c60a40046eb0c144c148008dd61828000998271ba7323302f03a2533304c3375e601e609c6ea8c0c4c138dd5000812098219998191bab3031304e37546062609c6ea80040980085281bae302f0013304e374e666601806a0440486eb8c0bc0052f5c06eb0c138c12cdd50008b1929998260008a60103d87a8000130303304d304e0014bd70180498031bab302d304a3754605a60946ea800458c130004cc0a80cc8cdd7980518249baa302c304937540020326eb4c128c12c008dd7182480098229baa03c132533304700114a02a66608e6094002264a66608a646600200205c44a66609400229404c94ccc120cdc79bae304d00201414a2266006006002609a00220022940cdd79ba602d374c646600200260066eacc0a8c11cdd5181518239baa304a00222533304900114bd6f7b6300991982599bb03048001374c64660020026eacc128008894ccc13000452f5bded8c02646609c66ec0c12c004dd419b8148000dd69826000998018019828001182700099801801982680118258008a5033300303201b01d2323300100100222533304800114bd6f7b630099191919299982499b9148900002153330493371e9101000021003100513304d337606ea4008dd3000998030030019bab304a003375c60900046098004609400244646600200200644a666090002200626609260940026600400460960024446604e0064a66608866ebcc01cc118dd5181498231baa00100313233001001300637566054608e6ea8c0a8c11cdd50011129998248008a5013253330473371e6eb8c028dd618260010028a51133003003001304c00114a04646600200200444a66608a002297ae0132333222323300100100322533304b00110031323304d374e6609a6ea4018cc134c128004cc134c12c0052f5c066006006609e004609a0026eb8c110004dd5982280099801801982480118238009111198130021299982199baf300630453754002008260746660526eacc0a0c114dd50008018010a502304300122533303e302f303f3754004264646464a66608a609000426606a00244a66608e0042a00e264600460960066eb8c12400858dd6182300098230011bad3044001304037540042c44a66607a605c607c6ea80084c8c8c8c94ccc110c11c0084cc0d0004894ccc1180085401c4cc0d8dd61824001112999824001098019825802099180118260019bae304a002163758608a002608a0046eb4c10c004c0fcdd50010b180080091299981f0008a4000260066600400460820026e0120023038375406044a666070605260726ea80084c8c8c8c94ccc0fcc1080084cc01c00c4c8c94ccc0f8c0bc0044c8c94ccc10cc1180084c8c94ccc108c0cc0044c8c94ccc11cc1280084cc03c0045401058c120004c110dd50018a999821181c8008991919191919299982598270010a8040b1bad304c001304c002375a609400260940046eb4c120004c110dd50018b18211baa00215004163044001304037540062a66607c606a0022a66608260806ea800c540085858c0f8dd50010a8028b18200009820001181f000981d1baa0021622325333038302900113232533303d30400021500416375c607c00260746ea800c54ccc0e0c0bc0044c8c94ccc0f4c1000085401058dd7181f000981d1baa00316303837540042c6eb8c0e4004c0e4008dd7181b800981b8011bad3035001303500230330013033002375c606200260620046eb4c0bc004c0bc008c0b4004c0b4008dd718158009815801181480098148011bae3027001302337540022c604a60446ea800458c004c084dd5180218109baa3024002230243025302500114a0660020144602a6660086eacc00cc080dd5180198101baa00101c4890022323300100100322533302300114bd700991929998111802801099813001198020020008998020020009813801181280091810981100091119299980f180a980f9baa0011480004dd6981198101baa00132533301e3015301f3754002298103d87a8000132330010013756604860426ea8008894ccc08c004530103d87a80001323232325333024337220100042a66604866e3c0200084c02ccc0a0dd4000a5eb80530103d87a8000133006006003375a604a0066eb8c08c008c09c008c094004c8cc004004010894ccc0880045300103d87a80001323232325333023337220100042a66604666e3c0200084c028cc09cdd3000a5eb80530103d87a8000133006006003375660480066eb8c088008c098008c090004dd2a40006eb0c074c078c078c078c078008dd5980e000980e180e0011bac301a001301a0023758603000260300046eb0c058004c048dd50059b8748000dc3a40084464660020020064466006002600400460226024004602000260186ea8008dc3a40042c601a601c004601800260180046014002600c6ea800452613656375c002ae6955ceaab9e5573eae815d0aba24c011e581cf265afe1692441e1023c6d799eaf9973f2b46b622fa221026760adbb0001","languageVersion":"v3"}}}],"collaterals":[],"requiredSignatures":[],"referenceInputs":[],"mints":[],"changeAddress":"addr_test1qpvx0sacufuypa2k4sngk7q40zc5c4npl337uusdh64kv0uafhxhu32dys6pvn6wlw8dav6cmp4pmtv7cc3yel9uu0nq93swx9","metadata":[],"validityRange":{"invalidBefore":null,"invalidHereafter":null},"certificates":[],"signingKey":[],"withdrawals":[],"votes":[],"network":"preprod"}

@twwu123 twwu123 linked a pull request Oct 23, 2024 that will close this issue
21 tasks
@twwu123 twwu123 linked a pull request Oct 23, 2024 that will close this issue
21 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants