Skip to content

@ecp.eth/sdk


@ecp.eth/sdk / comments / encodeAddressValue

Function: encodeAddressValue()

function encodeAddressValue(value): `0x${string}`;

Defined in: packages/sdk/src/comments/metadata.ts:689

Encodes an address value as bytes for metadata

Parameters

value

`0x${string}`

The address value to use

Returns

`0x${string}`

The address as is if valid

Throws

If the value is not a valid address in hex format