Skip to main content

@harmoniclabs/cardano-ledger-tsReadme | API


@harmoniclabs/cardano-ledger-ts / Address

Class: Address

shelley specification in cardano-ledger; page 113

Implements

  • ToData
  • ToCbor

Constructors

new Address(network, paymentCreds, stakeCreds, type)

new Address(network, paymentCreds, stakeCreds?, type?): Address

Parameters

network: NetworkT

paymentCreds: Credential<CredentialType>

stakeCreds?: StakeCredentials<StakeCredentialsType>

type?: AddressType

Returns

Address

Source

src/ledger/Address.ts:74

Properties

network

readonly network: NetworkT

Source

src/ledger/Address.ts:41


paymentCreds

readonly paymentCreds: Credential<CredentialType>

Source

src/ledger/Address.ts:42


stakeCreds?

optional readonly stakeCreds: StakeCredentials<StakeCredentialsType>

Source

src/ledger/Address.ts:43


type

readonly type: AddressType

Source

src/ledger/Address.ts:44

Accessors

fake

get static fake(): Address

Returns

Address

Source

src/ledger/Address.ts:131

Methods

clone()

clone(): Address

Returns

Address

Source

src/ledger/Address.ts:121


toBuffer()

toBuffer(): Uint8Array

Returns

Uint8Array

Source

src/ledger/Address.ts:268


toBytes()

toBytes(): byte[]

Returns

byte[]

Source

src/ledger/Address.ts:152


toCbor()

toCbor(): CborString

Returns

CborString

Implementation of

ToCbor.toCbor

Source

src/ledger/Address.ts:295


toCborObj()

toCborObj(): CborObj

Returns

CborObj

Implementation of

ToCbor.toCborObj

Source

src/ledger/Address.ts:282


toData()

toData(): Data

Returns

Data

Implementation of

ToData.toData

Source

src/ledger/Address.ts:139


toJson()

toJson(): string

Returns

string

Source

src/ledger/Address.ts:342


toString()

toString(): string

Returns

string

Source

src/ledger/Address.ts:305


fromBuffer()

static fromBuffer(buff): Address

Parameters

buff: string | Uint8Array

Returns

Address

Source

src/ledger/Address.ts:273


fromBytes()

static fromBytes(bs): Address

Parameters

bs: string | Uint8Array | byte[]

Returns

Address

Source

src/ledger/Address.ts:191


fromCbor()

static fromCbor(cbor): Address

Parameters

cbor: CanBeCborString

Returns

Address

Source

src/ledger/Address.ts:300


fromCborObj()

static fromCborObj(buff): Address

Parameters

buff: CborObj

Returns

Address

Source

src/ledger/Address.ts:287


fromString()

static fromString(addr): Address

Parameters

addr: string

Returns

Address

Source

src/ledger/Address.ts:313


mainnet()

static mainnet(paymentCreds, stakeCreds?, type?): Address

Parameters

paymentCreds: Credential<CredentialType>

stakeCreds?: StakeCredentials<StakeCredentialsType>

type?: AddressType

Returns

Address

Source

src/ledger/Address.ts:46


testnet()

static testnet(paymentCreds, stakeCreds?, type?): Address

Parameters

paymentCreds: Credential<CredentialType>

stakeCreds?: StakeCredentials<StakeCredentialsType>

type?: AddressType

Returns

Address

Source

src/ledger/Address.ts:60