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

TransactionByteFee doesn't exist anymore #442

Open
FrankBevr opened this issue Jun 26, 2023 · 0 comments
Open

TransactionByteFee doesn't exist anymore #442

FrankBevr opened this issue Jun 26, 2023 · 0 comments

Comments

@FrankBevr
Copy link

Problem

If you are following the docs, you encounter the const section .
You are typing happily the examples in your editor.
You assume you get something but you get undefinded
You have to start to tinker, ok, but UX decreases.

Solution

The closest that i can find is operationalFeeMultiplier.

const wsProvider = new WsProvider("wss://rpc.ibp.network/polkadot");
const api = await ApiPromise.create({ provider: wsProvider });
async function getOperationalFeeMultiplier(){
  //A fee mulitplier for Operational extrinsics to compute "virtual tip" to boost their priority
  const logy = await api.consts.transactionPayment.operationalFeeMultiplier.toString();
  console.log(logy);      
}
getOperationalFeeMultiplier()

I assume that the examples are in some way relevant.
In this case I dont think it its relevant and would just delete this line

Same with this line , because it took me a while to understand that babe exist on Polkadot, but the most parachains dont have this const.

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

No branches or pull requests

1 participant