You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am encountering a TypeError when attempting to send ERC20 tokens (specifically USDT on MATIC network) from a precalculated gas pump address using the prepareTransferFromCustodialWallet function from the Tatum SDK. My expectation was that this function would facilitate the transfer of tokens from the precalculated address to a specified recipient address, with the gas fees being covered by the master address associated with the precalculated address. However, I'm receiving an error stating that the function is not recognized.
Steps to reproduce:
Precalculate gas pump addresses using Tatum SDK.
Attempt to transfer USDT MATIC from one of these addresses to another address, after you have funded it.
Utilize the prepareTransferFromCustodialWallet function with the necessary parameters.
Encounter a TypeError indicating the function is not recognized.
Expected behavior:
The function should successfully initiate the transfer of tokens from the precalculated address to the specified recipient address, with gas fees handled by the master address.
Actual behavior:
Receiving a TypeError, indicating an issue with the function's recognition or execution.
const transfer = await prepareTransferFromCustodialWallet(false, body);
console.log('Transfer executed:', transfer);
Error message received:
TypeError: prepareTransferFromCustodialWallet is not a function
I have also referred to the Tatum documentation and followed their guidelines but still encounter this issue. I appreciate any guidance or assistance in resolving this.
The text was updated successfully, but these errors were encountered:
Issue
I am encountering a TypeError when attempting to send ERC20 tokens (specifically USDT on MATIC network) from a precalculated gas pump address using the
prepareTransferFromCustodialWallet
function from the Tatum SDK. My expectation was that this function would facilitate the transfer of tokens from the precalculated address to a specified recipient address, with the gas fees being covered by the master address associated with the precalculated address. However, I'm receiving an error stating that the function is not recognized.Steps to reproduce:
prepareTransferFromCustodialWallet
function with the necessary parameters.Expected behavior:
The function should successfully initiate the transfer of tokens from the precalculated address to the specified recipient address, with gas fees handled by the master address.
Actual behavior:
Receiving a TypeError, indicating an issue with the function's recognition or execution.
Operating System
Windows
Environment:
NodeJS
NodeJS Version:
v20.10.0
Tatum SDK Version:
v4.2.4
Additional context or information:
Here is the code snippet that produces the error:
const { TatumPolygonSDK } = require('@tatumio/polygon');
const { prepareTransferFromCustodialWallet } = require('@tatumio/tatum');
const body = {
chain: "MATIC",
custodialAddress: address,
recipient: recipientAddress,
contractType: 0,
tokenAddress: usdtMaticContractAddress,
amount: amountToSend,
fromPrivateKey: fromMasterPrivateKey
};
const transfer = await prepareTransferFromCustodialWallet(false, body);
console.log('Transfer executed:', transfer);
Error message received:
TypeError: prepareTransferFromCustodialWallet is not a function
I have also referred to the Tatum documentation and followed their guidelines but still encounter this issue. I appreciate any guidance or assistance in resolving this.
The text was updated successfully, but these errors were encountered: