I've a transaction that consumed 276798 of gas, paid 900000000 (wei I think)
Is the total cost gasUsed x gasPrice, right?
Total = 249,118,200,000,000 (wei I think)
So how many ether is ?
0.0002491182
Confirm?
Is the total cost
gasUsed * gasPrice?
Almost. It's gasUsed * gasPrice + value, where the latter indicates the amount of ether that you have passed (can be larger than 0 when executing a payable function, and must be 0 otherwise).
Total = 249,118,200,000,000 (wei I think)
Yes, since both gasPrice and value are in wei, hence both components in the sum (gasUsed * gasPrice and value) are in wei, hence the entire formula (gasUsed * gasPrice + value) is in wei.
So how many ether - 0.0002491182?
So yes, it is 0.0002491182 ether.