Search…
⌃K

Config of Swan Client Tool

Configuration

[lotus]

  • client_api_url: Url of lotus client web api, such as: http://[ip]:[port]/rpc/v0, generally the [port] is 1234. See Lotus API
  • client_access_token: Access token of lotus client web api. It should have admin access right. You can get it from your lotus node machine using command lotus auth create-token --perm admin. See Obtaining Tokens

[main]

  • api_url: Swan API address. For Swan production, it is https://go-swan-server.filswan.com. It can be ignored if [sender].offline_mode=true.
  • ‼️api_key: Your Swan API key. Acquire from Swan Platform -> "My Profile"->"Developer Settings". It can be ignored if [sender].offline_mode=true.
  • ‼️access_token: Your Swan API access token. Acquire from Swan Platform -> "My Profile"->"Developer Settings". It can be ignored if [sender].offline_mode=true.
  • ‼️storage_server_type: ipfs server or web server

[web-server]

  • download_url_prefix: Web server URL prefix, such as: https://[ip]:[port]/download. Store car files for downloading by the storage provider. Car file URL will be [download_url_prefix]/[filename]

[ipfs-server]

  • download_url_prefix: Ipfs server url prefix, such as: http://[ip]:[port]. Store car files for downloading by storage provider. Car file url will be [download_url_prefix]/ipfs/[file_hash]
  • upload_url_prefix: Ipfs server url for uploading files, such as http://[ip]:[port]

[sender]

  • bid_mode: [0/1/2] Default 1, which is auto-bid mod and it means swan will automatically allocate storage provider for it, while 0 is manual-bid mode and it needs to be bidded manually by storage providers, and 2 means not need bid, but set miners when creating a task.
  • offline_mode: [true/false] Default false. When set to true, you will not be able to create a Swan task on filswan.com, but you can still generate Car Files, CSV and JSON files for sending deals.
  • output_dir: When you do not set -out-dir option in your command, it is used as the default output directory for saving generated car files, CSV and JSON files. You need have access right to this folder or to create it.
  • verified_deal: [true/false] Whether deals in this task are going to be sent as verified or not.
  • fast_retrieval: [true/false] Indicates that data should be available for fast retrieval or not.
  • generate_md5: [true/false] Whether to generate md5 for each car file and source file, note: this is a resource consuming action.
  • skip_confirmation: [true/false] Whether to skip manual confirmation of each deal before sending.
  • wallet: Wallet used for sending offline deals
  • max_price: Max price willing to pay per GiB/epoch for offline deals
  • start_epoch_hours: Start_epoch for deals in hours from current time.
  • expired_days: Expected completion days for storage provider sealing data.
  • gocar_file_size_limit: Go car file size limit in bytes
  • gocar_folder_based: Generate car file based on whole folder, or on each file separately
  • duration: Expressed in epochs (30 seconds per epoch). Default value is 1512000, that is 525 days. Valid value range:[518400, 1540000].
  • max_auto_bid_copy_number: When in auto-bid mode, that is bid_mode=1, max number of miners a car file can be allocated by Market Matcher