Gets all asset data for an address. Be cautious when using this. It may be more efficient to query address' balances for each asset individually.
Gets the metadata about a specific asset
Gets the last block hash or index.
Gets the public key from an address
Gets the latest block's timestamp.
Checks if an address is well-formed.
Gets the metadata about a specific transaction ID
Transfers an asset to a specified address. Asset must be transferable.
Creates an authorization asset on-chain.
Sends a signed transaction to the blockchain network
Verifies user owns enough of certain assets by querying the public blockchain.
Note that resources can be either URIs or prefixed with 'Asset ID: '. This implementation must parse and only look at the assets, not URIs.
Verifies an address owns enough of all specified resources. Should ignore every resource that doesn't start with 'Asset ID: '. Defaults to succeeding if user has a balance of >= 1 for every asset.
assetMinimumBalancesRequiredMap is optional, but here, one can define a JSON object mapping of 'assetIDs' => minimumBalances. If assetMinimumBalancesRequiredMap[assetId] exists, it will check that the user owns more than the specified minimum balance. If not defined, will use the default.
defaultMinimum is optional, but here, you can specify a new default minimum for all assets to fallback on if not defined in assetMinimumBalancesRequiredMap. Default is normally set to check if user owns >= 1.
Verifies a signature is signed correctly by an address
Generated using TypeDoc
This interface extends the IChainDriver interface with some helper functions that are useful for signing and verifying challenges and other miscellaneous functions.