These are the utility functions found in utils.js.
Build Ethereum SPV proof using eth-proof library.
Returns the GUID for a child asset with the given NFT ID, which would be issued from the specified base asset.
Fetch address or xPub information including transactions and balance information (based on options) from backend Blockbook provider.
Fetches asset information from the backend Blockbook provider for a specific token/asset, given by the GUID.
Fetches the information for a block from the backend, specified by the block hash.
Fetches a list of assets from backend Blockbook provider via a filter
Fetches the information for a transaction from the backend, specified by the transaction ID (txid).
Fetches a SPV Proof from the backend Blockbook provider. To be used to create a proof for the NEVM bridge.
Fetch the UTXOs for an address or XPUB from the backend Blockbook provider.
Get estimated fee from backend.
Fetch notarization signature via axois from an endPoint URL, see spec for more info: https://github.com/syscoin/sips/blob/master/sip-0002.mediawiki
Fetches the provider info including blockbook and backend data.
Get allocation information for an asset transaction.
Get assets from the Result object assigned from syscointx.createTransaction() / syscointx.createAssetTransaction() that require notarization.
Given a certain child asset's GUID this will return the base asset's GUID as well as the child asset's NFT ID.
Given a certain child asset's GUID this will return the base asset's GUID, from which the child was issued with a NFT ID.
Returns the memo from an array of outputs by finding the OP_RETURN output and extracting the memo from the script, returns null if not found.
Get the memo from a script.
Get notarization signatures from a notary endpoint defined in the asset object. See spec for more info.
Manage an HD wallet and accounts, connects to SyscoinJS object.
Notarize Result object from syscointx.createTransaction() / syscointx.createAssetTransaction() if required by the assets in the inputs of the transaction
Sanitize back-end provider UTXO objects to be useful for this library.
Sends a raw transaction to the backend Blockbook provider to send to the network.
Sets a transaction's memo, or returns null if not found.
Signs a PSBT/Result object with a WIF
Manage an HD wallet and accounts using a Trezor hardware wallet.