How can I purchse resources using the PowerUP model via CLI?

I see there are net_frac and cpu_frac params, which I don't know how to calculate. Is there any easy way to send a tx to say "I want to pay 0.0001 for CPU and 0.0001 for NET to run my next transaction?"


I believe this was answered in Telegram but for others searching for the answer:

There is no way to calculate the net_frac/cpu_frac via cleos however Greymass created a library to calculate net_frac/cpu_frac. There is an example of how to use it here

An example cleos command can be found here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.