On this page

Initialize SIA Activation

API-v2task::enable_sia::init

This method starts the task of activating the SIA coin. It returns a task ID that can be used with the status and user_action methods to monitor and complete the activation process.

For SIA protocol coins, use the legacy my_tx_history method. The v2 my_tx_history method is not yet compatible. To access the SIA methods, KDF must be built with the --features "enable-sia,run-sia-functional-tests" flags.

ParameterTypeRequiredDefaultDescription
client_confobject-An object containing the SIA client configuration.
client_conf.server_urlstring-The URL of the SIA public node. e.g., https://api.siascan.com/wallet/api
client_conf.passwordstring-The password for the SIA wallet daemon.
tx_historyboolfalseWhether to enable transaction history for the coin.

ParameterTypeDescription
task_idintegerThe ID of the activation task.

Initialize SIA Activation

POST
task::enable_sia::init
{
  "userpass": "{{userpass}}",
  "mmrpc": "2.0",
  "method": "task::enable_sia::init",
  "params": {
      "ticker": "SC",
      "tx_history": true,
      "activation_params": {
          "client_conf": {
              "server_url": "https://api.siascan.com/wallet/api",
              "password": "password"
          }
      }
  }
}