Skip to Content

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.

ActionAction type
Uniswap V3: Get Pool Addressuniswap/get-pool
Uniswap V3: Get Position Detailsuniswap/get-position
Uniswap V3: Get Position Countuniswap/balance-of
Uniswap V3: Get Position Owneruniswap/owner-of
Uniswap V3: Approve Position Transferuniswap/approve-position
Uniswap V3: Transfer Position NFTuniswap/transfer-position
Uniswap V3: Burn Empty Positionuniswap/burn-position
Uniswap V3: Collect Feesuniswap/collect-fees
Uniswap V3: Decrease Liquidityuniswap/decrease-liquidity
Uniswap V3: Increase Liquidityuniswap/increase-liquidity
Uniswap V3: Swap Exact Inputuniswap/swap-exact-input
Uniswap V3: Swap Exact Outputuniswap/swap-exact-output
Uniswap V3: Quote Exact Inputuniswap/quote-exact-input
Uniswap V3: Quote Exact Outputuniswap/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

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161, 11155111Network.
tokenAaddressYesToken A Address (address).
tokenBaddressYesToken B Address (address).
feeuint24YesFee 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

OutputDescription
resultThe contract function return value
result.poolPool Address
successWhether the operation succeeded
errorError 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

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161, 11155111Network.
tokenIduint256YesPosition 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

OutputDescription
resultThe contract function return value
result.nonceNonce
result.operatorOperator Address
result.token0Token 0 Address
result.token1Token 1 Address
result.feeFee Tier
result.tickLowerLower Tick
result.tickUpperUpper Tick
result.liquidityLiquidity
result.feeGrowthInside0LastX128Fee Growth Inside 0 (X128)
result.feeGrowthInside1LastX128Fee Growth Inside 1 (X128)
result.tokensOwed0Tokens Owed 0
result.tokensOwed1Tokens Owed 1
successWhether the operation succeeded
errorError 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

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161, 11155111Network.
owneraddressYesWallet Address (address).

Outputs

OutputDescription
resultPosition Count
successWhether the operation succeeded
errorError 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

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161, 11155111Network.
tokenIduint256YesPosition 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

OutputDescription
resultOwner Address
successWhether the operation succeeded
errorError 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

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161, 11155111Network.
sendModestringNotransaction, private-relaySend 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.
toaddressYesApproved Address (address).
tokenIduint256YesPosition 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.
gasLimitMultiplierstringNoGas Limit.
sponsorGasbooleanNotrueSponsor 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

OutputDescription
successWhether the operation succeeded
errorError message if the operation failed
transactionHashTransaction hash
transactionLinkExplorer link to transaction
routeHow 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.
includedTrue 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

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161, 11155111Network.
sendModestringNotransaction, private-relaySend 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.
fromaddressYesFrom Address (address).
toaddressYesTo Address (address).
tokenIduint256YesPosition 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.
gasLimitMultiplierstringNoGas Limit.
sponsorGasbooleanNotrueSponsor 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

OutputDescription
successWhether the operation succeeded
errorError message if the operation failed
transactionHashTransaction hash
transactionLinkExplorer link to transaction
routeHow 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.
includedTrue 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

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161, 11155111Network.
sendModestringNotransaction, private-relaySend 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.
ethValuestringNoETH Value.
tokenIduint256YesPosition 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.
gasLimitMultiplierstringNoGas Limit.
sponsorGasbooleanNotrueSponsor 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

OutputDescription
successWhether the operation succeeded
errorError message if the operation failed
transactionHashTransaction hash
transactionLinkExplorer link to transaction
routeHow 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.
includedTrue 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

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161, 11155111Network.
sendModestringNotransaction, private-relaySend 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.
tokenIduint256YesPosition 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.
recipientaddressYesRecipient 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.
amount0Maxuint128No340282366920938463463374607431768211455Max 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.
amount1Maxuint128No340282366920938463463374607431768211455Max 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.
gasLimitMultiplierstringNoGas Limit.
sponsorGasbooleanNotrueSponsor 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

OutputDescription
successWhether the operation succeeded
errorError message if the operation failed
transactionHashTransaction hash
transactionLinkExplorer link to transaction
routeHow 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.
includedTrue 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

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161, 11155111Network.
sendModestringNotransaction, private-relaySend 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.
tokenIduint256YesPosition 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.
liquidityuint128YesLiquidity 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.
amount0Minuint256YesMinimum 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.
amount1Minuint256YesMinimum 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.
deadlineuint256YesDeadline (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.
gasLimitMultiplierstringNoGas Limit.
sponsorGasbooleanNotrueSponsor 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

OutputDescription
successWhether the operation succeeded
errorError message if the operation failed
transactionHashTransaction hash
transactionLinkExplorer link to transaction
routeHow 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.
includedTrue 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

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161, 11155111Network.
sendModestringNotransaction, private-relaySend 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.
tokenIduint256YesPosition 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.
amount0Desireduint256YesToken 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.
amount1Desireduint256YesToken 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.
amount0Minuint256YesMinimum 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.
amount1Minuint256YesMinimum 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.
deadlineuint256YesDeadline (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.
gasLimitMultiplierstringNoGas Limit.
sponsorGasbooleanNotrueSponsor 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

OutputDescription
successWhether the operation succeeded
errorError message if the operation failed
transactionHashTransaction hash
transactionLinkExplorer link to transaction
routeHow 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.
includedTrue 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

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161, 11155111Network.
sendModestringNotransaction, private-relaySend 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.
ethValuestringNoETH Value.
tokenInaddressYesInput 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.
tokenOutaddressYesOutput Token Address (address).
feeuint24YesFee 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).
recipientaddressYesRecipient Address (address).
amountInuint256YesAmount In (wei) (uint256).
amountOutMinimumuint256YesMinimum 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.
sqrtPriceLimitX96uint160No0Price 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.
gasLimitMultiplierstringNoGas Limit.
sponsorGasbooleanNotrueSponsor 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

OutputDescription
successWhether the operation succeeded
errorError message if the operation failed
transactionHashTransaction hash
transactionLinkExplorer link to transaction
routeHow 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.
includedTrue 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

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161, 11155111Network.
sendModestringNotransaction, private-relaySend 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.
ethValuestringNoETH Value.
tokenInaddressYesInput 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.
tokenOutaddressYesOutput Token Address (address).
feeuint24YesFee 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).
recipientaddressYesRecipient Address (address).
amountOutuint256YesDesired Output Amount (wei) (uint256).
amountInMaximumuint256YesMaximum 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.
sqrtPriceLimitX96uint160No0Price 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.
gasLimitMultiplierstringNoGas Limit.
sponsorGasbooleanNotrueSponsor 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

OutputDescription
successWhether the operation succeeded
errorError message if the operation failed
transactionHashTransaction hash
transactionLinkExplorer link to transaction
routeHow 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.
includedTrue 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

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161, 11155111Network.
tokenInaddressYesInput Token Address (address).
tokenOutaddressYesOutput Token Address (address).
amountInuint256YesAmount In (wei) (uint256).
feeuint24YesFee 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).
sqrtPriceLimitX96uint160No0Price 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

OutputDescription
resultThe contract function return value
result.amountOutAmount Out (wei)
result.sqrtPriceX96AfterPrice After Swap
result.initializedTicksCrossedTicks Crossed
result.gasEstimateGas Estimate
successWhether the operation succeeded
errorError 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

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161, 11155111Network.
tokenInaddressYesInput Token Address (address).
tokenOutaddressYesOutput Token Address (address).
amountuint256YesDesired Output Amount (wei) (uint256).
feeuint24YesFee 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).
sqrtPriceLimitX96uint160No0Price 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

OutputDescription
resultThe contract function return value
result.amountInAmount In (wei)
result.sqrtPriceX96AfterPrice After Swap
result.initializedTicksCrossedTicks Crossed
result.gasEstimateGas Estimate
successWhether the operation succeeded
errorError message if the operation failed

Contracts

ContractChain ids
Uniswap V3 Factory1, 10, 8453, 42161, 11155111
NonfungiblePositionManager1, 10, 8453, 42161, 11155111
SwapRouter021, 10, 8453, 42161, 11155111
QuoterV21, 10, 8453, 42161, 11155111