New answers tagged

1

There's nothing wrong with the code you've written, the problem lies in the contract you're calling with those params. You're getting round data from a proxy contract, which has a different round id than the aggregators themselves (they are phased in order to not cause issues when switching between different aggregator contracts, which could give a lower ...


3

A raw transaction is just all the transaction parameters encoded in the RLP format. A raw transaction consists of (in this order): Nonce; Gas price; Gas limit; To address; Value; Data. You don't need the private key of the sender: to get the raw transaction, you can simply encode it using RLP(Nonce, Gas Price, Gas limit, To, Value, Data). Here's an example ...


1

There is an undocumented eth_getRawTransactionByHash method now in geth nodes. Get raw transaction from hash After getting the raw transaction, it can be directly replayed using eth_sendRawTransaction as long as all the parameters are the same according to EIP-155 (https://eips.ethereum.org/EIPS/eip-155) (nonce, gasprice, startgas, to, value, data, chainid, ...


0

If we refer to the doc (https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1155.md), we can read in the definition of the safeTransferFrom function : Caller must be approved to manage the tokens being transferred out of the _from account The user passed to the _from parameter of safeTransferFrom has therefore to first approve the caller using ...


0

If you're just looking to transfer tokens from your own address, make sure you specify your own address as first parameter in safeTransferFrom. If you're trying to send tokens on behalf of a user, the user needs to approve the transaction first, before you can send a transaction through a smart contract with safeTransferFrom. To do this, the user needs to ...


1

Here is an answer for web3.py version 5.1 Example: from web3 import Web3 from .utils import create_contract from .events import fetch_events uniswap_factory = '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f' factory_abi_url = 'https://unpkg.com/@uniswap/v2-core@1.0.1/build/UniswapV2Factory.json' erc20_abi_url = 'https://unpkg.com/@uniswap/v2-core@1.0.1/build/...


Top 50 recent answers are included