cfx_checkBalanceAgainstTransaction
Check if user balance is enough for the transaction.
Params
(6)1. account_addr (required)
string
Match pattern:
^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
2. contract_addr (required)
string
Match pattern:
^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
3. gas_limit (required)
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
4. gas_price (required)
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
5. storage_limit (required)
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
6. epoch (required)
U64
(one of)
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
Result
(cfx_checkBalanceAgainstTransaction_result)isBalanceEnough
booleanwillPayCollateral
booleanwillPayTxFee
boolean