Class: NftAddress
An NFT address.
Hierarchy
↳
NftAddress
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new NftAddress(address)
Parameters
| Name | Type | Description |
|---|---|---|
address | string | An NFT address as NFT ID. |
Overrides
Properties
type
• Readonly type: AddressType
Inherited from
nftId
• Readonly nftId: string
Methods
getType
▸ getType(): AddressType
Get the type of address.
Returns
Inherited from
parse
▸ Static parse(data): Address
Parse an address from a JSON string.
Parameters
| Name | Type |
|---|---|
data | any |
Returns
Inherited from
getNftId
▸ getNftId(): string
Get the NFT ID.
Returns
string
toString
▸ toString(): string
Returns
string