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)
Creates the extra parameters needed to build a hop transaction
The original build parameters
extra parameters object to merge with the original build parameters object and send to the platform
The cold wallet tool uses this function to derive an extended key that is based on the passed key and seed
Fetch fee estimate information from the server
The params passed into the function
The fee info returned from the server
Helper function for recover() This transforms the unsigned transaction information into a format the BitGo offline vault expects
|{address: ({address, amount}|string), amount: string}|string)[]}}
Generate secp256k1 key pair
object with generated pub and prv
Queries public block explorer to get the next ETH nonce that should be used for the given ETH address
Default expire time for a contract call (1 week)
Time in seconds
Modify prebuild before sending it to the server. Add things like hop transaction params
The whitelisted parameters for this prebuild
Default gas limit from platform
Default gas price from platform
Evaluates whether an address string is valid for this coin
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
Modify prebuild after receiving it from the server. Add things like nlocktime
Ensure either enterprise or newFeeAddress is passed, to know whether to create new key or use enterprise key
Coin-specific things done before signing a transaction, i.e. verification
Query Etherscan for the balance of an address
the ETH address
address balance
Query Etherscan for the balance of an address for a token
address where the token smart contract is hosted
address of the wallet
token balaance in base units
Queries the contract (via Etherscan) for the next sequence ID
address of the contract
sequence ID
Builds a token recovery transaction without BitGo
Recover an unsupported token from a BitGo multisig wallet This builds a half-signed transaction, for which there will be an admin route to co-sign and broadcast. Optionally the user can set params.broadcast = true and the half-signed tx will be sent to BitGo for cosigning and broadcasting
Make a query to Etherscan for information such as balance, token balance, solidity calls
key-value pairs of parameters to append after /api
response from Etherscan
Helper function for signTransaction for the rare case that SDK is doing the second signature Note: we are expecting this to be called from the offline vault
Sign message with private key
Assemble keychain and half-sign prebuilt transaction
Hook to add additional parameters to the wallet generation
Check whether a coin supports blockTarget for transactions to be included in
Flag for sending data along with transactions
True if okay to send tx data (ETH), false otherwise
Validates that the hop prebuild from the HSM is valid and correct
The wallet that the prebuild is for
The prebuild to validate
The original parameters passed to prebuildTransaction
void
Flag for sending value of 0
True if okay to send 0 value, false otherwise
Generated using TypeDoc
Flag for determining whether this coin supports account consolidations from its receive addresses to the root address.