0

I started using the Monero RPC to create transactions.

For the moment I use the transfer function from the wallet RPC to send Monero to another wallet.

But I'm wondering if there is any way to create a transaction and specify a fixed fee instead of the priority flag?

I also see thats there is a sendrawtransaction in the daemon RPC but I don't think we can specify a fee, or maybe I'm wrong.

Thanks!

1 Answer 1

1

But I'm wondering if there is any way to create a transaction and specify a fixed fee instead of the priority flag?

Not with the RPC/CLI, just priorities. The mistakes people make with manually setting fees is hugely problematic, hence the use of priorities (for which there's little to no reason to use anything other than the default/normal setting at the moment).

I also see thats there is a sendrawtransaction in the daemon RPC...

The daemon doesn't create transactions (which includes the fee), which is why there is no daemon method to create transactions or set fees.

2
  • Thank you for your feedback ! So for example if i would like to know the fees before sending my transaction i need to call "transfer" method and not relay it directly right ? There is no other ways to predict the fees of my future transaction ? Thanks! Sep 22 at 11:21
  • With the RPC, yes, transfer with do_not_relay if you really need to see [the sub-cent] fees before sending. Then submit_transfer.
    – jtgrassie
    Sep 22 at 16:29

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.