Flag for determining whether this coin supports account consolidations from its receive addresses to the root address.
True if okay to consolidate over this coin; false, otherwise
Convert a currency amount represented in base units (satoshi, wei, atoms, drops, stroops) to big units (btc, eth, rmg, xrp, xlm)
Convert a currency amount represented in big units (btc, eth, rmg, xrp, xlm) to base units (satoshi, wei, atoms, drops, stroops)
Calculates the amount (in base units) to pay a KRS provider when building a recovery transaction
Calculate the hash to verify the signature against
Transaction object
The previous output's amount
Create a multisig address of a given type from a list of keychains and a signing threshold
The cold wallet tool uses this function to derive an extended key that is based on the passed key and seed
Explain/parse transaction
Fetch fee estimate information from the server
The params passed into the function
The info returned from the merchant server
Helper function for recover() This transforms the txInfo from recover into the format that offline-signing-tool expects
, feeInfo: {}, coin: void}}
Generate an address for a wallet based on a set of configurations
Generate secp256k1 key pair
object with generated pub and prv
Returns the factor between the base unit and its smallest subdivison
Get an instance of the library which can be used to perform low-level operations for this coin
Get the latest block height
Get a static fee rate which is used in recovery situations
Get a url which can be used for determining recovery fee rates
Get the current market price from a third party to be used for recovery
Always false for coins other than BCH and TBCH.
Return wether the given m of n wallet signers/ key amounts are valid for the coin
Return boolean indicating whether input is valid public key for the coin.
the pub to be checked
is it valid?
Specifies what key we will need for signing - right now we just need the user key.
Create a new wallet object from a wallet data object
Parse a transaction's signature script to obtain public keys, signatures, the sig script, and other properties
Extract and fill transaction details such as internal/change spend, external spend (explicit vs. implicit), etc.
Run custom coin logic after a transaction prebuild has been received from BitGo
Modify the transaction builder to comply with the specific coin's requirements such as version and branch id
Builds a funds recovery transaction without BitGo
for example: ['p2shP2wsh', 'p2wsh'] will prevent code from checking for wrapped-segwit and native-segwit chains on the public block explorers
Recover BTC that was sent to the wrong chain
Apply signatures to a funds recovery transaction using user + backup key
a transaction builder object (with inputs and outputs)
the unspents to use in the transaction
the address and redeem script info for the unspents
whether to cosign this transaction with the user's backup key (false if KRS recovery)
the transaction builder originally passed in as the first argument
Assemble keychain and half-sign prebuilt transaction
Indicates whether coin supports a block target
Indicates whether a coin supports wrapped segwit outputs
Indicates whether a coin supports native segwit outputs
Make sure an address is valid and throw an error if it's not.
Verify the signature(s) on a (half-signed) transaction
provajs-lib tx object
The input whose signature is to be verified
The input amount needs to be known for signature verification
Verify that a transaction prebuild complies with the original intention
Determine an address' type based on its witness and redeem script presence
Generated using TypeDoc
Get the default sighash type to be used when signing transactions