POST
/
network
/
options
curl --request POST \
  --url https://example.com/network/options \
  --header 'Content-Type: application/json' \
  --data '{
  "network_identifier": {
    "blockchain": "bitcoin",
    "network": "mainnet",
    "sub_network_identifier": {
      "network": "shard 1",
      "metadata": {
        "producer": "0x52bc44d5378309ee2abf1539bf71de1b7d7be3b5"
      }
    }
  },
  "metadata": {}
}'
{
  "version": {
    "rosetta_version": "1.2.5",
    "node_version": "1.0.2",
    "middleware_version": "0.2.7",
    "metadata": {}
  },
  "allow": {
    "operation_statuses": [
      {
        "status": "SUCCESS",
        "successful": true
      }
    ],
    "operation_types": [
      "TRANSFER"
    ],
    "errors": [
      {
        "code": 12,
        "message": "Invalid account format",
        "description": "This error is returned when the requested AccountIdentifier is improperly formatted.",
        "retriable": true,
        "details": {
          "address": "0x1dcc4de8dec75d7aab85b567b6",
          "error": "not base64"
        }
      }
    ],
    "historical_balance_lookup": true,
    "timestamp_start_index": 1,
    "call_methods": [
      "eth_call"
    ],
    "balance_exemptions": [
      {
        "sub_account_address": "staking",
        "currency": {
          "symbol": "BTC",
          "decimals": 8,
          "metadata": {
            "Issuer": "Satoshi"
          }
        },
        "exemption_type": "greater_or_equal"
      }
    ],
    "mempool_coins": true
  }
}

Body

application/json

A NetworkRequest is utilized to retrieve some data specific exclusively to a NetworkIdentifier.

Response

200
application/json

Expected response to a valid request

NetworkOptionsResponse contains information about the versioning of the node and the allowed operation statuses, operation types, and errors.