findPath
Last updated
Last updated
import { findPath } from '@twine-protocol/twine-core'
import { HttpStore } from '@twine-protocol/twine-http-store'
const resolver = new HttpStore('https://someapi.io')
const start = { chain: 'chaincid', pulse: 'startpulsecid' }
const target = { chain: 'chaincid', pulse: 'targetpulsecid' }
const path = await findPath(start, target, resolver)
if (path) {
console.log('Path found:', path)
} else {
console.log('No path found')
}