Package foundation.icon.xcall
Interface FeeManage
-
public interface FeeManage
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.math.BigIntegergetFee(java.lang.String _net, boolean _rollback, java.lang.String[] _sourceProtocols)Gets the fee for delivering a message to the _net.java.math.BigIntegergetProtocolFee()Gets the current protocol fee amount.voidsetProtocolFee(java.math.BigInteger _value)Sets the protocol fee amount.
-
-
-
Method Detail
-
setProtocolFee
void setProtocolFee(java.math.BigInteger _value)
Sets the protocol fee amount.- Parameters:
_value- The protocol fee amount in loop- ImplNote:
- Only the admin wallet can invoke this.
-
getProtocolFee
java.math.BigInteger getProtocolFee()
Gets the current protocol fee amount.- Returns:
- The protocol fee amount in loop
-
getFee
java.math.BigInteger getFee(java.lang.String _net, boolean _rollback, java.lang.String[] _sourceProtocols)Gets the fee for delivering a message to the _net. If the sender is going to provide rollback data, the _rollback param should set as true. The returned fee is the sum of the protocol fee and the relay fee.- Parameters:
_net- The network address_rollback- Indicates whether it provides rollback data- Returns:
- the sum of the protocol fee and the relay fee
-
-