Jump to Content
Alchemy Docs
HomeTutorialsRecipesAPI ReferenceChangelogFAQ
Alchemy LoginAlchemy Docs
Alchemy Login
HomeTutorialsRecipesAPI ReferenceChangelogFAQ

FAQ

Ask a Question

Internal transactions for polygon

How do you get internal value transfer on polygon since only supported on the Ethereum mainnet?
transfers api
Posted by Sabz 10 months ago
ANSWERED

Getting the From and To values of a transaction

Hi - I'm trying to get the "From" and "Interacted With(To)" values of this transaction using Alchemy API: https://etherscan.io/tx/0x945e0df0103789bafe5919e8786c409d7c6878a8e6b15c47c0ce3aea642054b1 Using `getAssetTransfers` function but it only gives the transfers data
transfers api
Posted by Discord User about 1 year ago
ANSWERED

Send All Ether

Hi, How do you send all ether from an address without leaving any left. My calculation is as following. amountToSend = FullAmount - ((gasPrice + maxPriorityFeePerGas) * gasLimit). But there still remains some small amount of ether left. Like $0.9 . The transaction look as follow: const transaction = { to, value: Number(value).minus(totalGas).toString(), gasLimit, gasPrice, maxPriorityFeePerGas: Number(feeData.maxPriorityFeePerGas), maxFeePerGas: gasPrice, nonce, type: 2, chainId: 1, };
transfers api
Posted by Jeremy about 1 year ago
  • FAQs
  • Recent
  • Unanswered
429 erroraccount supportaccount tieraccountsaddress activity webhookalchemyalchemy apialchemy composeralchemy mempoolalchemy sdkalchemy transactalchemy-sdkalchemy_getassettransfersarchive dataastar apibillingcapacity limitschainscompute unitsconcurrent transactionscorecostscucupsdefienhanced apienterpriseerc-20 token tutorialerc2771erc721error 429eth transferseth_calleth_getcodeethereum apievents logevm tracesgasgas estimationgetassettransfersgetblocknumbergetcodegetcontractmetadatagetfloorpricegetlogsgetnftgetnftsgetnftsalesgetnftsforcollectiongetnftsforcontractgetnftsforownergetnftsforowneriteratorgetownersforcollectiongetownersforcontractgetprogramaccountsgettransactiongettransactionreceiptinvalidatecontractipfs gatewayjson-rpcmeta transactionsnftnft apinft cdnnft metadatanoncenotify apipolygonpolygon apipricingrate limitsreinforced transactionsroad to web3sdk websockets endpointsslasmart contractssolana apisolana websocketspam nftssubscription apiteamthroughputtransactiontransaction receipt apitransactionstransfer apitransfers apiusagevideo nftwebhookwebhookswebsocketwebsockets