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