Skip to content

ChainGraph API Documentation / @badaitech/chaingraph-nodes / Amount

Class: Amount ​

Defined in: packages/chaingraph-nodes/src/nodes/blockchain/schemas.ts:108

Amount with multiple representations

Constructors ​

Constructor ​

new Amount(): Amount

Returns ​

Amount

Properties ​

decimals ​

decimals: number = 18

Defined in: packages/chaingraph-nodes/src/nodes/blockchain/schemas.ts:123


formatted? ​

optional formatted: string = '0.0'

Defined in: packages/chaingraph-nodes/src/nodes/blockchain/schemas.ts:131


value ​

value: string = '0'

Defined in: packages/chaingraph-nodes/src/nodes/blockchain/schemas.ts:115

Licensed under BUSL-1.1