Using RpcCondition, we can execute eth_getBalance JSON-RPC method:
RpcCondition
eth_getBalance
import { conditions } from '@nucypher/taco'; const hasAnyNativeAsset = new conditions.base.rpc.RpcCondition({ chain: 1, method: 'eth_getBalance', parameters: [':userAddress'], returnValueTest: { comparator: '>', value: 0, }, });
API References
Advanced Usage Guides
Last updated 5 months ago