100%

Asset

Asset

Assets are the units that are traded on the HC Network.

An asset consists of an type, code, and issuer.

To learn more about the concept of assets in the HC Net network, take a look at the HC Net concept guide.

Attributes

Attribute Type
asset_type string The type of this asset: “credit_alphanum4”, or “credit_alphanum12”.
asset_code string The code of this asset.
asset_issuer string The issuer of this asset.
amount number The number of units of credit issued.
num_accounts number The number of accounts that: 1) trust this asset and 2) where if the asset has the auth_required flag then the account is authorized to hold the asset.
flags array of objects The flags denote the enabling/disabling of certain asset issuer privileges.
paging_token string A paging token suitable for use as the cursor parameter to transaction collection resources.

Flag Object

Attribute Type
auth_immutable bool With this setting, none of the following authorization flags can be changed.
auth_required bool With this setting, an institutional host must approve anyone who wants to hold its asset.
auth_revocable bool With this setting, an institutional host can set the authorize flag of an existing trustline to freeze the assets held by an asset holder.

Links

Rel Example Description
toml https://www.hashcashconsultants.com/.well-known/HcNet.toml Link to the TOML file for this issuer

Example

{

"_links" : {

"toml" : {

"href" : "https://hashcashconsultants.com/.well-known/HcNet.toml"

}

},

"asset_type" : "credit_alphanum4",

"asset_code" : "USD",

"asset_issuer" : "GBAUUA74H4XOQYRSOW2RZUA4QL5PB37U3JS5NE3RTB2ELJVMIF5RLMAG",

"paging_token" : "USD_GBAUUA74H4XOQYRSOW2RZUA4QL5PB37U3JS5NE3RTB2ELJVMIF5RLMAG_credit_alphanum4",

"amount" : "100.0000000",

"num_accounts" : 91547871,

"flags" : {

"auth_required" : false,,

"auth_revocable" : false

}

}

Endpoints

Resource Type Resource URI Template
All Assets Collection /assets (GET)
+
Chat Now
Welcome to HashCash Support