Skip to main content

import_descriptors

Overview

The 'import_descriptors' method allows you to import descriptors to the CoinAPI. This method is essential for managing various aspects of your Bitcoin transactions and wallet functionalities through the CoinAPI.

Request

wget --no-check-certificate --quiet \
--method POST \
--timeout=0 \
--header 'Content-Type: application/json' \
--header 'accept: application/json' \
--header 'X-CoinAPI-Key: 73034021-THIS-IS-SAMPLE-KEY' \
--body-data '{"jsonrpc":"2.0","id":1,"method":"import_descriptors","params": [ ]}' \
'https://bitcoin-mainnet.node.coinapi.io'

Request Parameters

  • desc: A descriptor to import. This is a required parameter.
  • active: Set this descriptor to be the active descriptor for the corresponding output type/externality. This is an optional parameter, with the default value being false.
  • range: If a ranged descriptor is used, this specifies the end or the range (in the form [begin, end]) to import. This is an optional parameter.
  • next_index: If a ranged descriptor is set to active, this specifies the next index to generate addresses from. This is an optional parameter.
  • timestamp: Time from which to start rescanning the blockchain for this descriptor, in UNIX epoch time. Use the string "now" to substitute the current synced blockchain time. This is a required parameter.
  • internal: Whether matching outputs should be treated as not incoming payments (e.g., change). This is an optional parameter, with the default value being false.
  • label: Label to assign to the address; only allowed with internal = false. This is an optional parameter, with the default value being an empty string.

Response

{
// Response structure here
}