Download OpenAPI specification:Download
API Documentation for Assetmanager Scope Lookups
Scope searches for a scope.
The scope id, if provided, must either be scope uuid, e.g. 91978ba2-5f35-459a-86a7-feca1b0512e0 or a scope address, e.g. scope1qzge0zaztu65tx5x5llv5xc9ztsqxlkwel. The session addr, if provided, must be a bech32 session address, e.g. session1qxge0zaztu65tx5x5llv5xc9zts9sqlch3sxwn44j50jzgt8rshvqyfrjcr. The record_addr, if provided, must be a bech32 record address, e.g. record1q2ge0zaztu65tx5x5llv5xc9ztsw42dq2jdvmdazuwzcaddhh8gmu3mcze3.
Providing a session addr or record addr does not limit the sessions and records returned (if requested). Those parameters are only used to find the scope.
By default, sessions and records are not included. Set include_sessions and/or include_records to true to include sessions and/or records.
| scope_id required | string (scope_id) scope_id can either be a uuid, e.g. 91978ba2-5f35-459a-86a7-feca1b0512e0 or a bech32 scope address, e.g. scope1qzge0zaztu65tx5x5llv5xc9ztsqxlkwel. |
| sessionAddr | string (session_addr) session_addr is a bech32 session address, e.g. session1qxge0zaztu65tx5x5llv5xc9zts9sqlch3sxwn44j50jzgt8rshvqyfrjcr. |
| recordAddr | string (record_addr) record_addr is a bech32 record address, e.g. record1q2ge0zaztu65tx5x5llv5xc9ztsw42dq2jdvmdazuwzcaddhh8gmu3mcze3. |
| includeSessions | boolean (include_sessions) include_sessions is a flag for whether to include the sessions of the scope in the response. |
| includeRecords | boolean (include_records) include_records is a flag for whether to include the records of the scope in the response. |
| excludeIdInfo | boolean (exclude_id_info) exclude_id_info is a flag for whether to exclude the id info from the response. |
| includeRequest | boolean (include_request) include_request is a flag for whether to include this request in your result. |
{- "scope": {
- "scope": {
- "scopeId": "string",
- "specificationId": "string",
- "owners": [
- {
- "address": "string",
- "role": "PARTY_TYPE_UNSPECIFIED",
- "optional": true
}
], - "dataAccess": [
- "string"
], - "valueOwnerAddress": "string",
- "requirePartyRollup": true
}, - "scopeIdInfo": {
- "scopeId": "string",
- "scopeIdPrefix": "string",
- "scopeIdScopeUuid": "string",
- "scopeAddr": "string",
- "scopeUuid": "string"
}, - "scopeSpecIdInfo": {
- "scopeSpecId": "string",
- "scopeSpecIdPrefix": "string",
- "scopeSpecIdScopeSpecUuid": "string",
- "scopeSpecAddr": "string",
- "scopeSpecUuid": "string"
}
}, - "sessions": [
- {
- "session": {
- "sessionId": "string",
- "specificationId": "string",
- "parties": [
- {
- "address": "string",
- "role": "PARTY_TYPE_UNSPECIFIED",
- "optional": true
}
], - "name": "string",
- "context": "string",
- "audit": {
- "createdDate": "2023-01-15T01:30:15.01Z",
- "createdBy": "string",
- "updatedDate": "2023-01-15T01:30:15.01Z",
- "updatedBy": "string",
- "version": 0,
- "message": "string"
}
}, - "sessionIdInfo": {
- "sessionId": "string",
- "sessionIdPrefix": "string",
- "sessionIdScopeUuid": "string",
- "sessionIdSessionUuid": "string",
- "sessionAddr": "string",
- "sessionUuid": "string",
- "scopeIdInfo": {
- "scopeId": "string",
- "scopeIdPrefix": "string",
- "scopeIdScopeUuid": "string",
- "scopeAddr": "string",
- "scopeUuid": "string"
}
}, - "contractSpecIdInfo": {
- "contractSpecId": "string",
- "contractSpecIdPrefix": "string",
- "contractSpecIdContractSpecUuid": "string",
- "contractSpecAddr": "string",
- "contractSpecUuid": "string"
}
}
], - "records": [
- {
- "record": {
- "name": "string",
- "sessionId": "string",
- "process": {
- "name": "string",
- "method": "string",
- "address": "string"
}, - "inputs": [
- {
- "name": "string",
- "typeName": "string",
- "status": "RECORD_INPUT_STATUS_UNSPECIFIED",
- "hash": "string"
}
], - "outputs": [
- {
- "hash": "string",
- "status": "RESULT_STATUS_UNSPECIFIED"
}
], - "specificationId": "string"
}, - "recordIdInfo": {
- "recordId": "string",
- "recordIdPrefix": "string",
- "recordIdScopeUuid": "string",
- "recordIdHashedName": "string",
- "recordAddr": "string",
- "scopeIdInfo": {
- "scopeId": "string",
- "scopeIdPrefix": "string",
- "scopeIdScopeUuid": "string",
- "scopeAddr": "string",
- "scopeUuid": "string"
}
}, - "recordSpecIdInfo": {
- "recordSpecId": "string",
- "recordSpecIdPrefix": "string",
- "recordSpecIdContractSpecUuid": "string",
- "recordSpecIdHashedName": "string",
- "recordSpecAddr": "string",
- "contractSpecIdInfo": {
- "contractSpecId": "string",
- "contractSpecIdPrefix": "string",
- "contractSpecIdContractSpecUuid": "string",
- "contractSpecAddr": "string",
- "contractSpecUuid": "string"
}
}
}
], - "request": {
- "scopeId": "string",
- "sessionAddr": "string",
- "recordAddr": "string",
- "includeSessions": true,
- "includeRecords": true,
- "excludeIdInfo": true,
- "includeRequest": true
}
}ScopesAll retrieves all scopes.
| excludeIdInfo | boolean (exclude_id_info) exclude_id_info is a flag for whether to exclude the id info from the response. |
| includeRequest | boolean (include_request) include_request is a flag for whether to include this request in your result. |
| pagination.key | string <byte> (key) key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set. |
| pagination.offset | integer or string <int64> (offset) offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set. |
| pagination.limit | integer or string <int64> (limit) limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app. |
| pagination.countTotal | boolean (count_total) count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set. |
| pagination.reverse | boolean (reverse) reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
{- "scopes": [
- {
- "scope": {
- "scopeId": "string",
- "specificationId": "string",
- "owners": [
- {
- "address": "string",
- "role": "PARTY_TYPE_UNSPECIFIED",
- "optional": true
}
], - "dataAccess": [
- "string"
], - "valueOwnerAddress": "string",
- "requirePartyRollup": true
}, - "scopeIdInfo": {
- "scopeId": "string",
- "scopeIdPrefix": "string",
- "scopeIdScopeUuid": "string",
- "scopeAddr": "string",
- "scopeUuid": "string"
}, - "scopeSpecIdInfo": {
- "scopeSpecId": "string",
- "scopeSpecIdPrefix": "string",
- "scopeSpecIdScopeSpecUuid": "string",
- "scopeSpecAddr": "string",
- "scopeSpecUuid": "string"
}
}
], - "request": {
- "excludeIdInfo": true,
- "includeRequest": true,
- "pagination": {
- "key": "string",
- "offset": 0,
- "limit": 0,
- "countTotal": true,
- "reverse": true
}
}, - "pagination": {
- "nextKey": "string",
- "total": 0
}
}ScopeSpecification returns a scope specification for the given specification id.
The specification_id can either be a uuid, e.g. dc83ea70-eacd-40fe-9adf-1cf6148bf8a2 or a bech32 scope specification address, e.g. scopespec1qnwg86nsatx5pl56muw0v9ytlz3qu3jx6m.
By default, the contract and record specifications are not included. Set include_contract_specs and/or include_record_specs to true to include contract and/or record specifications.
| specification_id required | string (specification_id) specification_id can either be a uuid, e.g. dc83ea70-eacd-40fe-9adf-1cf6148bf8a2 or a bech32 scope specification address, e.g. scopespec1qnwg86nsatx5pl56muw0v9ytlz3qu3jx6m. |
| includeContractSpecs | boolean (include_contract_specs) include_contract_specs is a flag for whether to include the contract specifications of the scope specification in the response. |
| includeRecordSpecs | boolean (include_record_specs) include_record_specs is a flag for whether to include the record specifications of the scope specification in the response. |
| excludeIdInfo | boolean (exclude_id_info) exclude_id_info is a flag for whether to exclude the id info from the response. |
| includeRequest | boolean (include_request) include_request is a flag for whether to include this request in your result. |
{- "scopeSpecification": {
- "specification": {
- "specificationId": "string",
- "description": {
- "name": "string",
- "description": "string",
- "websiteUrl": "string",
- "iconUrl": "string"
}, - "ownerAddresses": [
- "string"
], - "partiesInvolved": [
- "PARTY_TYPE_UNSPECIFIED"
], - "contractSpecIds": [
- "string"
]
}, - "scopeSpecIdInfo": {
- "scopeSpecId": "string",
- "scopeSpecIdPrefix": "string",
- "scopeSpecIdScopeSpecUuid": "string",
- "scopeSpecAddr": "string",
- "scopeSpecUuid": "string"
}
}, - "contractSpecs": [
- {
- "specification": {
- "specificationId": "string",
- "description": {
- "name": "string",
- "description": "string",
- "websiteUrl": "string",
- "iconUrl": "string"
}, - "ownerAddresses": [
- "string"
], - "partiesInvolved": [
- "PARTY_TYPE_UNSPECIFIED"
], - "className": "string",
- "hash": "string"
}, - "contractSpecIdInfo": {
- "contractSpecId": "string",
- "contractSpecIdPrefix": "string",
- "contractSpecIdContractSpecUuid": "string",
- "contractSpecAddr": "string",
- "contractSpecUuid": "string"
}
}
], - "recordSpecs": [
- {
- "specification": {
- "specificationId": "string",
- "name": "string",
- "inputs": [
- {
- "name": "string",
- "typeName": "string",
- "hash": "string"
}
], - "typeName": "string",
- "resultType": "DEFINITION_TYPE_UNSPECIFIED",
- "responsibleParties": [
- "PARTY_TYPE_UNSPECIFIED"
]
}, - "recordSpecIdInfo": {
- "recordSpecId": "string",
- "recordSpecIdPrefix": "string",
- "recordSpecIdContractSpecUuid": "string",
- "recordSpecIdHashedName": "string",
- "recordSpecAddr": "string",
- "contractSpecIdInfo": {
- "contractSpecId": "string",
- "contractSpecIdPrefix": "string",
- "contractSpecIdContractSpecUuid": "string",
- "contractSpecAddr": "string",
- "contractSpecUuid": "string"
}
}
}
], - "request": {
- "specificationId": "string",
- "includeContractSpecs": true,
- "includeRecordSpecs": true,
- "excludeIdInfo": true,
- "includeRequest": true
}
}required | string or string (ScopeId) Scope identifier |
| hydrate | Array of strings or null A list of record names to hydrate and return raw data for, defaults to hydrating all records when not provided. Hydration of records is a time consuming process so it is recommended to not hydrate more than is needed for improved response times. |
| block_height | integer or null <int64> >= 0 When provided, fetches a scope's state based on a previous block height. Defaults to the current (head) chain state. |
{- "scope": {
- "scope": {
- "scope_id": "scope1qq7cmetahks5vddrwu7e4zju8l9qspkte8",
- "specification_id": "scopespec1q3ry4x6dj4k5j355dxntlhpfywssp5u67a",
- "specification_uuid": "2ccb7b54-e0f1-4057-99ba-2716e82263d7",
- "data_access": [
- "tp1tledwnl9zsgcqynmjzmp8f3j25l0rj7hvx4g22",
- "tp1dpqhlfd6uwaezmv8skm47d95yn6pfv7ngg8lgp"
], - "owners": [
- {
- "address": "tp1tledwnl9zsgcqynmjzmp8f3j25l0rj7hvx4g22",
- "role": "PARTY_TYPE_ORIGINATOR",
- "optional": false
}
], - "value_owner_address": "tp1400nc66h0aag5f8qjnj4q575nd57caz2lpdfa2"
}, - "scope_id_info": {
- "scope_addr": "scope1qq7cmetahks5vddrwu7e4zju8l9qspkte8",
- "scope_uuid": "3d8de57d-bda1-4635-a377-3d9a8a5c3fca"
}
}, - "records": [
- {
- "record": {
- "name": "personal_info",
- "output_hash": "7q773TGOJVti7Q7JyE+xMbn0XgNrb7BQpm1MgnfeWRo=",
- "process": {
- "name": "personal_info",
- "method": "personal_info",
- "hash": "sha256:cca4139ba7356c686c5796333bb9c0764ff50a5e28d66f49b667d8b36965fa5d"
}, - "value": {
- "name": "George Castanza",
- "age": "31"
}
}, - "record_id_info": {
- "record_addr": "record1qgruqx7pglkyf799y8wpmpfudamsd6lrzs702zd4yh02s5p4tcwmg344xmr"
}
}, - {
- "record": {
- "name": "address",
- "output_hash": "VVbmLl/sibYvt3EM0IfqPKYtg9L5fs132aC9V7R6dGc=",
- "process": {
- "name": "address",
- "method": "address",
- "hash": "sha256:cca4139ba7356c686c5796333bb9c0764ff50a5e28d66f49b667d8b36965fa5d"
}, - "value": "Manhattan, New York"
}, - "record_id_info": {
- "record_addr": "record1qgruqx7pglkyf799y8wpmpfudamsd6lrzs702zd4yh02s5p4tcwmg344xmr"
}
}, - {
- "record": {
- "name": "occupation",
- "output_hash": "fmWZGseUHzilKIfCy0ybcq4Wn0Cnj1YNJ7+5aOfIB2Y=",
- "process": {
- "name": "occupation",
- "method": "occupation",
- "hash": "sha256:cca4139ba7356c686c5796333bb9c0764ff50a5e28d66f49b667d8b36965fa5d"
}, - "value": {
- "employer": "Vandelay Industries",
- "title": "Importer/exporter"
}
}, - "record_id_info": {
- "record_addr": "record1qgruqx7pglkyf799y8wpmpfudamsd6lrzs702zd4yh02s5p4tcwmg344xmr"
}
}, - {
- "record": {
- "name": "is_over_50",
- "output_hash": "/LzxZZCN0YqeSff/J4EBdtuOn2O0NSITdBZkJFIk+Ko=",
- "process": {
- "name": "is_over_50",
- "method": "is_over_50",
- "hash": "sha256:cca4139ba7356c686c5796333bb9c0764ff50a5e28d66f49b667d8b36965fa5d"
}, - "value": false
}, - "record_id_info": {
- "record_addr": "record1qgruqx7pglkyf799y8wpmpfudamsd6lrzs702zd4yh02s5p4tcwmg344xmr"
}
}
]
}