Uniswap V3 action reference
This page is generated from the plugin registry. Do not edit it by hand.
Uniswap V3 - pool discovery, liquidity positions, swaps, and quotes
For guidance and examples see the Uniswap V3 guide.
Set actionType in a node’s config to the action type shown under each heading. See the workflow definition page for the node format.
Read actions return the value under result: a single unnamed output is result, a named one is result.<name>, and several outputs are result.<name> each. Reference it as {{@nodeId:Label.result}}. Integer Solidity types are passed as decimal strings.
| Action | Action type |
|---|---|
| Uniswap V3: Get Pool Address | uniswap/get-pool |
| Uniswap V3: Get Position Details | uniswap/get-position |
| Uniswap V3: Get Position Count | uniswap/balance-of |
| Uniswap V3: Get Position Owner | uniswap/owner-of |
| Uniswap V3: Approve Position Transfer | uniswap/approve-position |
| Uniswap V3: Transfer Position NFT | uniswap/transfer-position |
| Uniswap V3: Burn Empty Position | uniswap/burn-position |
| Uniswap V3: Collect Fees | uniswap/collect-fees |
| Uniswap V3: Decrease Liquidity | uniswap/decrease-liquidity |
| Uniswap V3: Increase Liquidity | uniswap/increase-liquidity |
| Uniswap V3: Swap Exact Input | uniswap/swap-exact-input |
| Uniswap V3: Swap Exact Output | uniswap/swap-exact-output |
| Uniswap V3: Quote Exact Input | uniswap/quote-exact-input |
| Uniswap V3: Quote Exact Output | uniswap/quote-exact-output |
Uniswap V3: Get Pool Address
Action type: uniswap/get-pool. Connection: not required.
Find the Uniswap V3 pool address for a token pair and fee tier
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161, 11155111 | Network. | |
tokenA | address | Yes | Token A Address (address). | ||
tokenB | address | Yes | Token B Address (address). | ||
fee | uint24 | Yes | Fee Tier (100, 500, 3000, or 10000) (uint24). Pool fee tier in hundredths of a basis point. Common values: 100 (0.01% - stablecoin pairs), 500 (0.05% - correlated pairs), 3000 (0.3% - most pairs), 10000 (1% - exotic pairs). |
Outputs
| Output | Description |
|---|---|
result | The contract function return value |
result.pool | Pool Address |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Uniswap V3: Get Position Details
Action type: uniswap/get-position. Connection: not required.
Get full details of a liquidity position by NFT token ID
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161, 11155111 | Network. | |
tokenId | uint256 | Yes | Position Token ID (uint256). The NFT token ID representing a Uniswap V3 liquidity position. Each position minted via the NonfungiblePositionManager receives a unique uint256 ID. Find it from the Mint event or via the balanceOf + tokenOfOwnerByIndex pattern. |
Outputs
| Output | Description |
|---|---|
result | The contract function return value |
result.nonce | Nonce |
result.operator | Operator Address |
result.token0 | Token 0 Address |
result.token1 | Token 1 Address |
result.fee | Fee Tier |
result.tickLower | Lower Tick |
result.tickUpper | Upper Tick |
result.liquidity | Liquidity |
result.feeGrowthInside0LastX128 | Fee Growth Inside 0 (X128) |
result.feeGrowthInside1LastX128 | Fee Growth Inside 1 (X128) |
result.tokensOwed0 | Tokens Owed 0 |
result.tokensOwed1 | Tokens Owed 1 |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Uniswap V3: Get Position Count
Action type: uniswap/balance-of. Connection: not required.
Check how many LP position NFTs an address owns
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161, 11155111 | Network. | |
owner | address | Yes | Wallet Address (address). |
Outputs
| Output | Description |
|---|---|
result | Position Count |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Uniswap V3: Get Position Owner
Action type: uniswap/owner-of. Connection: not required.
Get the owner address of a liquidity position NFT
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161, 11155111 | Network. | |
tokenId | uint256 | Yes | Position Token ID (uint256). The NFT token ID representing a Uniswap V3 liquidity position. Each position minted via the NonfungiblePositionManager receives a unique uint256 ID. Find it from the Mint event or via the balanceOf + tokenOfOwnerByIndex pattern. |
Outputs
| Output | Description |
|---|---|
result | Owner Address |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Uniswap V3: Approve Position Transfer
Action type: uniswap/approve-position. Connection: required (web3).
Approve an address to manage a specific liquidity position NFT
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161, 11155111 | Network. | |
sendMode | string | No | transaction, private-relay | Send as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored. | |
to | address | Yes | Approved Address (address). | ||
tokenId | uint256 | Yes | Position Token ID (uint256). The NFT token ID representing a Uniswap V3 liquidity position. Each position minted via the NonfungiblePositionManager receives a unique uint256 ID. Find it from the Mint event or via the balanceOf + tokenOfOwnerByIndex pattern. | ||
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship. |
Outputs
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added. |
included | True when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent. |
Uniswap V3: Transfer Position NFT
Action type: uniswap/transfer-position. Connection: required (web3).
Transfer a liquidity position NFT to another address
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161, 11155111 | Network. | |
sendMode | string | No | transaction, private-relay | Send as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored. | |
from | address | Yes | From Address (address). | ||
to | address | Yes | To Address (address). | ||
tokenId | uint256 | Yes | Position Token ID (uint256). The NFT token ID representing a Uniswap V3 liquidity position. Each position minted via the NonfungiblePositionManager receives a unique uint256 ID. Find it from the Mint event or via the balanceOf + tokenOfOwnerByIndex pattern. | ||
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship. |
Outputs
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added. |
included | True when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent. |
Uniswap V3: Burn Empty Position
Action type: uniswap/burn-position. Connection: required (web3).
Burn an empty liquidity position NFT (position must have zero liquidity and zero owed tokens)
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161, 11155111 | Network. | |
sendMode | string | No | transaction, private-relay | Send as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored. | |
ethValue | string | No | ETH Value. | ||
tokenId | uint256 | Yes | Position Token ID (uint256). The NFT token ID representing a Uniswap V3 liquidity position. Each position minted via the NonfungiblePositionManager receives a unique uint256 ID. Find it from the Mint event or via the balanceOf + tokenOfOwnerByIndex pattern. | ||
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship. |
Outputs
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added. |
included | True when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent. |
Uniswap V3: Collect Fees
Action type: uniswap/collect-fees. Connection: required (web3).
Withdraw a position’s earned fees, plus any tokens a Decrease Liquidity step credited to it, to a recipient
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161, 11155111 | Network. | |
sendMode | string | No | transaction, private-relay | Send as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored. | |
tokenId | uint256 | Yes | Position Token ID (uint256). The NFT token ID representing a Uniswap V3 liquidity position. Each position minted via the NonfungiblePositionManager receives a unique uint256 ID. Find it from the Mint event or via the balanceOf + tokenOfOwnerByIndex pattern. | ||
recipient | address | Yes | Recipient Address (address). Where the collected tokens go - normally the wallet that owns the position. It must not be the zero address: Uniswap reads that as the position manager itself, and anyone can then sweep the tokens out of it. The action refuses the zero address for that reason. | ||
amount0Max | uint128 | No | 340282366920938463463374607431768211455 | Max Token 0 Amount (wei) (uint128). Upper bound on how much of this token to withdraw, in its smallest unit. The default (2^128 - 1) collects everything the position is owed. Get Position Details’ Tokens Owed fields only update when a position is touched, so they leave out fees earned since - do not use them to decide whether there is anything to collect. | |
amount1Max | uint128 | No | 340282366920938463463374607431768211455 | Max Token 1 Amount (wei) (uint128). Upper bound on how much of this token to withdraw, in its smallest unit. The default (2^128 - 1) collects everything the position is owed. Get Position Details’ Tokens Owed fields only update when a position is touched, so they leave out fees earned since - do not use them to decide whether there is anything to collect. | |
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship. |
Outputs
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added. |
included | True when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent. |
Uniswap V3: Decrease Liquidity
Action type: uniswap/decrease-liquidity. Connection: required (web3).
Remove liquidity from a position. The tokens stay credited to the position until a Collect Fees step withdraws them
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161, 11155111 | Network. | |
sendMode | string | No | transaction, private-relay | Send as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored. | |
tokenId | uint256 | Yes | Position Token ID (uint256). The NFT token ID representing a Uniswap V3 liquidity position. Each position minted via the NonfungiblePositionManager receives a unique uint256 ID. Find it from the Mint event or via the balanceOf + tokenOfOwnerByIndex pattern. | ||
liquidity | uint128 | Yes | Liquidity to Remove (uint128). How much of the position’s liquidity to remove, in liquidity units - read the current total from Get Position Details’ Liquidity output. The removed tokens are credited to the position, not sent anywhere: follow this step with Collect Fees to withdraw them. Removing all liquidity and collecting is what makes a position burnable. | ||
amount0Min | uint256 | Yes | Minimum Token 0 Out (wei) (uint256). Slippage guard: the transaction reverts if less than this amount of the token would be removed or added. Set to 0 only for testing - in production, derive it from a recent price so the step cannot be filled at a manipulated rate. | ||
amount1Min | uint256 | Yes | Minimum Token 1 Out (wei) (uint256). Slippage guard: the transaction reverts if less than this amount of the token would be removed or added. Set to 0 only for testing - in production, derive it from a recent price so the step cannot be filled at a manipulated rate. | ||
deadline | uint256 | Yes | Deadline (unix timestamp) (uint256). Absolute unix timestamp (seconds) after which the transaction reverts - not a duration. It exists to bound how long a signed transaction stays fillable: a deadline far in the future removes the only protection against one sitting pending and being mined later at a moved price. There is no relative-time helper yet, so a literal timestamp in a scheduled workflow eventually passes and every later run reverts with ‘Transaction too old’. Prefer a short deadline that you refresh, and treat those reverts as the cost of the protection, rather than a distant timestamp that disables it. | ||
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship. |
Outputs
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added. |
included | True when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent. |
Uniswap V3: Increase Liquidity
Action type: uniswap/increase-liquidity. Connection: required (web3).
Add liquidity to an existing position, for example to compound collected fees back in
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161, 11155111 | Network. | |
sendMode | string | No | transaction, private-relay | Send as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored. | |
tokenId | uint256 | Yes | Position Token ID (uint256). The NFT token ID of the position to add liquidity to. Unlike the other position actions, Uniswap performs no ownership check on this one: a wrong ID deposits your tokens into someone else’s position, succeeds, and cannot be undone. This action therefore reads the position’s owner first and refuses to run unless it is one of your organization’s wallets, including when the owner cannot be read at all. | ||
amount0Desired | uint256 | Yes | Token 0 Amount to Add (wei) (uint256). The most of this token to add, in its smallest unit. The pool takes both tokens in the position’s current price ratio, so usually only one of the two amounts is used in full. The position manager needs an allowance for both tokens before this step runs - use Approve Token. Use WETH, not native ETH. | ||
amount1Desired | uint256 | Yes | Token 1 Amount to Add (wei) (uint256). The most of this token to add, in its smallest unit. The pool takes both tokens in the position’s current price ratio, so usually only one of the two amounts is used in full. The position manager needs an allowance for both tokens before this step runs - use Approve Token. Use WETH, not native ETH. | ||
amount0Min | uint256 | Yes | Minimum Token 0 Added (wei) (uint256). Slippage guard: the transaction reverts if less than this amount of the token would be removed or added. Set to 0 only for testing - in production, derive it from a recent price so the step cannot be filled at a manipulated rate. | ||
amount1Min | uint256 | Yes | Minimum Token 1 Added (wei) (uint256). Slippage guard: the transaction reverts if less than this amount of the token would be removed or added. Set to 0 only for testing - in production, derive it from a recent price so the step cannot be filled at a manipulated rate. | ||
deadline | uint256 | Yes | Deadline (unix timestamp) (uint256). Absolute unix timestamp (seconds) after which the transaction reverts - not a duration. It exists to bound how long a signed transaction stays fillable: a deadline far in the future removes the only protection against one sitting pending and being mined later at a moved price. There is no relative-time helper yet, so a literal timestamp in a scheduled workflow eventually passes and every later run reverts with ‘Transaction too old’. Prefer a short deadline that you refresh, and treat those reverts as the cost of the protection, rather than a distant timestamp that disables it. | ||
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship. |
Outputs
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added. |
included | True when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent. |
Uniswap V3: Swap Exact Input
Action type: uniswap/swap-exact-input. Connection: required (web3).
Swap an exact amount of input tokens for as many output tokens as possible (single-hop)
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161, 11155111 | Network. | |
sendMode | string | No | transaction, private-relay | Send as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored. | |
ethValue | string | No | ETH Value. | ||
tokenIn | address | Yes | Input Token Address (address). ERC20 contract address of the token you are spending. To swap native ETH directly, set this to the chain’s WETH address and provide the swap amount via the ‘ETH Value’ field below - SwapRouter02 will wrap msg.value internally and no token approval is needed. For ERC20 input, the SwapRouter02 must have an approval for at least the input amount before this action runs. | ||
tokenOut | address | Yes | Output Token Address (address). | ||
fee | uint24 | Yes | Fee Tier (100, 500, 3000, or 10000) (uint24). Pool fee tier in hundredths of a basis point. Common values: 100 (0.01% - stablecoin pairs), 500 (0.05% - correlated pairs), 3000 (0.3% - most pairs), 10000 (1% - exotic pairs). | ||
recipient | address | Yes | Recipient Address (address). | ||
amountIn | uint256 | Yes | Amount In (wei) (uint256). | ||
amountOutMinimum | uint256 | Yes | Minimum Output Amount (wei) (uint256). Minimum tokens to receive after the swap. The transaction reverts if the output would be less. Set to 0 only for testing - in production, calculate from a quote minus your slippage tolerance to avoid sandwich attacks. | ||
sqrtPriceLimitX96 | uint160 | No | 0 | Price Limit (0 for none) (uint160). Square-root price limit encoded as a Q64.96 fixed-point number. Constrains how far the pool price can move during the swap. Set to 0 for no limit (most common). Non-zero values act as a slippage guard at the pool level. | |
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship. |
Outputs
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added. |
included | True when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent. |
Uniswap V3: Swap Exact Output
Action type: uniswap/swap-exact-output. Connection: required (web3).
Swap as few input tokens as possible for an exact amount of output tokens (single-hop)
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161, 11155111 | Network. | |
sendMode | string | No | transaction, private-relay | Send as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored. | |
ethValue | string | No | ETH Value. | ||
tokenIn | address | Yes | Input Token Address (address). ERC20 contract address of the token you are spending. To swap native ETH directly, set this to the chain’s WETH address and provide the swap amount via the ‘ETH Value’ field below - SwapRouter02 will wrap msg.value internally and no token approval is needed. For ERC20 input, the SwapRouter02 must have an approval for at least the input amount before this action runs. | ||
tokenOut | address | Yes | Output Token Address (address). | ||
fee | uint24 | Yes | Fee Tier (100, 500, 3000, or 10000) (uint24). Pool fee tier in hundredths of a basis point. Common values: 100 (0.01% - stablecoin pairs), 500 (0.05% - correlated pairs), 3000 (0.3% - most pairs), 10000 (1% - exotic pairs). | ||
recipient | address | Yes | Recipient Address (address). | ||
amountOut | uint256 | Yes | Desired Output Amount (wei) (uint256). | ||
amountInMaximum | uint256 | Yes | Maximum Input Amount (wei) (uint256). Maximum tokens you are willing to spend. The transaction reverts if the required input exceeds this. Calculate from a quote plus your slippage tolerance. | ||
sqrtPriceLimitX96 | uint160 | No | 0 | Price Limit (0 for none) (uint160). Square-root price limit encoded as a Q64.96 fixed-point number. Constrains how far the pool price can move during the swap. Set to 0 for no limit (most common). Non-zero values act as a slippage guard at the pool level. | |
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship. |
Outputs
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added. |
included | True when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent. |
Uniswap V3: Quote Exact Input
Action type: uniswap/quote-exact-input. Connection: not required.
Get the expected output amount for a single-hop exact-input swap
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161, 11155111 | Network. | |
tokenIn | address | Yes | Input Token Address (address). | ||
tokenOut | address | Yes | Output Token Address (address). | ||
amountIn | uint256 | Yes | Amount In (wei) (uint256). | ||
fee | uint24 | Yes | Fee Tier (100, 500, 3000, or 10000) (uint24). Pool fee tier in hundredths of a basis point. Common values: 100 (0.01% - stablecoin pairs), 500 (0.05% - correlated pairs), 3000 (0.3% - most pairs), 10000 (1% - exotic pairs). | ||
sqrtPriceLimitX96 | uint160 | No | 0 | Price Limit (0 for none) (uint160). Square-root price limit encoded as a Q64.96 fixed-point number. Constrains how far the pool price can move during the swap. Set to 0 for no limit (most common). Non-zero values act as a slippage guard at the pool level. |
Outputs
| Output | Description |
|---|---|
result | The contract function return value |
result.amountOut | Amount Out (wei) |
result.sqrtPriceX96After | Price After Swap |
result.initializedTicksCrossed | Ticks Crossed |
result.gasEstimate | Gas Estimate |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Uniswap V3: Quote Exact Output
Action type: uniswap/quote-exact-output. Connection: not required.
Get the required input amount for a single-hop exact-output swap
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161, 11155111 | Network. | |
tokenIn | address | Yes | Input Token Address (address). | ||
tokenOut | address | Yes | Output Token Address (address). | ||
amount | uint256 | Yes | Desired Output Amount (wei) (uint256). | ||
fee | uint24 | Yes | Fee Tier (100, 500, 3000, or 10000) (uint24). Pool fee tier in hundredths of a basis point. Common values: 100 (0.01% - stablecoin pairs), 500 (0.05% - correlated pairs), 3000 (0.3% - most pairs), 10000 (1% - exotic pairs). | ||
sqrtPriceLimitX96 | uint160 | No | 0 | Price Limit (0 for none) (uint160). Square-root price limit encoded as a Q64.96 fixed-point number. Constrains how far the pool price can move during the swap. Set to 0 for no limit (most common). Non-zero values act as a slippage guard at the pool level. |
Outputs
| Output | Description |
|---|---|
result | The contract function return value |
result.amountIn | Amount In (wei) |
result.sqrtPriceX96After | Price After Swap |
result.initializedTicksCrossed | Ticks Crossed |
result.gasEstimate | Gas Estimate |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Contracts
| Contract | Chain ids |
|---|---|
| Uniswap V3 Factory | 1, 10, 8453, 42161, 11155111 |
| NonfungiblePositionManager | 1, 10, 8453, 42161, 11155111 |
| SwapRouter02 | 1, 10, 8453, 42161, 11155111 |
| QuoterV2 | 1, 10, 8453, 42161, 11155111 |