Skip to content

Address

Defined in: packages/common/src/address.ts:42

Represents an Algorand address

new Address(publicKey): Address

Defined in: packages/common/src/address.ts:55

Create a new Address object from its binary form.

Uint8Array

The binary form of the address. Must be 32 bytes.

Address

readonly publicKey: Uint8Array

Defined in: packages/common/src/address.ts:46

The binary form of the address. For standard accounts, this is the public key.

checksum(): Uint8Array

Defined in: packages/common/src/address.ts:72

Compute the 4 byte checksum of the address.

Uint8Array


equals(other): boolean

Defined in: packages/common/src/address.ts:65

Check if the address is equal to another address.

Address

boolean


toString(): string

Defined in: packages/common/src/address.ts:79

Encode the address into a string form.

string


static fromString(address): Address

Defined in: packages/common/src/address.ts:89

Decode an address from a string.

string

The address to decode. Must be 58 characters long.

Address

An Address object corresponding to the input string.


static zeroAddress(): Address

Defined in: packages/common/src/address.ts:113

Get the zero address.

Address