Constructor
new Address(address)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
address |
string
|
ID of the account (ex.
|
Classes
Methods
toBuffer() → {Buffer}
Return the raw public key bytes for this address.
- Source:
Returns:
- Type:
-
Buffer
toScAddress() → {xdr.ScAddress}
Convert this Address to an xdr.ScAddress type.
- Source:
Returns:
- Type:
-
xdr.ScAddress
toScVal() → {xdr.ScVal}
Convert this Address to an xdr.ScVal type.
- Source:
Returns:
- Type:
-
xdr.ScVal
toString() → {string}
Serialize an address to string.
- Source:
Returns:
- Type:
-
string
(static) account(buffer) → {Address}
Creates a new account Address object from a buffer of raw bytes.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
buffer |
Buffer
|
The bytes of an address to parse. |
Returns:
- Type:
-
Address
(static) contract(buffer) → {Address}
Creates a new contract Address object from a buffer of raw bytes.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
buffer |
Buffer
|
The bytes of an address to parse. |
Returns:
- Type:
-
Address
(static) fromScAddress(scAddress) → {Address}
Convert this from an xdr.ScAddress type
- Source:
Parameters:
Name | Type | Description |
---|---|---|
scAddress |
xdr.ScAddress
|
The xdr.ScAddress type to parse |
Returns:
- Type:
-
Address
(static) fromScVal(scVal) → {Address}
Convert this from an xdr.ScVal type
- Source:
Parameters:
Name | Type | Description |
---|---|---|
scVal |
xdr.ScVal
|
The xdr.ScVal type to parse |
Returns:
- Type:
-
Address