Skip to content

Address.checksum

Computes the checksum address for the given Address.Address.

Imports

Named
import { Address } from 'ox'

Examples

import { Address } from 'ox'
 
Address.checksum('0xa0cf798816d4b9b9866b5330eea46a18382f251e')
'0xA0Cf798816D4b9b9866b5330EEa46a18382f251e'

Definition

function checksum(
  address: string,
): Address

Source: src/core/Address.ts

Parameters

address

  • Type: string

The address to compute the checksum for.

Return Type

The checksummed address.

Address