MasaIdentity
[# Masa SDK
- v3.24.7](/docs/developers/sdk/) / Exports / MasaIdentity
Class: MasaIdentity
Hierarchy
MasaLinkable
\<SoulboundIdentity
>↳
MasaIdentity
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new MasaIdentity(masa
): MasaIdentity
Parameters
Name | Type |
---|---|
masa | MasaInterface |
Returns
Overrides
MasaLinkable\<SoulboundIdentity\>.constructor
Properties
contract
• Readonly
contract: SoulboundIdentity
Inherited from
MasaLinkable.contract
links
• Readonly
links: MasaSoulLinker
Inherited from
MasaLinkable.links
masa
• Protected
Readonly
masa: MasaInterface
Inherited from
MasaLinkable.masa
Methods
burn
▸ burn(): Promise
\<BaseResult
>
Returns
Promise
\<BaseResult
>
create
▸ create(): Promise
\<BaseResultWithTokenId
>
Returns
Promise
\<BaseResultWithTokenId
>
createWithSoulName
▸ createWithSoulName(paymentMethod
, soulName
, duration
, style?
): Promise
\<{ identityId?
: string
| BigNumber
} & CreateSoulNameResult
>
Parameters
Name | Type |
---|---|
paymentMethod | PaymentMethod |
soulName | string |
duration | number |
style? | string |
Returns
Promise
\<{ identityId?
: string
| BigNumber
} & CreateSoulNameResult
>
load
▸ load(address?
): Promise
\<{ address
: string
; identityId?
: BigNumber
}>
Parameters
Name | Type |
---|---|
address? | string |
Returns
Promise
\<{ address
: string
; identityId?
: BigNumber
}>
show
▸ show(address?
): Promise
\<undefined
| IdentityDetails
>
Parameters
Name | Type |
---|---|
address? | string |
Returns
Promise
\<undefined
| IdentityDetails
>