Hi everyone,
I’m currently building a workflow to automate some rebalancing between my hardware wallet and a hot wallet for liquidity providing on Uniswap. I’m using the HTTP Request node to interact with the blockchain via Infura, but I’ve hit a bit of a roadblock regarding security.
Right now, I’m using the n8n Crypto Node to handle some basic hashing, but I need to sign transactions before sending them to the RPC endpoint.
My setup:
Trigger: Schedule node (every 4 hours).
Logic: Checking price floor via CoinGecko API.
Action: If price < $X, sign a ‘Swap’ transaction.
My questions:
Credential Management: For those doing similar DeFi automation, are you storing your private keys in n8n’s internal credentials store, or are you fetching them from an external vault like HashiCorp or 1Password at runtime?
Transaction Signing: Is there a community node that handles EIP-1559 transaction signing natively, or is everyone just using a Code Node with ethers.js or web3.js? I’m worried about the performance of loading those libraries in every execution.
Error Handling: How do you handle ‘Gas Price’ spikes? My last execution failed because the gas limit was too low, and the workflow just stopped. Is there a way to ‘retry with higher gas’ without creating an infinite loop?
I’m running a self-hosted Docker instance of n8n. Any advice on the safest way to handle the signing part would be huge!