il2_rest/client.py
def interlocks_of(self, chain) :
        """
        Get the list of interlocking records pointing to a target chain instance.
    
        Args:
            chain (:obj:`str`): Chain id.

        Returns:
            :obj:`list` of :obj:`il2_rest.models.InterlockingRecordModel`: List of interlockings.

        Example:
            >>> node = RestNode(cert_file='documenter.pfx', cert_pass='password')
            >>> interlocks = node.interlocks_of('8fox30W54ZkzM-shfUeU5C7ad-_fsf5nICwNpkCUk5w')
            >>> for interlock in interlocks :
            ...     print(interlock)
            ...
            Interlocked chain 8fox30W54ZkzM-shfUeU5C7ad-_fsf5nICwNpkCUk5w at record #14 (offset: 13671) with hash RyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo#SHA256
            {
                "applicationId": 3,
                "chainId": "A1wCG9hHhuVNb8hyOALHokYsWyTumHU0vRxtcK-iDKE",
                "createdAt": "2020-02-26T23:17:03.018975-03:75",
                "hash": "0QjOJ-WQjauOF7qXeOxXabHxUgBR_KBNDZVDECbsszw#SHA256",
                "payloadTagId": 600,
                "serial": 9,
                "type": "Data",
                "version": 2,
                "payloadBytes": "+QFgUgUBACsjAAEA8fox30W54ZkzM+shfUeU5C7ad+/fsf5nICwNpkCUk5wKDgr5NG8nIgEARyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo=",
                "interlockedChainId": "8fox30W54ZkzM-shfUeU5C7ad-_fsf5nICwNpkCUk5w",
                "interlockedRecordHash": "RyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo#SHA256",
                "interlockedRecordOffset": 13671,
                "interlockedRecordSerial": 14
            }


        """
        json_data = self._get(f"/interlockings/{chain}")
        return [InterlockingRecordModel.from_json(item) for item in json_data]

        Get the list of interlocking records pointing to a target chain instance.
    
        Args:
            chain (:obj:`str`): Chain id.

        Returns:
            :obj:`list` of :obj:`il2_rest.models.InterlockingRecordModel`: List of interlockings.

        Example:
            >>> node = RestNode(cert_file='documenter.pfx', cert_pass='password')
            >>> interlocks = node.interlocks_of('8fox30W54ZkzM-shfUeU5C7ad-_fsf5nICwNpkCUk5w')
            >>> for interlock in interlocks :
            ...     print(interlock)
            ...
            Interlocked chain 8fox30W54ZkzM-shfUeU5C7ad-_fsf5nICwNpkCUk5w at record #14 (offset: 13671) with hash RyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo#SHA256
            {
                "applicationId": 3,
                "chainId": "A1wCG9hHhuVNb8hyOALHokYsWyTumHU0vRxtcK-iDKE",
                "createdAt": "2020-02-26T23:17:03.018975-03:75",
                "hash": "0QjOJ-WQjauOF7qXeOxXabHxUgBR_KBNDZVDECbsszw#SHA256",
                "payloadTagId": 600,
                "serial": 9,
                "type": "Data",
                "version": 2,
                "payloadBytes": "+QFgUgUBACsjAAEA8fox30W54ZkzM+shfUeU5C7ad+/fsf5nICwNpkCUk5wKDgr5NG8nIgEARyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo=",
                "interlockedChainId": "8fox30W54ZkzM-shfUeU5C7ad-_fsf5nICwNpkCUk5w",
                "interlockedRecordHash": "RyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo#SHA256",
                "interlockedRecordOffset": 13671,
                "interlockedRecordSerial": 14
            }


        
Get the list of interlocking records pointing to a target chain instance.
Get the list of interlocking records pointing to a target chain instance .
def interlocks_of(self, chain) :
        json_data = self._get(f"/interlockings/{chain}")
        return [InterlockingRecordModel.from_json(item) for item in json_data]
def interlocks_of ( self , chain ) : json_data = self . _get ( f"/interlockings/{chain}" ) return [ InterlockingRecordModel . from_json ( item ) for item in json_data ]
Get the list of interlocking records pointing to a target chain instance.
Get the list of interlocking records pointing to a target chain instance .
"""
        Get the list of interlocking records pointing to a target chain instance.
    
        Args:
            chain (:obj:`str`): Chain id.

        Returns:
            :obj:`list` of :obj:`il2_rest.models.InterlockingRecordModel`: List of interlockings.

        Example:
            >>> node = RestNode(cert_file='documenter.pfx', cert_pass='password')
            >>> interlocks = node.interlocks_of('8fox30W54ZkzM-shfUeU5C7ad-_fsf5nICwNpkCUk5w')
            >>> for interlock in interlocks :
            ...     print(interlock)
            ...
            Interlocked chain 8fox30W54ZkzM-shfUeU5C7ad-_fsf5nICwNpkCUk5w at record #14 (offset: 13671) with hash RyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo#SHA256
            {
                "applicationId": 3,
                "chainId": "A1wCG9hHhuVNb8hyOALHokYsWyTumHU0vRxtcK-iDKE",
                "createdAt": "2020-02-26T23:17:03.018975-03:75",
                "hash": "0QjOJ-WQjauOF7qXeOxXabHxUgBR_KBNDZVDECbsszw#SHA256",
                "payloadTagId": 600,
                "serial": 9,
                "type": "Data",
                "version": 2,
                "payloadBytes": "+QFgUgUBACsjAAEA8fox30W54ZkzM+shfUeU5C7ad+/fsf5nICwNpkCUk5wKDgr5NG8nIgEARyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo=",
                "interlockedChainId": "8fox30W54ZkzM-shfUeU5C7ad-_fsf5nICwNpkCUk5w",
                "interlockedRecordHash": "RyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo#SHA256",
                "interlockedRecordOffset": 13671,
                "interlockedRecordSerial": 14
            }


        """
:obj:`list` of :obj:`il2_rest.models.InterlockingRecordModel`: List of interlockings.
: obj : ` list ` of : obj : ` il2_rest . models . InterlockingRecordModel ` : List of interlockings .
self
chain
chain (
`str`): Chain id.
` str ` ) : Chain id .
examples
>>> node = RestNode(cert_file='documenter.pfx', cert_pass='password')
>>> interlocks = node.interlocks_of('8fox30W54ZkzM-shfUeU5C7ad-_fsf5nICwNpkCUk5w')
>>> for interlock in interlocks :
print(interlock)

Interlocked chain 8fox30W54ZkzM-shfUeU5C7ad-_fsf5nICwNpkCUk5w at record #14 (offset: 13671) with hash RyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo#SHA256
{
"applicationId": 3,
"chainId": "A1wCG9hHhuVNb8hyOALHokYsWyTumHU0vRxtcK-iDKE",
"createdAt": "2020-02-26T23:17:03.018975-03:75",
"hash": "0QjOJ-WQjauOF7qXeOxXabHxUgBR_KBNDZVDECbsszw#SHA256",
"payloadTagId": 600,
"serial": 9,
"type": "Data",
"version": 2,
"payloadBytes": "+QFgUgUBACsjAAEA8fox30W54ZkzM+shfUeU5C7ad+/fsf5nICwNpkCUk5wKDgr5NG8nIgEARyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo=",
"interlockedChainId": "8fox30W54ZkzM-shfUeU5C7ad-_fsf5nICwNpkCUk5w",
"interlockedRecordHash": "RyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo#SHA256",
"interlockedRecordOffset": 13671,
"interlockedRecordSerial": 14
}
>>> node = RestNode ( cert_file = ' documenter . pfx ' cert_pass = ' password ' ) >>> interlocks = node . interlocks_of ( ' 8fox30W54ZkzM - shfUeU5C7ad - _fsf5nICwNpkCUk5w ' ) >>> for interlock in interlocks : print ( interlock ) Interlocked chain 8fox30W54ZkzM - shfUeU5C7ad - _fsf5nICwNpkCUk5w at record #14 ( offset : 13671 ) with hash RyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo#SHA256 { " applicationId " : 3 " chainId " : " A1wCG9hHhuVNb8hyOALHokYsWyTumHU0vRxtcK - iDKE " " createdAt " : " 2020 - 02 - 26T23 : 17 : 03 . 018975 - 03 : 75 " " hash " : " 0QjOJ - WQjauOF7qXeOxXabHxUgBR_KBNDZVDECbsszw#SHA256 " " payloadTagId " : 600 " serial " : 9 " type " : " Data " " version " : 2 " payloadBytes " : " + QFgUgUBACsjAAEA8fox30W54ZkzM + shfUeU5C7ad + / fsf5nICwNpkCUk5wKDgr5NG8nIgEARyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo = " " interlockedChainId " : " 8fox30W54ZkzM - shfUeU5C7ad - _fsf5nICwNpkCUk5w " " interlockedRecordHash " : " RyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo#SHA256 " " interlockedRecordOffset " : 13671 " interlockedRecordSerial " : 14 }