Skip to content

CLI

Hub operators who have direct access to the server running their instances can make use of the command-line utility (based on django-admin)

Below is a list of the commands available. You can also obtain more information about these commands by calling django-admin help or django-admin <command_name> help

load_chain_data

Loads all chain information according to chainlist schema

Usage: django-admin load_chain_data [-h] [--url URL]

register_blockchain

Saves a new blockchain into the database

Usage: django-admin register_blockchain [-h] --id CHAIN_ID --name NAME [--provider-url PROVIDER]

register_raiden

Saves information about a Raiden node that you want to integrate with the hub

Usage: django-admin register_raiden [-h] --chain-id CHAIN_ID --raiden RAIDEN_URL

deposit_to_raiden_channel

Calls Raiden node to execute channel deposit

Usage: django-admin deposit_to_raiden_channel [-h] --raiden-url RAIDEN_URL --channel CHANNEL_IDENTIFIER --amount DEPOSIT_AMOUNT

withdraw_from_raiden_channel

Calls Raiden node to execute channel withdrawal

Usage: django-admin withdraw_from_raiden_channel [-h] --raiden-url RAIDEN_URL --channel CHANNEL_IDENTIFIER --amount DEPOSIT_AMOUNT