Questions tagged [rootstock]
5 questions
5
votes
1 answer
How can I configure Hardhat to connect to RSK Testnet?
To connect to an Ethereum Testnet,
the configuration in hardhat.config.js is like this:
networks: {
ropsten: {
url: `https://eth-ropsten.alchemyapi.io/v2/${ALCHEMY_API_KEY}`,
accounts: [`${ROPSTEN_PRIVATE_KEY}`]
}
}
(taken…

Aleks Shenshin
- 2,117
- 5
- 18
5
votes
1 answer
How to find out gas fees paid for the latest transactions of a token on RSK?
I want to query the Covalent database to find out the amount of gas paid out in the latest 100 rUSDT token transfer transactions on the RSK blockchain.
In the following SQL query I am trying to join these two tables to find out the gas fees paid for…

serlokiyo
- 353
- 1
- 9
4
votes
1 answer
How to join a query result with a value, received from another query?
I want to calculate transaction costs in USD
for a number of most recent transactions
on the Rootstock blockchain.
I have a PostgreSQL database table with token
prices reports.token_prices
from which I select the value
of the latest available RBTC…

Aleks Shenshin
- 2,117
- 5
- 18
3
votes
1 answer
Possible to create deployment transaction with empty 'tx.data' on RSK?
There is a transaction on RSK Testnet,
0xf3b1d43850523d45b4c84c5098ff0cf6bb74d1eb350b9574315433544f990390,
where tx.to is the zero address,
and tx.data is also zero.
However, it shows that this was a deployment transaction,
and that a contract was…

bguiz
- 27,371
- 47
- 154
- 243
1
vote
1 answer
In ethers.js, why does the return value of a function return an array containing the value instead of the value?
The assertion for the following test fails:
it('should access MAX_COUNT', async () => {
const maxCount = await myContract.functions.MAX_COUNT();
expect(maxCount).to.equal(64);
});
With the following error:
AssertionError:…

bguiz
- 27,371
- 47
- 154
- 243