Class: ColdcardInteraction

coldcard.ColdcardInteraction()

Base class for interactions with Coldcard

Constructor

new ColdcardInteraction()

Source:

Extends

Methods

parse(response) → {Object}

Parse the response into a result.

Subclasses must override this function. It must accept an appropriate kind of response object and return the final result of this interaction.

Parameters:
Name Type Description
response Object

the raw response

Inherited From:
Source:
Returns:

the parsed response

Type
Object

request() → {Object}

Provide the request.

Subclasses may override this function. It can return any kind of object. Strings, data for QR codes, HTTP requests, command lines, functions, &c. are all allowed. Whatever is appropriate for the interaction.

Inherited From:
Source:
Returns:

the request data

Type
Object

(async) run() → {void}

Throws an error.

Inherited From:
Source:
Throws:

An error since this is an indirect interaction.

Returns:
Type
void