MCPcopy Index your code
hub / github.com/raiden-network/raiden / channel_close

Method channel_close

raiden/api/python.py:827–846  ·  view source on GitHub ↗

Close a channel opened with `partner_address` for the given `token_address`. Race condition, this can fail if channel was closed externally.

(
        self,
        registry_address: TokenNetworkRegistryAddress,
        token_address: TokenAddress,
        partner_address: Address,
        retry_timeout: NetworkTimeout = DEFAULT_RETRY_TIMEOUT,
        coop_settle: bool = True,
    )

Source from the content-addressed store, hash-verified

825 )
826
827 def channel_close(
828 self,
829 registry_address: TokenNetworkRegistryAddress,
830 token_address: TokenAddress,
831 partner_address: Address,
832 retry_timeout: NetworkTimeout = DEFAULT_RETRY_TIMEOUT,
833 coop_settle: bool = True,
834 ) -> None:
835 """Close a channel opened with `partner_address` for the given
836 `token_address`.
837
838 Race condition, this can fail if channel was closed externally.
839 """
840 self.channel_batch_close(
841 registry_address=registry_address,
842 token_address=token_address,
843 partner_addresses=[partner_address],
844 retry_timeout=retry_timeout,
845 coop_settle=coop_settle,
846 )
847
848 def channel_batch_close(
849 self,

Calls 1

channel_batch_closeMethod · 0.95