---
tags: rlogin
---
# Letter to Portis about `gasPrice`
Hello Portis Team!
It looks like portis is incorrectly calculating the gas price on RSK Testnet (and probably Mainnet, although I didn't check).
Consider this transaction:
```
const portis = new Portis('fe54c2ba-5781-4e34-80bb-694e828cf739', 'orchidTestnet');
const provider = portis.provider
provider.enable().then(accounts => {
provider.send({
method: 'eth_sendTransaction',
params: [{ from: accounts[0], to: accounts[0], value: '10000' }]
}, (err, res) => {
if (err) {
return console.log(err)
}
console.log('response: ', res)
})
})
```
When I execute this transaction, I get the error "Something went wrong, please try again.", and a 500 error from the POST request:

If I dig into the failed POST error with the dev tools, I get the message:
```
{
"code": -32010,
"message": "transaction's gas price lower than block's minimum"
}
```
This is the raw transaction that is being sent with that failed post request:
`
0xf86649840234442d827b0c943dd03d7d6c3137f1eb7582ba5957b8a2e26f304a830100008062a0a839ca9c3481117a500d9f2f0d26b8e562bb82cb3a4c63388e588e02fadfc85ca03f7018e7edc2176c406b40e67cc63c14294dce564f89a03d5c4174e466af77c6
`
Decoded it looks like this:
```
{
"nonce": 73,
"gasPrice": 36979757,
"gasLimit": 31500,
"to": "0x3dd03d7d6c3137f1eb7582ba5957b8a2e26f304a",
"value": 65536,
"data": "",
"from": "0xf192077f41542cfd2410bdea001379867c88bbf4",
"r": "a839ca9c3481117a500d9f2f0d26b8e562bb82cb3a4c63388e588e02fadfc85c",
"v": "62",
"s": "3f7018e7edc2176c406b40e67cc63c14294dce564f89a03d5c4174e466af77c6"
}
```
The gasPrice that is choosen is less than what [RSK testnet currently accepts](https://stats.testnet.rsk.co/). Right now, this number should be around 59000000. There is more information about RSK's gas price in [RSKIP09](https://github.com/rsksmart/RSKIPs/blob/master/IPs/RSKIP09.md).
Thanks!