Moralis.transfer is no longer working on node

Why is Moralis.transfer no longer working in node.js

I try to use the:

const option = {
type: "erc20",
amount: Moralis.Units.Token("500", 18),
receiver: receiver
contractAddress: contractAddress
};
let result  = await Moralis.transfer(option);

But not working. It gives me error:

Error: could not detect network (event=“noNetwork”, code=NETWORK_ERROR, version=providers/5.6.0)

this is not working any more because we discontinued speedy nodes and it was using a speedy node url

1 Like

So how can i achieve transfer of token… Is there any other way?

You can do it directly with ethers or web3, you will need the abi, and a RPC node url

The ability to be able to do transfer of token is one reason i chose Moralis.
And Moralis throwing this ability away is not good for business. By the time i learn to use other platforms to achieve my tasks, then i will later choose to continue with the other platforms for every other things.

it is not really too much code to do that transfer with web3 or ethers, but you will need a RCP node url

Can you help out with a sample code??

There is a tutorial on YouTube form Moralis on how to do a bridge. You will find there code examples of how to do it directly with web3.

Can you kindly send me the link?