Skip to main content

Questions tagged [ethers.rs]

Use the ethers.rs tag for questions specifically about using the ethers.rs Rust library for interacting with the Ethereum blockchain. This includes queries about installation, functionalities, transactions, and smart contract interactions within a Rust environment.

4 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1 vote
0 answers
82 views

How do I convert from big endian to little endian types in ethers-rs?

Ethers-rs uses big-endian types when instantiating its I256 type from a raw value with from_raw. How do you reverse the endianness to get a little endian U256 type?
Alexander Angel's user avatar
0 votes
0 answers
93 views

How to ABI encode a contract function using ethers

The following function sends a transaction using ethers. Running this gives the error TypeError: func.format is not a function. What am I doing wrong? import { Contract, getDefaultProvider, AbiCoder, ...
Pål Thingbø's user avatar
0 votes
0 answers
191 views

How to decode tx data with Rust ethers.rs

I am trying to decode the tx data using the ethersrs crate with Rust. From the crate source code, I can see that it is possible to decode using an instance of the BaseContract type. However, I cannot ...
user23050542's user avatar
0 votes
0 answers
35 views

Provider does not live long enough

Using ether.rs, I'm trying to listen to multiple steams at the same time. To do this, I have multiple steps: I first receive the provider address as parameter: async fn start( &self, ...
Nathan's user avatar
  • 101