AppleSauce
Preparing search index...
applesauce-accounts
IAccountConstructor
Interface IAccountConstructor<Signer, SignerData, Metadata>
A constructor for an account
interface
IAccountConstructor
<
Signer
extends
Nip07Interface
,
SignerData
,
Metadata
extends
unknown
,
>
{
new
IAccountConstructor
(
pubkey
:
string
,
signer
:
Signer
,
)
:
IAccount
<
Signer
,
SignerData
,
Metadata
>
;
type
:
string
;
fromJSON
(
json
:
SerializedAccount
<
SignerData
,
Metadata
>
,
)
:
IAccount
<
Signer
,
SignerData
,
Metadata
>
;
}
Type Parameters
Signer
extends
Nip07Interface
SignerData
Metadata
extends
unknown
Index
Constructors
constructor
Properties
type
Methods
from
JSON
Constructors
constructor
new
IAccountConstructor
(
pubkey
:
string
,
signer
:
Signer
,
)
:
IAccount
<
Signer
,
SignerData
,
Metadata
>
Parameters
pubkey
:
string
signer
:
Signer
Returns
IAccount
<
Signer
,
SignerData
,
Metadata
>
Properties
Readonly
type
type
:
string
Methods
from
JSON
fromJSON
(
json
:
SerializedAccount
<
SignerData
,
Metadata
>
,
)
:
IAccount
<
Signer
,
SignerData
,
Metadata
>
Parameters
json
:
SerializedAccount
<
SignerData
,
Metadata
>
Returns
IAccount
<
Signer
,
SignerData
,
Metadata
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
type
Methods
from
JSON
AppleSauce
Loading...
A constructor for an account