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

Update fee-paying-related code in examples #637

Open
homura opened this issue Feb 26, 2024 · 0 comments
Open

Update fee-paying-related code in examples #637

homura opened this issue Feb 26, 2024 · 0 comments

Comments

@homura
Copy link
Collaborator

homura commented Feb 26, 2024

The hard-code code about fee-paying examples should be revised to use payFeeByFeeRate to calculate transaction fee instead of using a fixed value of 0.001 CKB

// additional 0.001 ckb for tx fee
// the tx fee could calculated by tx size
// this is just a simple example
const neededCapacity = BI.from(options.amount).add(100000);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant