Spark action reference
This page is generated from the plugin registry. Do not edit it by hand.
Spark Protocol (Aave V3 fork): lending, borrowing, and sDAI savings in the Sky/Maker ecosystem
For guidance and examples see the Spark 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 |
|---|---|
| Spark: Supply Asset | spark/supply |
| Spark: Withdraw Asset | spark/withdraw |
| Spark: Borrow Asset | spark/borrow |
| Spark: Repay Debt | spark/repay |
| Spark: Set Asset as Collateral | spark/set-collateral |
| Spark: Get User Account Data | spark/get-user-account-data |
| Spark: Get User Reserve Data | spark/get-user-reserve-data |
| Spark: Vault Deposit | spark/vault-deposit |
| Spark: Vault Mint | spark/vault-mint |
| Spark: Vault Withdraw | spark/vault-withdraw |
| Spark: Vault Redeem | spark/vault-redeem |
| Spark: Vault Underlying Asset | spark/vault-asset |
| Spark: Vault Total Assets | spark/vault-total-assets |
| Spark: Vault Total Supply | spark/vault-total-supply |
| Spark: Vault Share Balance | spark/vault-balance |
| Spark: Convert Shares to Assets | spark/vault-convert-to-assets |
| Spark: Convert Assets to Shares | spark/vault-convert-to-shares |
| Spark: Preview Vault Deposit | spark/vault-preview-deposit |
| Spark: Preview Vault Mint | spark/vault-preview-mint |
| Spark: Preview Vault Withdraw | spark/vault-preview-withdraw |
| Spark: Preview Vault Redeem | spark/vault-preview-redeem |
| Spark: Max Vault Deposit | spark/vault-max-deposit |
| Spark: Max Vault Mint | spark/vault-max-mint |
| Spark: Max Vault Withdraw | spark/vault-max-withdraw |
| Spark: Max Vault Redeem | spark/vault-max-redeem |
Spark: Supply Asset
Action type: spark/supply. Connection: required (web3).
Supply an asset to the SparkLend lending pool to earn interest
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 100 | 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. | |
asset | address | Yes | Asset Token Address (address). | ||
amount | uint256 | Yes | Amount (wei) (uint256). | ||
onBehalfOf | address | Yes | On Behalf Of Address (address). | ||
referralCode | uint16 | No | 0 | Referral Code (uint16). | |
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. |
Spark: Withdraw Asset
Action type: spark/withdraw. Connection: required (web3).
Withdraw a supplied asset from the SparkLend lending pool
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 100 | 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. | |
asset | address | Yes | Asset Token Address (address). | ||
amount | uint256 | Yes | Amount (wei) (uint256). | ||
to | address | Yes | Recipient Address (address). | ||
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. |
Spark: Borrow Asset
Action type: spark/borrow. Connection: required (web3).
Borrow an asset from SparkLend against supplied collateral
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 100 | 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. | |
asset | address | Yes | Asset Token Address (address). | ||
amount | uint256 | Yes | Amount (wei) (uint256). | ||
interestRateMode | uint256 | No | 2 | Interest Rate Mode (2=Variable) (uint256). | |
referralCode | uint16 | No | 0 | Referral Code (uint16). | |
onBehalfOf | address | Yes | On Behalf Of Address (address). | ||
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. |
Spark: Repay Debt
Action type: spark/repay. Connection: required (web3).
Repay a borrowed asset to the SparkLend lending pool
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 100 | 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. | |
asset | address | Yes | Asset Token Address (address). | ||
amount | uint256 | Yes | Amount (wei) (uint256). | ||
interestRateMode | uint256 | No | 2 | Interest Rate Mode (2=Variable) (uint256). | |
onBehalfOf | address | Yes | On Behalf Of Address (address). | ||
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. |
Spark: Set Asset as Collateral
Action type: spark/set-collateral. Connection: required (web3).
Enable or disable a supplied asset as collateral in SparkLend
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 100 | 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. | |
asset | address | Yes | Asset Token Address (address). | ||
useAsCollateral | bool | Yes | Use as Collateral (bool). Toggles the entire supplied balance of this asset as collateral. There is no partial collateral in Aave V3/Spark. | ||
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. |
Spark: Get User Account Data
Action type: spark/get-user-account-data. Connection: not required.
Get overall account health including collateral, debt, borrow power, and health factor
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 100 | Network. | |
user | address | Yes | User Address (address). |
Outputs
| Output | Description |
|---|---|
result | The contract function return value |
result.totalCollateralBase | Total Collateral (base currency) |
result.totalDebtBase | Total Debt (base currency) |
result.availableBorrowsBase | Available Borrows (base currency) |
result.currentLiquidationThreshold | Liquidation Threshold (basis points) |
result.ltv | Loan-to-Value (basis points) |
result.healthFactor | Health Factor |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Spark: Get User Reserve Data
Action type: spark/get-user-reserve-data. Connection: not required.
Get per-asset position data including supplied balance, debt, and rates
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 100 | Network. | |
asset | address | Yes | Asset Token Address (address). | ||
user | address | Yes | User Address (address). |
Outputs
| Output | Description |
|---|---|
result | The contract function return value |
result.currentATokenBalance | Supplied Balance (spToken) |
result.currentStableDebtTokenBalance | Stable Debt Balance |
result.currentVariableDebtTokenBalance | Variable Debt Balance |
result.principalStableDebt | Principal Stable Debt |
result.scaledVariableDebt | Scaled Variable Debt |
result.stableBorrowRate | Stable Borrow Rate (ray) |
result.liquidityRate | Supply APY (ray) |
result.stableRateLastUpdated | Stable Rate Last Updated (timestamp) |
result.usageAsCollateralEnabled | Used as Collateral |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Spark: Vault Deposit
Action type: spark/vault-deposit. Connection: required (web3).
Deposit assets into the ERC-4626 vault and receive shares
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1 | 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. | |
assets | uint256 | Yes | Asset Amount (wei) (uint256). | ||
receiver | address | Yes | Receiver Address (address). | ||
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. |
Spark: Vault Mint
Action type: spark/vault-mint. Connection: required (web3).
Mint exact vault shares by depositing the required amount of assets
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1 | 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. | |
shares | uint256 | Yes | Shares Amount (wei) (uint256). | ||
receiver | address | Yes | Receiver Address (address). | ||
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. |
Spark: Vault Withdraw
Action type: spark/vault-withdraw. Connection: required (web3).
Withdraw assets from the ERC-4626 vault by specifying asset amount
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1 | 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. | |
assets | uint256 | Yes | Asset Amount (wei) (uint256). | ||
receiver | address | Yes | Receiver Address (address). | ||
owner | address | Yes | Share Owner Address (address). | ||
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. |
Spark: Vault Redeem
Action type: spark/vault-redeem. Connection: required (web3).
Redeem shares from the ERC-4626 vault for underlying assets
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1 | 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. | |
shares | uint256 | Yes | Shares Amount (wei) (uint256). | ||
receiver | address | Yes | Receiver Address (address). | ||
owner | address | Yes | Share Owner Address (address). | ||
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. |
Spark: Vault Underlying Asset
Action type: spark/vault-asset. Connection: not required.
Get the address of the underlying asset token for this vault
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1 | Network. |
Outputs
| Output | Description |
|---|---|
result | Underlying Asset Address |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Spark: Vault Total Assets
Action type: spark/vault-total-assets. Connection: not required.
Get the total amount of underlying assets held by the vault
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1 | Network. |
Outputs
| Output | Description |
|---|---|
result | Total Assets (wei) |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Spark: Vault Total Supply
Action type: spark/vault-total-supply. Connection: not required.
Get the total supply of vault shares
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1 | Network. |
Outputs
| Output | Description |
|---|---|
result | Total Shares (wei) |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Spark: Vault Share Balance
Action type: spark/vault-balance. Connection: not required.
Get the vault share balance of an address
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1 | Network. | |
account | address | Yes | Wallet Address (address). |
Outputs
| Output | Description |
|---|---|
result | Share Balance (wei) |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Spark: Convert Shares to Assets
Action type: spark/vault-convert-to-assets. Connection: not required.
Convert a vault share amount to its underlying asset value at the current rate
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1 | Network. | |
shares | uint256 | Yes | Shares Amount (wei) (uint256). |
Outputs
| Output | Description |
|---|---|
result | Asset Value (wei) |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Spark: Convert Assets to Shares
Action type: spark/vault-convert-to-shares. Connection: not required.
Convert an asset amount to the equivalent vault shares at the current rate
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1 | Network. | |
assets | uint256 | Yes | Asset Amount (wei) (uint256). |
Outputs
| Output | Description |
|---|---|
result | Shares Amount (wei) |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Spark: Preview Vault Deposit
Action type: spark/vault-preview-deposit. Connection: not required.
Preview how many shares a given asset deposit would yield
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1 | Network. | |
assets | uint256 | Yes | Asset Amount (wei) (uint256). |
Outputs
| Output | Description |
|---|---|
result | Shares Received (wei) |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Spark: Preview Vault Mint
Action type: spark/vault-preview-mint. Connection: not required.
Preview how many assets are needed to mint a given number of shares
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1 | Network. | |
shares | uint256 | Yes | Shares Amount (wei) (uint256). |
Outputs
| Output | Description |
|---|---|
result | Assets Required (wei) |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Spark: Preview Vault Withdraw
Action type: spark/vault-preview-withdraw. Connection: not required.
Preview how many shares must be burned to withdraw a given asset amount
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1 | Network. | |
assets | uint256 | Yes | Asset Amount (wei) (uint256). |
Outputs
| Output | Description |
|---|---|
result | Shares Burned (wei) |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Spark: Preview Vault Redeem
Action type: spark/vault-preview-redeem. Connection: not required.
Preview how many assets a given share redemption would yield
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1 | Network. | |
shares | uint256 | Yes | Shares Amount (wei) (uint256). |
Outputs
| Output | Description |
|---|---|
result | Assets Received (wei) |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Spark: Max Vault Deposit
Action type: spark/vault-max-deposit. Connection: not required.
Get the maximum amount of assets that can be deposited for a receiver
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1 | Network. | |
receiver | address | Yes | Receiver Address (address). |
Outputs
| Output | Description |
|---|---|
result | Max Deposit (wei) |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Spark: Max Vault Mint
Action type: spark/vault-max-mint. Connection: not required.
Get the maximum number of shares that can be minted for a receiver
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1 | Network. | |
receiver | address | Yes | Receiver Address (address). |
Outputs
| Output | Description |
|---|---|
result | Max Mint (wei) |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Spark: Max Vault Withdraw
Action type: spark/vault-max-withdraw. Connection: not required.
Get the maximum amount of assets that can be withdrawn by an owner
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1 | Network. | |
owner | address | Yes | Owner Address (address). |
Outputs
| Output | Description |
|---|---|
result | Max Withdraw (wei) |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Spark: Max Vault Redeem
Action type: spark/vault-max-redeem. Connection: not required.
Get the maximum number of shares that can be redeemed by an owner
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1 | Network. | |
owner | address | Yes | Owner Address (address). |
Outputs
| Output | Description |
|---|---|
result | Max Redeem (wei) |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Contracts
| Contract | Chain ids |
|---|---|
| SparkLend Pool | 1, 100 |
| Spark Pool Data Provider | 1, 100 |
| sDAI (Savings DAI) | 1 |