Allow
Allow specifies supported Operation status, Operation types, and all possible error statuses. This Allow object is used by clients to validate the correctness of a Rosetta Server implementation. It is expected that these clients will error if they receive some response that contains any of the above information that is not specified here.
Properties
Name | Type | Description | Required |
---|---|---|---|
operation_statuses | []OperationStatus | All Operation.Status this implementation supports. Any status that is returned during parsing that is not listed here will cause client validation to error. | True |
operation_types | []String | All Operation.Type this implementation supports. Any type that is returned during parsing that is not listed here will cause client validation to error. | True |
errors | []Error | All Errors that this implementation could return. Any error that is returned during parsing that is not listed here will cause client validation to error. | True |
historical_balance_lookup | Boolean | Any Rosetta implementation that supports querying the balance of an account at any height in the past should set this to true. | True |
Example
{
"operation_statuses": [
{
"status": "SUCCESS",
"successful": true
}
],
"operation_types": [
"TRANSFER"
],
"errors": [
{
"code": 12,
"message": "Invalid account format",
"retriable": true,
"details": {
"address": "0x1dcc4de8dec75d7aab85b567b6",
"error": "not base64"
}
}
],
"historical_balance_lookup": true
}