Assets
In the context of Horizon Network, an Asset
is a digital item that has been registered on a blockchain and is represented by a unique token. These assets can take many forms, including digital art, virtual real estate, in-game items, and even real-world assets that have been tokenized.
Each asset is associated with a set of metadata that provides additional information about the asset, such as its name, description, image, and attributes. This metadata is stored on the blockchain and can be accessed by anyone who holds the token representing the asset.
Horizon Network provides a marketplace where users can buy, sell, and trade these assets with each other. Because each asset is represented by a unique token, ownership of the asset can be easily transferred from one party to another on the blockchain.
Create Asset
By using the createAsset
function, you can easily create a new asset on the Horizon Network, the network will automatically mint a new NFT (non-fungible token) that corresponds to the Asset
. This NFT represents a unique, one-of-a-kind digital asset that can be bought, sold, and traded on various marketplaces
You can use the getAsset
and getAssets
functions to manage the assets. These functions allow you to retrieve information about the assets, such as their metadata, ownership, and other relevant details. With this information, you can easily track the status of your assets, monitor their performance, and make informed decisions about buying, selling, or transferring them.
Get an Asset
Get list Assets
List Asset on Marketplace
You can you function createListingAsset
to list your assets for sale on the Horizon Marketplace. This function will create a listing that other users can browse and purchase
Edit Asset on Marketplace
Asset Model
Name | Type | Description |
---|---|---|
collection | Collection | |
createdAt | String | Timestamp of when the asset was created |
description | String | Description of this asset |
fees | [Fee] | Fee structure for this asset |
id | String | Asset ID |
imageUrl | String | URL of the image which should be used for this asset |
animationUrl | String | URL of the animation which should be used for this asset |
externalLink | String | URL of the external link which should be used for this asset |
metadata | Object | Metadata of this asset |
name | String | Name of this asset |
listing | Listing | |
status | String | Status of this asset (where it is in the system) |
tokenAddress | String | Address of the ERC721 contract |
tokenId | String | ERC721 Token ID of this asset |
chain | Chain | |
updatedAt | String | Timestamp of when the asset was updated |
owner | String | Address of the user who owns this asset |
Last updated