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.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| client_conf | object | ✓ | - | An object containing the SIA client configuration. |
| client_conf.server_url | string | ✓ | - | The URL of the SIA public node. e.g., https://api.siascan.com/wallet/api |
| client_conf.password | string | ✓ | - | The password for the SIA wallet daemon. |
| tx_history | bool | ✗ | false | Whether to enable transaction history for the coin. |
| Parameter | Type | Description |
|---|---|---|
| task_id | integer | The 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"
}
}
}
}