Create logsystemfee ACTION to be used for logging system fees (RAM, Name Bids, Powerup CPU & NET).
Analytics platforms can use this action to track system fees and provide insights to users.
Currently the only way to calculate fees is to parse each action and calculate the fees based on the action type.
Feedback provided by
@DenisCarriere
@nsjames
Tim Weston / Rob
logsystemfee ACTION
/**
* Logging for actions resulting in system fees.
* Notifies the "eosio.fee" account of the fees collected.
*
* @param protocol - name of protocol fees were earned from.
* @param fee - the amount of fees collected by system.
* @param memo - (optional) the memo associated with the action.
*/
[[eosio::action]]
void logsystemfee( const name& protocol, const asset& fee, const std::string& memo );
Purpose
Create
logsystemfee
ACTION to be used for logging system fees (RAM, Name Bids, Powerup CPU & NET).Analytics platforms can use this action to track system fees and provide insights to users.
Currently the only way to calculate fees is to parse each action and calculate the fees based on the action type.
Feedback provided by
logsystemfee
ACTIONJSON payload examples
Preconditions
require_auth(get_self())
require_recipient("eosio.fee"_n)
References
runrex
onblock