Network
Get List of Available Networks
Changed onThis endpoint returns a list of NetworkIdentifiers that the Rosetta server supports.
post/network/list
Request
- The document declares no server URL.
- Authnone declared
Request body
Metadata Request required
A MetadataRequest is utilized in any request where the only argument is optional metadata.
metadata, object
Response
Expected response to a valid request
Network List Response required
A NetworkListResponse contains all NetworkIdentifiers that the node can serve information for.
network_identifiers, Network Identifier[] required
Example response
{
"network_identifiers": [
{
"blockchain": "bitcoin",
"network": "mainnet",
"sub_network_identifier": {
"network": "shard 1",
"metadata": {
"producer": "0x52bc44d5378309ee2abf1539bf71de1b7d7be3b5"
}
}
}
]
}Changes
- breaking
the
network_identifiers/itemsresponse's property type changed from no type toobjectfor status - info
added the optional property
network_identifiers/items/sub_network_identifierto the response with the status - info
added the required property
network_identifiers/items/blockchainto the response with the status
1 more change in this revision
- breaking