CRYPTO NEWS

transaction stuck in txpool as pending

I have a geth node, and using truffle-hd-wallet. I am trying to create a transaction between coinbase and the account created by hd-wallet.Created a raw transaction and signed it with privatekey of coinbase. The transaction is stuck in txpool in pending state. Transaction object created as:

{         'from': <coinbase account>,         'to': <acc created by hdwallet>,         'value':1,         'chainId': <net.getId()>,         'gasPrice': <eth.getGasPrice>,         'gasLimit': 2000000     } 

Signed with, web3I.eth.accounts.signTransaction(tx, privateKey)

web3.txpool.content shows below,

{   pending: {     0x0C0Df324C081fAF1c9fE6BF98379e0614181d254: {       0: {         blockHash: "0x0000000000000000000000000000000000000000000000000000000000000000",         blockNumber: null,         from: "0x0c0df324c081faf1c9fe6bf98379e0614181d254",         gas: "0x1e8480",         gasPrice: "0x430e23400",         hash: "0x6c525ad1ed8b128ba04e12e990e762697d9ac093c5342d7a4835318e74bb518f",         input: "0x",         nonce: "0x0",         r: "0x346c40bd758c67f5082976d9e5523f0b171b397d53b30ff6183d31e3314b7ff1",         s: "0x68bd289133fcf966f71d51fdbe282c176a6b7739f8532d347471183e056352e8",         to: "0x74f59f7f123fa71a8d0b71d792a6d040bbdd2fdd",         transactionIndex: "0x0",         v: "0x9c7",         value: "0x5"       }     }   },   queued: {} } 

I have tried even including nonce, increasing gasPrice, also using ethereumjs-tx, but same result

Approving all nfts by a contract

I am trying to transfer all NFTS from one address to another using solidity and i wana bundle all in just one transaction. The issue is that when i do that, it is says the caller is not the owner of the nft or the nft is not approved. The problem here is that the::Listen

I am trying to transfer all NFTS from one address to another using solidity and i wana bundle all in just one transaction. The issue is that when i do that, it is says the caller is not the owner of the nft or the nft is not approved. The problem here is that the msg.sender is not the user on my website. Its the contract calling a function from my solidty IERC721 interface.

Thats my contract code.

    // SPDX-License-Identifier: GPL-3.0  pragma solidity >=0.7.0 <0.9.0;   interface IERC721 {     function transferFrom(address from, address to, uint256 tokenId)external; }  contract BulkTransferer {     IERC721 collection;     address owner;      constructor() {         owner = msg.sender;     }  modifier isOwner {     require(msg.sender == owner);     _; }  function bulkTransfer(address _from, address _to, uint256[] memory _tokenIds, address[] memory contracts) external {     for (uint256 i = 0; i < _tokenIds.length; i++) {         collection = IERC721(contracts[i]);         collection.transferFrom(_from, _to, _tokenIds[i]);     } }  function destroySmartContract(address payable _to) public isOwner {     selfdestruct(_to); } 

}

How can I bypass that ? I just wanna send multiple nfts from one address to another. Is there a way to set the msg.sender as the one calling the contract function ?

transaction stuck in txpool as pending

Shopping cart
There are no products in the cart!
Continue shopping
0