Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 621 Bytes

File metadata and controls

23 lines (14 loc) · 621 Bytes

@tevm/decorators


@tevm/decorators / Quantity

Type Alias: Quantity

Quantity = Hex

Defined in: eip1193/NetworkSync.ts:20

Hexadecimal string representation of an Ethereum quantity (number). Used throughout the Ethereum JSON-RPC API for numerical values.

Example

import { Quantity } from '@tevm/decorators'

const blockNumber: Quantity = '0x4b7' // 1207 in decimal
const gasPrice: Quantity = '0x3b9aca00' // 1,000,000,000 in decimal (1 Gwei)