Questions tagged [nodejs]
Node.js is a platform built on Chrome's JavaScript runtime for easily building fast and scalable network applications.
796 questions
1 vote
0 answers
24 views
Error: Tx with nonce for safe already executed in tx-hash
I'm currently operating a service that uses @safe-global/safe-core-sdk and @safe-global/safe-service-client to send ERC20 tokens on Ethereum through a Safe wallet (with 2 out of 3 confirmations ...
0 votes
0 answers
28 views
How do I accurately calculate how many tokens need to be sold to reach a target price in a Uniswap V3 pool?
I have been banging my head against the wall with this one for days. I presume I must be missing an obvious detail. There is a Uniswap V3 pool on Arbitrum One. I want to calculate (roughly) how many ...
0 votes
1 answer
66 views
Mempool end of block and start of new one
Hello all i am confuse about one thing in the case i am seaching to be at the position 0 of à new block .. Listening the mempool i want know, how can we know when the block end and à new one start ? ...
0 votes
0 answers
70 views
quoteExactInputSingle IS NOT the same amount of Pancakeswap
async function quoteExactInputSingle(tokenIn, tokenOut, amountIn, feeAmount, priceLimitX96) { try { // Créer l'objet de paramètres const params = { tokenIn: tokenIn, //...
1 vote
2 answers
176 views
Equivalent of getAmountsOut (depecated) for Pancakeswap v3
I hope everything is fine. Listen, we can see that the names of the functions have changed one many Dex V3. So I would like to know what was the function now to do a getAmountsOut on the Smart ...
1 vote
1 answer
57 views
balanceOf() returning an object and I don't know how to convert it into readable format
I'm trying to get return the balance of an account and it's a fairly simple function in Solidity: function getUserBalance(address user) public returns (uint256) { return balanceOf(user, ...
0 votes
1 answer
65 views
Telegram bot that monitors and notifies any recovery attempts on Safe(Wallet)
I am writing a telegram bot in Node.js to monitor if anybody tries to use the account recovery feature of my Safe(wallet) multi-sig account. Currently you have go into the dashboard to see if anybody ...
1 vote
0 answers
56 views
How can we employ libp2p to establish a secure private network that is impervious to unauthorized connections?
backgroung Currently, I am looking to utilize Helia to construct a private IPFS network. The critical issue at hand is "Ensuring that this private network remains inaccessible to external nodes.&...