new Asset(code, issuer)
Asset class represents an asset, either the native asset (XLM)
or a asset code / issuer account ID pair.
An asset code describes an asset code and issuer pair. In the case of the native asset XLM, the issuer will be null.
Parameters:
| Name | Type | Description |
|---|---|---|
code |
string
|
The asset code. |
issuer |
string
|
The account ID of the issuer. |