Alchemy Rate Limits
I am on growth tier and my Alchemy dApp is currently being rate limited. What are rate limits and what is my limit?
Posted by Aniket over 1 year ago
TypeError: Cannot read properties of undefined (reading 'AlchemyProvider')
Hi, I just want to get the latest block number . I followed the docs, but getting the error
```
const provider = new ethers.providers.AlchemyProvider(
^
TypeError: Cannot read properties of undefined (reading 'AlchemyProvider')
at Object.<anonymous> (D:\BlockChain\Ether JS\readBlockchain.js:5:39)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47
```
Here is my code :
```javascript
const { ethers } = require("ethers");
const network = "mainnet";
const demo = api_key;
const provider = new ethers.providers.AlchemyProvider(
network,
demo
);
const querryBlockchain = async () => {
const blockNumber = await provider.getBlockNumber();
console.log(blockNumber);
};
querryBlockchain();
```
Posted by Asir Shahriar Roudra about 1 year ago
Registration problem !
I tried registering on the site or logging in with my google e-mail address all day long. But things did not go well. No response from Discord or email. Is the company still operating? Or did you shut down the company? down the company?
Posted by johann about 1 year ago
creating a provider?
seems like something has broken in the SDK
based on this code:
https://docs.alchemy.com/docs/how-to-mint-an-nft-from-code#step-1-create-an-alchemy-provider-using-ethers
`const provider = new ethers.providers.AlchemyProvider('mumbai', apiKey);`
gives
```
TypeError: Cannot read properties of null (reading 'name')
node_modules/@ethersproject/providers/src.ts/alchemy-provider.ts:57
switch (network.name) {
```
I also tried passing an object
```
const netObj = {
// name: 'MATIC_MUMBAI',
name: 'polygon-mumbai',
// chainId: 80001 // FIXME
}
```
using
"alchemy-sdk": "^2.0.2",
OK so the working magic codes are:
```
const netObj = {
// name: 'MATIC_MUMBAI',
// name: 'polygon-mumbai',
name: 'maticmum',
chainId: 80001 // hardwired bullshit
}
const provider = new ethers.providers.AlchemyProvider(netObj, apiKey);
```
is there a way to get the hardwired chainId somehow?
Posted by dc over 1 year ago
How do I cancel/delete my account?
I would like to cancel my Alchemy services and have my account deleted, what steps do I need to take to get this done?
Posted by Bob over 1 year ago
cant SignUP!!
If I don't use a VPN, the error message is "Failed reCAPTCHA validation with error: BROWSER_ERROR "
If I use a VPN, the error message is "Blocked signup.""/api/user:1 Failed to load resource: the server responded with a status of 403 ()"
The only time I waited the link to my email after verification, the result was not received for half a day!?
Posted by linyi 8 months ago
How can I refresh the metadata cache for an NFT?
How can I trigger a metadata refresh to refresh the cache for an NFT?
Posted by Elan over 1 year ago
Accessing the Mempool
How do I access the mempool on Alchemy's website
Posted by Aniket Gupta over 1 year ago
Invalid Argument on parseUnits
I am trying to increase the gas price to cancel a transaction but keep getting this error:
```
[Unhandled promise rejection: Error: invalid decimal value (argument="value", value="7.944234428460001e-8", code=INVALID_ARGUMENT, version=bignumber/5.7.0)]
```
Here is my code:
```
let gasPrice = await ethers.utils.formatUnits(oldTransaction.maxFeePerGas, 18);
// 0.000000072220312986
const newGasPrice = gasPrice * 1.1;
// 7.944234428460001e-8
const cancelFees = await Utils.parseUnits(newGasPrice.toString(), 'ether');
```
Why is 7.944234428460001e-8.toString() not a valid argument?
Posted by [email protected] over 1 year ago
Deleting an Alchemy App
How do I delete an App from my Alchemy dashboard? https://dashboard.alchemy.com/
Posted by Aniket over 1 year ago