I have used hardhat to fork mainnet and imported the account in metamask. When I swap with that account on uniswap it works perfectly fine. But when I use 1inch swap api it connects with my mainnet and says i dont have sufficient fund for swapping. Can I use 1inch api and hardhat forked network to do the swapping in the same network?
This is the api i m hitting from the front end.
1inch API doesn't talk to local forks it's mainnet or public testnets only