TrustWeave SDK
Toggle table of contents
0.7.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
TrustWeave SDK
anchors-anchor-core
/
org.trustweave.anchor.evm
/
EvmGas
/
withMargin
with
Margin
@
JvmStatic
@
JvmOverloads
fun
withMargin
(
gas
:
BigInteger
,
marginPercent
:
Int
=
DEFAULT_MARGIN_PERCENT
)
:
BigInteger
Applies a percentage safety margin to
gas
, rounding up.