@harmoniclabs/cardano-ledger-ts • Readme | 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
Source
Properties
network
readonly
network:NetworkT
Source
paymentCreds
readonly
paymentCreds:Credential
<CredentialType
>
Source
stakeCreds?
optional
readonly
stakeCreds:StakeCredentials
<StakeCredentialsType
>
Source
type
readonly
type:AddressType
Source
Accessors
fake
get
static
fake():Address
Returns
Source
Methods
clone()
clone():
Address
Returns
Source
toBuffer()
toBuffer():
Uint8Array
Returns
Uint8Array
Source
toBytes()
toBytes():
byte
[]
Returns
byte
[]
Source
toCbor()
toCbor():
CborString
Returns
CborString
Implementation of
ToCbor.toCbor
Source
toCborObj()
toCborObj():
CborObj
Returns
CborObj
Implementation of
ToCbor.toCborObj
Source
toData()
toData():
Data
Returns
Data
Implementation of
ToData.toData
Source
toJson()
toJson():
string
Returns
string
Source
toString()
toString():
string
Returns
string
Source
fromBuffer()
static
fromBuffer(buff
):Address
Parameters
• buff: string
| Uint8Array
Returns
Source
fromBytes()
static
fromBytes(bs
):Address
Parameters
• bs: string
| Uint8Array
| byte
[]
Returns
Source
fromCbor()
static
fromCbor(cbor
):Address
Parameters
• cbor: CanBeCborString
Returns
Source
fromCborObj()
static
fromCborObj(buff
):Address
Parameters
• buff: CborObj
Returns
Source
fromString()
static
fromString(addr
):Address
Parameters
• addr: string
Returns
Source
mainnet()
static
mainnet(paymentCreds
,stakeCreds
?,type
?):Address
Parameters
• paymentCreds: Credential
<CredentialType
>
• stakeCreds?: StakeCredentials
<StakeCredentialsType
>
• type?: AddressType
Returns
Source
testnet()
static
testnet(paymentCreds
,stakeCreds
?,type
?):Address
Parameters
• paymentCreds: Credential
<CredentialType
>
• stakeCreds?: StakeCredentials
<StakeCredentialsType
>
• type?: AddressType