Vault Node
Vault Node is a trade execution node used to connect and query user asset information in the TradingFlow vault system. It supports multi-chain queries including Aptos and Flow EVM, and can retrieve vault balances, portfolio composition, and asset values.
Node Information
Node Type
vault_node
Display Name
Vault
Category
Trade (Execution)
Icon
π¦ Bank Icon
Handle Color
Amber (Orange)
Functionality
Vault Node connects to TradingFlow's decentralized vault system to query asset holdings for a specified user address. The node automatically calculates asset values, supports multi-chain queries, and passes results to downstream trade nodes.
Main Uses:
Query vault asset holdings and balances
Retrieve multi-chain asset value information
Provide funding source for trade nodes
Monitor portfolio changes
Calculate total asset value (USD)
Core Features:
π Multi-Chain Support: Aptos and Flow EVM
π° Real-Time Pricing: Automatically fetches token prices and calculates asset values
π Portfolio: Complete holdings composition and ratio information
π Chain Passing: Passes vault address and chain info to downstream trade nodes
π Auto Refresh: Updates latest asset information on each execution
Input Parameters
Parameter List
chain
select
β
aptos
Blockchain network
vault_address
text
β
-
Vault or user address
Note: The
chain_idparameter has been removed (v0.4.1+). The system automatically determines the correspondingchain_idbased on thechainparameter:
aptosβ No chain_id needed
flow_evmβ Automatically uses 545 (testnet) or 747 (mainnet)
chain Parameter
Supported Blockchains:
Aptos
aptos
-
Aptos mainnet/testnet
Flow EVM
flow_evm
545
Flow EVM testnet
Selection Guide:
If your vault is on Aptos, select
aptosIf your vault is on Flow EVM, select
flow_evm
vault_address Parameter
Format Requirements:
Aptos
0x prefixed hex address
0x6a1a233e9c3871fc3719e4238bf61218c98d3b89fa5c2a37c87e7f6d60e07292
Flow EVM
0x prefixed ETH address
0x1234567890123456789012345678901234567890
Description:
This is the vault address you created in the TradingFlow system
You can view your vault address in the Vaults tab on the Windmill page
The address must be a valid created vault
Output Parameters
Output List
vault
Vault
object
Complete vault info object with chain, address, balance
vault Output
Data Type: object
Complete Data Structure:
Description:
The vault output contains complete vault information including chain, address, balance, holdings
Downstream nodes can extract any required fields from this object
Contains real-time prices and calculated asset values
Signal Transmission
Sent Signal
Signal Handle: vault
Signal Type: SignalType.VAULT_INFO
Signal Payload: Complete vault info object (see vault output structure above)
Signal Flow Example
Workflow
Node Execution Flow
Usage Examples
Example 1: Aptos Vault Query
Scenario: Query holdings in Aptos vault, then execute Swap.
Vault Node Configuration:
Workflow:
Example 2: Flow EVM Vault Query
Scenario: Query Flow EVM testnet vault, check balance then execute buy.
Vault Node Configuration:
Note: No need to configure
chain_id, system automatically uses 545 (testnet) forchain: "flow_evm".
Workflow:
Important Notes
β οΈ Key Points
Vault Address Validation
Address must be a valid created vault
Using wrong address will cause query failure
Recommend confirming address on Windmill page
Chain Parameter Consistency
chain parameter must match vault's actual chain
chain_id is auto-determined by system based on chain (no manual config needed)
Cross-chain vault queries not supported
Output Signal Usage
Downstream trade nodes receive complete info via vault object
vault object contains chain, address, holdings, and all required fields
Trade nodes extract needed info from vault object for execution
Troubleshooting
Q: "vault_address is required but not provided" error?
A:
Confirm Vault Node's vault_address parameter is filled
If using signal passing, confirm upstream node correctly sends vault_address
Check address format (Aptos: 0x..., Flow EVM: 0x...)
Q: Query returns empty holdings or value 0?
A:
Confirm vault address is correct
Confirm vault actually has assets
Check network connection
View node logs for detailed error info
Q: Flow EVM query fails?
A:
Confirm chain parameter is
flow_evm(chain_id auto-determined as 545)Check if Flow EVM companion service is running
Confirm vault address format is correct
Check error logs for specific issues
Technical Specifications
Node Version
1.0.0
Chains
Aptos, Flow EVM
Max Concurrency
1
Execution Mode
Single execution (query once then complete)
Timeout
30 seconds (service call)
Log Levels
DEBUG, INFO, WARNING, ERROR
Related Nodes
Swap Node - Use vault to execute token swap
Buy Node - Use vault to buy tokens
Sell Node - Use vault to sell tokens
Code Node - Process vault data and balance checks
Related Documentation
Nodes and Workflows - Node basics
Maintained by: TradingFlow Development Team Version: 1.0.0
Last updated