1

I tried to decode an input string of an ethereum transaction, based on ERC20 ABI.

0xa9059cbb0000000000000000000000003f5ce5fbfe3e9af3971dd833d26ba9b5c936f0be0000000000000000000000000000000000000000000000080ed1c1dc26503758

I get the below string decoded. But I am unable to read the transfer value < BN: 80ed1c1dc26503758 >. How would I get back to actual number?

{ name: 'transfer',
  types: [ 'address', 'uint256' ],
  inputs: 
   [ '3f5ce5fbfe3e9af3971dd833d26ba9b5c936f0be',
     < BN: 80ed1c1dc26503758 > ] }
1

I think it is a hexadecimal number. You can convert it into decimal. In your case decimal equivalent of 80ed1c1dc26503758 is 148641800327619688280.

Hope it helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.