Assets
This is an object representing the networks and assets that are supported on hashport. You can retrieve it to see the networks currently support by chain ID and name of the network.
info
As documented by HIP-26, the CHAINID
opcode 295
, 296
, and 297
represent the Hedera mainnet, testnet, and previewnet, respectively.
The assets and their respective details, such as token address, name, and symbol are broken down further by the network source types.
tip
This endpoint can help to create a list of assets that users can select and port across networks through the use of hashport. You should save the asset details that a user selects for GET /bridge
.
Example
[
{
"network": {
"id": 1,
"name": "Ethereum"
},
"assets": {
"0x14ab470682Bc045336B1df6262d538cB6c35eA2A": {
"id": "0x14ab470682Bc045336B1df6262d538cB6c35eA2A",
"name": "HBAR[eth]",
"symbol": "HBAR[eth]",
"isNative": false,
"bridgeableNetworks": {}
},
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2": {
"id": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"name": "Wrapped Ether",
"symbol": "WETH",
"isNative": true,
"bridgeableNetworks": {
"295": {
"network": {
"id": 295,
"name": ""
},
"wrappedAsset": "0.0.541564"
}
}
}
}
}
]
Responses
- 200
- 500
OK
- application/json
- Schema
Schema array
assets object
property name*
objectnetwork object
id integername string
Internal Server Error