tx-rate (live)

How i can get the real tx-rate from the API? I am using C++

I use “”/interface/getall" but the fp-tx-bytes is another thing.

Solutions? I need for ethernet interface only.

Add the “stats” argument.

You can use either

/interface/print
=stats=

or

/interface/ethernet/print
=stats=

with the latter containing other Ethernet specific stats.