Constructor
new MuxedAccount(account, id)
- Source:
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}
- Source:
Returns:
- Type:
-
string
the M-address representing this account's (G-address, ID)
baseAccount() → {Account}
- Source:
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.
- Source:
Returns:
- Type:
-
void
sequenceNumber() → {string}
Accesses the underlying account's sequence number.
- Source:
Returns:
- Type:
-
string
strigified sequence number for the underlying account
toXDRObject() → {xdr.MuxedAccount}
- Source:
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.
- Source:
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