I’m looking for a sample code snippet or guidance on how to transfer Move tokens on the Porto Testnet because my code below is not working. Thanks
const transfer = async () => {
try {
const config = new AptosConfig({
network: Network.TESTNET,
fullnode: 'https://aptos.testnet.porto.movementlabs.xyz/v1',
faucet: 'https://fund.testnet.porto.movementlabs.xyz/'
})
const aptos = new Aptos(config);
const APTOS_COIN = "0x1::aptos_coin::AptosCoin";
const response = await signAndSubmitTransaction({
sender: account?.address,
data: {
function: "0x1::coin::transfer",
typeArguments: [APTOS_COIN],
functionArguments: [receiverAddr, 1000000],
},
});
await aptos.waitForTransaction({ transactionHash: response.hash });
} catch (error) {
console.log(error);
}
}