core.call calls a contract function that no higher-level op wraps, such as a vault redeem, a reward claim or a custom entry point. You give it a target contract and a human-readable functionSignature; it ABI-encodes the call from the bound arguments. Optionally it spends a resource (resource) and grants approvals for the call (approvals).
target can be any contract on the flow’s chain. Composer keeps no allowlist of call targets, so check the address yourself: the call runs from the execution proxy, with any approvals you grant it.
A call that spends no resource travels on the wire as core.invoke. The SDK sends core.invoke whenever you omit resource. It takes the same target, functionSignature, callType and args, but has no input port and no approvals. If you write flow JSON by hand, use core.invoke for a call that spends nothing.
Only two return shapes are accepted: a signature that returns uint256 exposes the value on .result as a handle, and a signature with no return clause exposes nothing. Any other return type fails the compile. To track a returned amount as a resource, pass .result to core.asResource.
Before writing a direct call, check whether lifi.zap or lifi.swap covers the action; they encode the protocol call for you. For pre-encoded calldata use core.rawCall; for a read at execution time use core.staticCall; for a read at compile time, baked into the transaction as a constant, use core.peek.
Ports
Config
Bind the function’s arguments by parameter name in
bind, as in the example below.
Example
Redeem ERC-4626 vault shares back to the underlying USDC:callContract.ts for more, including a call that spends no tokens and ValueCall for payable functions.
Errors
A verification result of
allVerified: false does not fail the compile.
Related
core.asResource: track a returned amount as a resource.lifi.zap: protocol calls the routing catalog already covers.- Pay cross-chain: replace its transfers with a
core.callto your payment contract.

