Closed duanyytop closed 3 years ago
I can't find how to update the transaction fee in the example of my-sudt
and maybe the transaction fee is set in Capsule.
Looking forward to your reply. Thanks.
You can change the per tx's fee by the--fee
option
capsule deploy --fee 0.00001
capsule deploy -h
capsule-deploy
Deploy contracts, edit deployment.toml to custodian deployment recipe.
USAGE:
capsule deploy [OPTIONS] --address <address>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
--address <address> Denote which address provides cells
--api <api> CKB RPC url [default: http://localhost:8114]
--ckb-cli <ckb-cli> CKB cli binary [default: ckb-cli]
--env <env> Deployment environment. [default: dev] [possible values: dev, production]
--fee <fee> Per transaction's fee, deployment may involve more than one transaction. [default:
0.0001]
--migrate <migrate> Use previously deployed cells as inputs. [default: on] [possible values: on, off]
Describe the bug When I deployed the example of contract
my-sudt
to dev chain, I found an error ofPoolRejectedTransactionByMinFeeRate
which told me the transaction fee is too low to send the transaction to CKB.Screenshots
Additional context Please post the following informations:
capsule --version
: Capsule 0.2.3 23f16bfckb-cli --version
: ckb-cli 0.35.0 (3875086 2020-08-11)RUST_BACKTRACE=1 RUST_LOG=capsule=trace
environment, then post the output as a file.[2020-09-23T07:06:50Z DEBUG capsule::wallet::collector] collect live cells: target 1729000010000 address ckt1qyqvsv5240xeh85wvnau2eky8pwrhh4jr8ts8vyj37 tip_number 2439 [2020-09-23T07:06:51Z TRACE capsule::wallet::collector] parse ckb-cli output: { "current_capacity": "19999957999.98142531 (CKB)", "current_count": 8, "live_cells": [ { "capacity": "87814.0 (CKB)", "data_bytes": 87688, "index": { "output_index": 0, "tx_index": 1 }, "lock_hash": "0x32e555f3ff8e135cece1351a6a2971518392c1e30375c1e006ad0ce8eac07947", "mature": true, "number": 104, "output_index": 0, "tx_hash": "0x92a1da0ff9183454b129ad58c2ba835511c6e5ea676e165a66cfccf6a4eaaf03", "type_hashes": [ "0x00000000000000000000000000000000000000000000000000545950455f4944", "0x1b2860b35b780a95308b5c5b0d4bf0d82731235aa210a299bb08bf8b91e523fb" ] }, { "capacity": "87814.0 (CKB)", "data_bytes": 87688, "index": { "output_index": 0, "tx_index": 1 }, "lock_hash": "0x32e555f3ff8e135cece1351a6a2971518392c1e30375c1e006ad0ce8eac07947", "mature": true, "number": 267, "output_index": 0, "tx_hash": "0xf4417c1e51b12cbda9d869de1bdd6c47d0bba3314e4f613982bf83113f4be254", "type_hashes": [ "0x00000000000000000000000000000000000000000000000000545950455f4944", "0x74a5e631bbf8e5e671bdccae7135d82906905079f797628b749ae49f905d4be9" ] }, { "capacity": "137.0 (CKB)", "data_bytes": 76, "index": { "output_index": 0, "tx_index": 1 }, "lock_hash": "0x32e555f3ff8e135cece1351a6a2971518392c1e30375c1e006ad0ce8eac07947", "mature": true, "number": 374, "output_index": 0, "tx_hash": "0x4f0d4951878302f9d7c43673c329c28d803df62ff84f6dfae702b2da5175510f", "type_hashes": null }, { "capacity": "137.0 (CKB)", "data_bytes": 76, "index": { "output_index": 0, "tx_index": 1 }, "lock_hash": "0x32e555f3ff8e135cece1351a6a2971518392c1e30375c1e006ad0ce8eac07947", "mature": true, "number": 461, "output_index": 0, "tx_hash": "0x95c3ec44c9cd7aeebb0acaeb6075499d8a24766c543270bfd2f85276357ee1e7", "type_hashes": null }, { "capacity": "137.0 (CKB)", "data_bytes": 76, "index": { "output_index": 0, "tx_index": 1 }, "lock_hash": "0x32e555f3ff8e135cece1351a6a2971518392c1e30375c1e006ad0ce8eac07947", "mature": true, "number": 530, "output_index": 0, "tx_hash": "0x68cb28a634a62d55808306322c2cf5724cf1bfeae4c925b8b61b7d3d4657c3a7", "type_hashes": null }, { "capacity": "87814.0 (CKB)", "data_bytes": 87688, "index": { "output_index": 0, "tx_index": 1 }, "lock_hash": "0x32e555f3ff8e135cece1351a6a2971518392c1e30375c1e006ad0ce8eac07947", "mature": true, "number": 580, "output_index": 0, "tx_hash": "0xa3c85d0b09aefa56c3463a52b3d98593729c73ef98f8c5b6d4e335dfe5d63578", "type_hashes": [ "0x00000000000000000000000000000000000000000000000000545950455f4944", "0x83365cd2fa506a152b4373c58c504c8b45e9f2273d1f3810207b0510b8522f3a" ] }, { "capacity": "137.0 (CKB)", "data_bytes": 76, "index": { "output_index": 0, "tx_index": 1 }, "lock_hash": "0x32e555f3ff8e135cece1351a6a2971518392c1e30375c1e006ad0ce8eac07947", "mature": true, "number": 584, "output_index": 0, "tx_hash": "0x4a4f293f32c20df7230384b859c7f49cdc6f9eb65c8a3b1803fa9ddcf789f828", "type_hashes": null }, { "capacity": "19999694009.98142531 (CKB)", "data_bytes": 0, "index": { "output_index": 2, "tx_index": 1 }, "lock_hash": "0x32e555f3ff8e135cece1351a6a2971518392c1e30375c1e006ad0ce8eac07947", "mature": true, "number": 655, "output_index": 2, "tx_hash": "0xb8a0bfc9fbb9a17f43cb55b7147a32dcf1d49c5ca00df5af662b2d62d03658bf", "type_hashes": null } ], "total_capacity": "19999957999.98142531 (CKB)", "total_count": 8 }
[2020-09-23T07:06:51Z TRACE capsule::wallet::collector] get cells: from 0 to 1000000 cells 8 [2020-09-23T07:06:51Z TRACE capsule::deployment::deployment_process] found change outputs from previous tx: [LiveCell { tx_hash: H256 ( [ 0xa8, 0x4a, 0xf0, 0xd2, 0x8b, 0xc0, 0x09, 0xf8, 0x6e, 0xed, 0xeb, 0x16, 0x9c, 0xe9, 0x48, 0xf0, 0x50, 0xbb, 0x7e, 0xaa, 0xfa, 0xcf, 0x86, 0x22, 0x3f, 0x50, 0x22, 0x5d, 0xe5, 0x61, 0x55, 0x15 ] ), index: 1, capacity: 1999967678098132531, mature: true }] [2020-09-23T07:06:51Z TRACE capsule::deployment::deployment_process] build dep group tx with inputs: [LiveCell { tx_hash: H256 ( [ 0xa8, 0x4a, 0xf0, 0xd2, 0x8b, 0xc0, 0x09, 0xf8, 0x6e, 0xed, 0xeb, 0x16, 0x9c, 0xe9, 0x48, 0xf0, 0x50, 0xbb, 0x7e, 0xaa, 0xfa, 0xcf, 0x86, 0x22, 0x3f, 0x50, 0x22, 0x5d, 0xe5, 0x61, 0x55, 0x15 ] ), index: 1, capacity: 1999967678098132531, mature: true }] Deployment plan:
migrated_capacity: 0.0 (CKB) new_occupied_capacity: 17366.0 (CKB) txs_fee_capacity: 0.0002 (CKB) total_occupied_capacity: 17366.0 (CKB) recipe: cells:
RUST_BACKTRACE=full
for a verbose backtrace.