Faremeter API / types/src / evm
evm
Type Aliases
Address
Address = typeof Address.infer
Defined in: packages/types/src/evm.ts:7
ChainInfo
ChainInfo = object
Defined in: packages/types/src/evm.ts:41
Properties
id
id: number
Defined in: packages/types/src/evm.ts:42
name
name: string
Defined in: packages/types/src/evm.ts:43
ChainInfoWithRPC
ChainInfoWithRPC =Defined in: packages/types/src/evm.ts:46ChainInfo&object
Type declaration
rpcUrls
rpcUrls: object
rpcUrls.default
default: object
rpcUrls.default.http
http: readonly [string]
PrivateKey
PrivateKey = typeof Address.infer
Defined in: packages/types/src/evm.ts:25
Variables
Address
Defined in: packages/types/src/evm.ts:7 Validator for EVM hex addresses (40 hex characters, optional 0x prefix).constAddress:Type<`0x${string}`, { }>
PrivateKey
Defined in: packages/types/src/evm.ts:25 Validator for EVM private keys (64 hex characters with 0x prefix).constPrivateKey:Type<`0x${string}`, { }>
Functions
isAddress()
isAddress(Defined in: packages/types/src/evm.ts:18 Type guard that checks if a value is a valid EVM address.maybe):maybe is `0x${string}`
Parameters
maybe
unknown
The value to check
Returns
maybe is `0x${string}`
True if the value matches the EVM address format
isPrivateKey()
isPrivateKey(Defined in: packages/types/src/evm.ts:36 Type guard that checks if a value is a valid EVM private key.maybe):maybe is `0x${string}`
Parameters
maybe
unknown
The value to check
Returns
maybe is `0x${string}`
True if the value matches the private key format