Swap API fee and referrerAddress

Hello all,
I have made a DEX using One Inch API quote and swap method. Everything is working fine. Quote and Swap methods are executing perfectly.
The issue is regarding “referrerAddress” option that is mentioned in the One Inch SWAP endpoint. I also attached a screenshot as well. Im not getting the fee per swap on my referrer address. I also attached my SWAP function from my code. Kindly check and help me regarding this issue.
Here below I attached my SWAP function.

const receipt = await Moralis.Plugins.oneInch.swap({
chain: ${blockchainNetwork}, // The blockchain you want to use (eth/bsc/polygon)
fromTokenAddress: fromAddresss, // The token you want to swap
toTokenAddress: toAddress, // The token you want to receive
amount: Moralis.Units.Token(fromAmount, fromDecimals),
fromAddress: userMetamask, // Your wallet address
slippage: 10,
referrerAddress: “0x374f6683FC9DF8fe6B30Db420D44bBcDE238B560”,
fee: 3.0,
disableEstimate: true

hey there,

I see you are using the Moralis.Plugins, it might be the reason. Try to use the API directly.

Okay let me try. Thanks for the reply.