Constructor
new MuxedAccount(account, id)
Parameters:
Name | Type | Description |
---|---|---|
account |
Account
|
the @{link Account} instance representing the underlying G... address |
id |
string
|
a stringified uint64 value that represents the ID of the muxed account |
Classes
Methods
accountId() → {string}
Returns:
- Type:
-
string
the M-address representing this account's (G-address, ID)
baseAccount() → {Account}
Returns:
- Type:
-
Account
the underlying account object shared among all muxed accounts with this Stellar address
incrementSequenceNumber() → {void}
Increments the underlying account's sequence number by one.
Returns:
- Type:
-
void
sequenceNumber() → {string}
Accesses the underlying account's sequence number.
Returns:
- Type:
-
string
strigified sequence number for the underlying account
toXDRObject() → {xdr.MuxedAccount}
Returns:
- Type:
-
xdr.MuxedAccount
the XDR object representing this muxed account's G-address and uint64 ID
(static) fromAddress(mAddress, sequenceNum) → {MuxedAccount}
Parses an M-address into a MuxedAccount object.
Parameters:
Name | Type | Description |
---|---|---|
mAddress |
string
|
an M-address to transform |
sequenceNum |
string
|
the sequence number of the underlying Account, to use for the underlying base account (@link
MuxedAccount.baseAccount). If you're using the SDK, you can use
|
Returns:
- Type:
-
MuxedAccount