@iota/pearl-diver-react-native
Version:
Transaction nonce searcher for IOTA apps built with react-native.
19 lines (18 loc) • 613 B
TypeScript
/**
* Attaches transactions to tangle by finding a valid nonce.
* Proof-of-Work puzzle is solved with native modules that use
* [`entangled`](https://github.com/iotaledger/entangled/tree/develop/mobile) libraries.
*
* @method attachToTangle
*
* @param {Hash} trunkTransaction
*
* @param {Hash} branchTransaction
*
* @param {number} minWeightMagnitude
*
* @param {Trytes} trytes
*
* @return {Promise<Trytes[]>} Attached trytes
*/
export declare const attachToTangle: (trunkTransaction: string, branchTransaction: string, minWeightMagnitude: number, trytes: readonly string[]) => readonly string[];