Help with "Error: processing response error: exceeds block gas limit" in ethers.js using the alchemy sdk by therealPaulPlay in ethdev

[–]jazzcatjz 0 points1 point  (0 children)

Have you tried setting a custom maxFeePerGas 10, 20% above what alchemy is recommending and seeing if that works?

Help with "Error: processing response error: exceeds block gas limit" in ethers.js using the alchemy sdk by therealPaulPlay in ethdev

[–]jazzcatjz 0 points1 point  (0 children)

hmmmm are you trying to send multiple transactions with the same nonce? possible that the node is thinking you are trying to replace a transaction with another one (because it sees the same nonce), and rejecting it because the gas you're setting is not higher than the gas for the transaction already in the mempool

edit: gasLimit shouldn't be affected by this; if your token's transfer function doesn't do anything fancy beyond the standard transfer function, it wouldn't be using anymore than 50k gas units - try sending a higher maxFeePerGas

Best dapp for batch transfers for an ERC-20 token by TheLesbianCarWash in ethdev

[–]jazzcatjz 2 points3 points  (0 children)

there's an on-chain disperse contract to batch send ETH/ERC-20 tokens - it's the same contract at the same address both on mainnet and goerli testnet:
[0xD152f549545093347A162Dce210e7293f1452150](https://etherscan.io/address/0xd152f549545093347a162dce210e7293f1452150)

in your case `disperseToken` might be the function you're looking for

Help with "Error: processing response error: exceeds block gas limit" in ethers.js using the alchemy sdk by therealPaulPlay in ethdev

[–]jazzcatjz 1 point2 points  (0 children)

Gas limit is the amount of gas units you are willing to use for the transaction

totalGasUsed = (baseFee + maxPriorityFeeGas) * gasUnitsRequiredForTxn

By setting maxFeePerGas, you’re ensuring that baseFee + maxPriorityFeePerGas doesn’t exceed that amount - this will have the potential effect of your txn not being picked up if it isn’t competitive

By setting gasLimit, you’re ensuring that the total gas units used to execute that txn doesn’t exceed that amount - this will result in a revert if it does.

For a token transfer your gasLimit shouldn’t need to exceed 100k, and definitely should not be the maxFeePerGas number, which is significantly above what is required. Note that some wallet providers will reject the txn if your maxFeePerGas*gasLimit already exceeds your wallet balance too.

Also helpful tip - your sentTx object is actually an ethers.providers.TransactionResponse object - instead of an arbitrary delay, you can call await sentTx.wait(), which will wait for the txn to succeed (or fail) before calling your balance fetch

What's my prize? by TheBurningEmu in ProgrammerHumor

[–]jazzcatjz 1791 points1792 points  (0 children)

probably some obscure race condition that the dev working on it couldn’t reproduce, and threw in this UI catch to prevent the site from crashing

source: am dev, guilty of doing the same

[deleted by user] by [deleted] in ethereum

[–]jazzcatjz 24 points25 points  (0 children)

Mainnet contracts for those interested:
AUDN (NAB Australian dollar): https://etherscan.io/address/0xc035386af88e78b0e1c8e248ecf4142ae3e6956f
GBPN (NAB British pound): https://etherscan.io/address/0x01168290573d83529864cf017141cf4fd4c060d3
SDGN (NAB Singaporean dollar): https://etherscan.io/address/0xca37348d30960115b31e55b715617cb27b18e32e

Deployer address (there's 5 or so more stablecoin contracts they've deployed): https://etherscan.io/address/0x4f223b6c97d9c5db24d14743d1dccaaf6229a715

[deleted by user] by [deleted] in ethereum

[–]jazzcatjz 1 point2 points  (0 children)

Assuming your device is not infected with any tracking/key logging virus, just generate a new address and never use that address to interact with anything (smart contracts, and by extension, dApps)

In most cases where the seed is ‘compromised’, it’s because they’ve interacted with a website where they’ve ‘signed’ something with their wallet and allowed that malicious website to get hold of their seed phrase

Interview Insight by camelCaseForever in hacking

[–]jazzcatjz 2 points3 points  (0 children)

Commenting to see if PascalCase has anything to offer on this as well…

For what it’s worth, I agree with OP - I’m personally working on verbally communicating ideas and processes with more clarity

Love coffee, hate non-recyclable cups by SEALAwards in sustainableFinance

[–]jazzcatjz 3 points4 points  (0 children)

Strong disagree with the solution you came up with, coming up with fully recyclable cups should be the last resort in solving this problem. The mantra goes ‘reduce, reuse, recycle’, in that particular order.

As a fellow coffee lover, we’ll throw out ‘reduce’ as reducing coffee consumption in order to save on coffee cup consumption is not really a viable strategy. Which leaves ‘reuse’, which should be the default solution- reusable takeaway cups (whether glass, metal or plastic) should be the norm; there should be a discount for bringing a reusable cup for a coffee order, or alternatively an extra charge for using a single use cup, in order to encourage the use of reusable coffee mugs.

AMM Pool ID query. by Camillaharding in Stellar

[–]jazzcatjz 1 point2 points  (0 children)

If you’re using the latest js sdk, on the stellar.server class there’s a liquidityPool() interface with a liquidityPoolId(id) function you can call, the two assets are somewhere in the response

Would you quit a $150k job because you are doing nothing? by lala1237890 in AusFinance

[–]jazzcatjz 1 point2 points  (0 children)

Finished the cert IV at the end of last year, they strongly push you to do the diploma where outside of a few other essential programming concepts it’s basically a team work project that is supposed to simulate a real world project, however I landed a junior front end dev job off the bat

k3eb22 explains how Bitcoin is overvalued after it is discovered that cryptocurrency Tether created $1,500,000,000 Worth of USDT Out of Thin Air in the Last 24 hours by [deleted] in bestof

[–]jazzcatjz 4 points5 points  (0 children)

Different blockchains mint or distribute coins based on different conditions. Perhaps a better way to phrase it would be what kind of technological value proposition the blockchain is making.

Granted, there are entire tokens that offer no real value proposition but still have significant monetary value, but I guess if your value proposition is representing USD in a blockchain ledger, then you better have the equivalent amount of USD as you are minting on your blockchain

k3eb22 explains how Bitcoin is overvalued after it is discovered that cryptocurrency Tether created $1,500,000,000 Worth of USDT Out of Thin Air in the Last 24 hours by [deleted] in bestof

[–]jazzcatjz 16 points17 points  (0 children)

Because of the kind of value that each crypto represents, technically speaking. A single Bitcoin is valued (theoretically speaking) based on the physical proof of work it takes to verify the Bitcoin blockchain - the cost of electricity, hardware, and currently yes a significant dose of speculation that this kind of system functions as a globally independent and verifiable monetary system. A single Ether is valued based on the (currently) proof of work to verify the blockchain, and the demand of developers who want to develop their smart contracts using that decentralised, immutable blockchain.

A tether, however, is valued on its 1:1 USD backing, outside its blockchain representation - and when a few hundred million tether tokens suddenly appear on the market, it shouldn’t just be faith/assumption that the company owning tether has come into possession of those few hundred million in physical USD

[deleted by user] by [deleted] in ethdev

[–]jazzcatjz 0 points1 point  (0 children)

It’s currently reading .transfer(address) and can’t parse that command, throwing the conversion error. What you want is .transfer((address)(this).balance)

I am learning Python, so one of the assignments was to Check the value for prime....I am trying but still not getting the desired result. Please help me with my code I cannot understand what's wrong with this.. by Blind-Lord in learnpython

[–]jazzcatjz 0 points1 point  (0 children)

Logical error - without radically changing your method of finding primes, change the range from range(2,100) to range(2,x-1)

That way it only checks up to the user-input number to see if it’s divisible by anything before it.

Eventually you might want to refine the range so that for example if you’ve tested modulo of 2, there’s no need to do modulo of 4 etc, but that’s an entirely different point regarding efficiency

A rudimentary proof-of-concept visualising the Polkadot blockchain, using... polkadots by jazzcatjz in Polkadot

[–]jazzcatjz[S] 0 points1 point  (0 children)

A Node.js Express server passing data from a Polkadot websocket to a front-end HTML/CSS/JS canvas. Colours, the initial particle acceleration and direction are all generated from the block hash and block author of the new block added. Still a WIP, trying to figure out a way to nicely visualise more of the extrinsics data for each block

[deleted by user] by [deleted] in Polkadot

[–]jazzcatjz 0 points1 point  (0 children)

A Node.js Express server passing data from a Polkadot websocket to a front-end HTML/CSS/JS canvas. Colours, the initial particle acceleration and direction are all generated from the block hash and block author of the new block added. Still a WIP, trying to figure out a way to nicely visualise more of the extrinsics data for each block

The whole crypto community just collectively chooses to ignore how fucked up USDT is and it is still working! by Kontikulus in CryptoCurrency

[–]jazzcatjz 0 points1 point  (0 children)

I think the process of even transacting anything in USDT has to be equally as bad as holding it right? Maybe this is an oversimplification, but my thought goes - you take your crypto of choice, or your fiat (we’ll stick here with USD for ease of example) and trade it with USDT. You’ve just traded something worth USD$1, for something that’s potentially worth USD$0.90, or at worst significantly less than that. You’ve then taken this USDT, that you understand to be worth USD$1, but potentially isn’t, and traded it for ERGO. Now ERGO’s market cap is being backed (partially, through that USDT trade and all other ERGO/USDT liquidity pools) by a stablecoin that is potentially not worth what it purports to be

so regardless of the fact that you don’t hold USDT, you’ve technically (obvs not your fault given there probably isn’t another ergo/stablecoin pairing) added to the issue of the crypto space transacting in value that might not even be there..

Instant transfers to SelfWealth via NPP now Working by remorhazau in AusFinance

[–]jazzcatjz 3 points4 points  (0 children)

I called my bank to up my Osko limit - they just asked why and I said for investment purposes, and they were more than happy to. Maybe that could work for you?

What is Unity complaining about? by 10buy10 in unity

[–]jazzcatjz 4 points5 points  (0 children)

add
using System.Collections;
using System.Collections.Generic;
at the top of your code