{
  "type": "object",
  "title": "RosettaSubAccount",
  "description": "An account may have state specific to a contract address (ERC-20 token) and/or a stake (delegated balance). The sub_account_identifier should specify which state (if applicable) an account instantiation refers to.",
  "required": ["address"],
  "properties": {
    "address": {
      "type": "string",
      "description": "The address may be a cryptographic public key (or some encoding of it) or a provided username."
    },
    "metadata": {
      "type": "object",
      "description": "If the SubAccount address is not sufficient to uniquely specify a SubAccount, any other identifying information can be stored here. It is important to note that two SubAccounts with identical addresses but differing metadata will not be considered equal by clients.",
      "required": []
    }
  }
}
