2

I wanna make transactions during monero-wallet-rpc. When I wanna send some amount I wanna know the fee's before Im transfering the funds to other wallet.

How can i get the fee's regarding a trasaction from monero-wallet-rpc API?

Thanks.

1 Answer 1

2

The fee depends (in part) on the exact size of your transaction, and your transaction size depends (in part) on how many outputs you are spending. Therefore to determine the fee, you first need to construct the transaction to determine its size. You can do this using the transfer method with do_not_relay set to true.

If you are happy with the fee, you can then submit the transaction to the network using the relay_tx method.

1
  • ill try it out now Commented Apr 3, 2020 at 0:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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