{"_id":"@anastasia-labs/smart-handles-agent","_rev":"5-11928e59c64724bc4f002db87d5d21ca","name":"@anastasia-labs/smart-handles-agent","dist-tags":{"latest":"0.3.5"},"versions":{"0.3.0":{"name":"@anastasia-labs/smart-handles-agent","version":"0.3.0","keywords":["cardano","smart","handles","beacons","router"],"author":{"name":"Anastasia Labs"},"license":"ISC","_id":"@anastasia-labs/smart-handles-agent@0.3.0","maintainers":[{"name":"anastasia-labs","email":"info@anastasialabs.com"}],"homepage":"https://github.com/Anastasia-Labs/smart-handles-agent#readme","bugs":{"url":"https://github.com/Anastasia-Labs/smart-handles-agent/issues"},"dist":{"shasum":"78d4894d16d5353ddb875d18fbdcf62b0b267158","tarball":"https://registry.npmjs.org/@anastasia-labs/smart-handles-agent/-/smart-handles-agent-0.3.0.tgz","fileCount":38,"integrity":"sha512-6fIeILyJ5+MPufptK5KV1a2/bYkZc15ONlKxsgAoQVbXUnGMcZld8gMJ5HaebHCu3Z+2JOqquE2H49HFacIC9g==","signatures":[{"sig":"MEUCIDTcjzAwDt8P7QUyeEQ1s1+WCuPt9lAhgkOsu/Bmo87eAiEA5YzVRGHREVSih9Nos1Xw+Vn2+SeMBh/0zUMw1j9a/vs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":62516},"main":"./dist/index.js","type":"module","_from":"file:anastasia-labs-smart-handles-agent-0.3.0.tgz","types":"./dist/index.d.ts","scripts":{"lint":"eslint","test":"test","build":"tsc","repack":"pnpm run build  && pnpm pack"},"_npmUser":{"name":"anastasia-labs","email":"info@anastasialabs.com"},"_resolved":"/tmp/270935a5645455955f8e9fe1b8e7a3f7/anastasia-labs-smart-handles-agent-0.3.0.tgz","_integrity":"sha512-6fIeILyJ5+MPufptK5KV1a2/bYkZc15ONlKxsgAoQVbXUnGMcZld8gMJ5HaebHCu3Z+2JOqquE2H49HFacIC9g==","repository":{"url":"git+https://github.com/Anastasia-Labs/smart-handles-agent.git","type":"git"},"_npmVersion":"10.8.2","description":"Provider for making CLI application for submitting and routing requests to a smart handles script on Cardano","directories":{},"_nodeVersion":"20.17.0","dependencies":{"chalk":"^5.3.0","commander":"^12.1.0","@commander-js/extra-typings":"^12.1.0","@anastasia-labs/smart-handles-offchain":"^0.3.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.0.4+sha1.b198ac6d38244fd829253720f9daafd6a606834d","devDependencies":{"tsup":"^8.0.2","eslint":"^8.57.0","typescript":"^5.4.5","@types/node":"^20.12.12","eslint-config-prettier":"^9.1.0","@typescript-eslint/parser":"^6.21.0","@typescript-eslint/eslint-plugin":"^6.21.0"},"_npmOperationalInternal":{"tmp":"tmp/smart-handles-agent_0.3.0_1726771183997_0.6589841201552593","host":"s3://npm-registry-packages"}},"0.3.1":{"name":"@anastasia-labs/smart-handles-agent","version":"0.3.1","keywords":["cardano","smart","handles","beacons","router"],"author":{"name":"Anastasia Labs"},"license":"ISC","_id":"@anastasia-labs/smart-handles-agent@0.3.1","maintainers":[{"name":"anastasia-labs","email":"info@anastasialabs.com"}],"homepage":"https://github.com/Anastasia-Labs/smart-handles-agent#readme","bugs":{"url":"https://github.com/Anastasia-Labs/smart-handles-agent/issues"},"dist":{"shasum":"d3a2f0238261188e40f7d3bfac6331d6c354b758","tarball":"https://registry.npmjs.org/@anastasia-labs/smart-handles-agent/-/smart-handles-agent-0.3.1.tgz","fileCount":38,"integrity":"sha512-RHKqIw48wilkThS5V+K0T+WLFMQSkVi2M8YGpJ8FMnIb1gGJIzr1HimIFx5hK5ToOw3HVnkzNvMP+rmu+FYlIA==","signatures":[{"sig":"MEQCIBSBl0a3yVsOiafWcTnrgo0VL1P8wPVrWBXxh1fPM4G9AiAhIrbqc+hm9JnbMoJdNwGtXMceULi5uDVRU5J2t6RoQg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":62516},"main":"./dist/index.js","type":"module","_from":"file:anastasia-labs-smart-handles-agent-0.3.1.tgz","types":"./dist/index.d.ts","scripts":{"lint":"eslint","test":"test","build":"tsc","repack":"pnpm run build  && pnpm pack"},"_npmUser":{"name":"anastasia-labs","email":"info@anastasialabs.com"},"_resolved":"/tmp/1cdb0b53bce1355a44d931ae2b4a2319/anastasia-labs-smart-handles-agent-0.3.1.tgz","_integrity":"sha512-RHKqIw48wilkThS5V+K0T+WLFMQSkVi2M8YGpJ8FMnIb1gGJIzr1HimIFx5hK5ToOw3HVnkzNvMP+rmu+FYlIA==","repository":{"url":"git+https://github.com/Anastasia-Labs/smart-handles-agent.git","type":"git"},"_npmVersion":"10.8.2","description":"Provider for making CLI application for submitting and routing requests to a smart handles script on Cardano","directories":{},"_nodeVersion":"20.17.0","dependencies":{"chalk":"^5.3.0","commander":"^12.1.0","@commander-js/extra-typings":"^12.1.0","@anastasia-labs/smart-handles-offchain":"^0.3.1"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.0.4+sha1.b198ac6d38244fd829253720f9daafd6a606834d","devDependencies":{"tsup":"^8.0.2","eslint":"^8.57.0","typescript":"^5.4.5","@types/node":"^20.12.12","eslint-config-prettier":"^9.1.0","@typescript-eslint/parser":"^6.21.0","@typescript-eslint/eslint-plugin":"^6.21.0"},"_npmOperationalInternal":{"tmp":"tmp/smart-handles-agent_0.3.1_1727211733322_0.44705615680718513","host":"s3://npm-registry-packages"}},"0.3.2":{"name":"@anastasia-labs/smart-handles-agent","version":"0.3.2","keywords":["cardano","smart","handles","beacons","router"],"author":{"name":"Anastasia Labs"},"license":"ISC","_id":"@anastasia-labs/smart-handles-agent@0.3.2","maintainers":[{"name":"anastasia-labs","email":"info@anastasialabs.com"}],"homepage":"https://github.com/Anastasia-Labs/smart-handles-agent#readme","bugs":{"url":"https://github.com/Anastasia-Labs/smart-handles-agent/issues"},"dist":{"shasum":"32a01a4979ac2aa345615c74cb45f6b88d2f3f47","tarball":"https://registry.npmjs.org/@anastasia-labs/smart-handles-agent/-/smart-handles-agent-0.3.2.tgz","fileCount":38,"integrity":"sha512-be0k8iaYl3c6hLQuccuDnrxzix2OUP7F1qxO/9TsLuoQEb9/OxrbZDZa5Z/AiHbIeQqkBcL8OZ2mcGM+T3IaAA==","signatures":[{"sig":"MEUCIHav+4kf6H1iRbY77iihXdsOV54rRPrpiRPJ+iGFJJnJAiEAkUD0E87XDmAiNqKWEUXJXO/29qhusdovttK25qcezNw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":62869},"main":"./dist/index.js","type":"module","_from":"file:anastasia-labs-smart-handles-agent-0.3.2.tgz","types":"./dist/index.d.ts","scripts":{"lint":"eslint","test":"test","build":"tsc","repack":"pnpm run build  && pnpm pack"},"_npmUser":{"name":"anastasia-labs","email":"info@anastasialabs.com"},"_resolved":"/tmp/c7fc21f39f9f4f5d7807033fa84cb56e/anastasia-labs-smart-handles-agent-0.3.2.tgz","_integrity":"sha512-be0k8iaYl3c6hLQuccuDnrxzix2OUP7F1qxO/9TsLuoQEb9/OxrbZDZa5Z/AiHbIeQqkBcL8OZ2mcGM+T3IaAA==","repository":{"url":"git+https://github.com/Anastasia-Labs/smart-handles-agent.git","type":"git"},"_npmVersion":"10.8.2","description":"Provider for making CLI application for submitting and routing requests to a smart handles script on Cardano","directories":{},"_nodeVersion":"20.18.1","dependencies":{"chalk":"^5.3.0","commander":"^12.1.0","@commander-js/extra-typings":"^12.1.0","@anastasia-labs/smart-handles-offchain":"^0.3.2"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.0.4+sha1.b198ac6d38244fd829253720f9daafd6a606834d","devDependencies":{"tsup":"^8.0.2","eslint":"^8.57.0","typescript":"^5.4.5","@types/node":"^20.12.12","eslint-config-prettier":"^9.1.0","@typescript-eslint/parser":"^6.21.0","@typescript-eslint/eslint-plugin":"^6.21.0"},"_npmOperationalInternal":{"tmp":"tmp/smart-handles-agent_0.3.2_1732648836769_0.16455691339610623","host":"s3://npm-registry-packages"}},"0.3.3":{"name":"@anastasia-labs/smart-handles-agent","version":"0.3.3","keywords":["cardano","smart","handles","beacons","router"],"author":{"name":"Anastasia Labs"},"license":"ISC","_id":"@anastasia-labs/smart-handles-agent@0.3.3","maintainers":[{"name":"anastasia-labs","email":"info@anastasialabs.com"}],"homepage":"https://github.com/Anastasia-Labs/smart-handles-agent#readme","bugs":{"url":"https://github.com/Anastasia-Labs/smart-handles-agent/issues"},"dist":{"shasum":"b17b205d80453a7b82a850c85072d312eccaba6c","tarball":"https://registry.npmjs.org/@anastasia-labs/smart-handles-agent/-/smart-handles-agent-0.3.3.tgz","fileCount":38,"integrity":"sha512-v/rkltYwKUYwdbR3jPZ9Mpl5nWv2XReNuURMy6JM5WmQvHTZChxijKX/LLHmR1Zkc6Uaj0h3pNl97NR1O9HD7Q==","signatures":[{"sig":"MEYCIQDRaDbXLyHavQ2/8zILm3AHWSotrP2WzowOgcPwY+JjYgIhAKNI6hNZCx6hXZ/He/j01997Sw6f0V3fT6arJ/vFzQrC","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":62869},"main":"./dist/index.js","type":"module","_from":"file:anastasia-labs-smart-handles-agent-0.3.3.tgz","types":"./dist/index.d.ts","scripts":{"lint":"eslint","test":"test","build":"tsc","repack":"pnpm run build  && pnpm pack"},"_npmUser":{"name":"anastasia-labs","email":"info@anastasialabs.com"},"_resolved":"/tmp/b628651f8e0f2a36dfa5a5a0452a0bb4/anastasia-labs-smart-handles-agent-0.3.3.tgz","_integrity":"sha512-v/rkltYwKUYwdbR3jPZ9Mpl5nWv2XReNuURMy6JM5WmQvHTZChxijKX/LLHmR1Zkc6Uaj0h3pNl97NR1O9HD7Q==","repository":{"url":"git+https://github.com/Anastasia-Labs/smart-handles-agent.git","type":"git"},"_npmVersion":"10.8.2","description":"Provider for making CLI application for submitting and routing requests to a smart handles script on Cardano","directories":{},"_nodeVersion":"20.18.1","dependencies":{"chalk":"^5.3.0","commander":"^12.1.0","@commander-js/extra-typings":"^12.1.0","@anastasia-labs/smart-handles-offchain":"^0.3.3"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.0.4+sha1.b198ac6d38244fd829253720f9daafd6a606834d","devDependencies":{"tsup":"^8.0.2","eslint":"^8.57.0","typescript":"^5.4.5","@types/node":"^20.12.12","eslint-config-prettier":"^9.1.0","@typescript-eslint/parser":"^6.21.0","@typescript-eslint/eslint-plugin":"^6.21.0"},"_npmOperationalInternal":{"tmp":"tmp/smart-handles-agent_0.3.3_1732664973590_0.6022600283103041","host":"s3://npm-registry-packages"}},"0.3.4":{"name":"@anastasia-labs/smart-handles-agent","version":"0.3.4","keywords":["cardano","smart","handles","beacons","router"],"author":{"name":"Anastasia Labs"},"license":"ISC","_id":"@anastasia-labs/smart-handles-agent@0.3.4","maintainers":[{"name":"anastasia-labs","email":"info@anastasialabs.com"}],"homepage":"https://github.com/Anastasia-Labs/smart-handles-agent#readme","bugs":{"url":"https://github.com/Anastasia-Labs/smart-handles-agent/issues"},"dist":{"shasum":"757ba0d778dc67f75313b1e5199cd0181ede1b5d","tarball":"https://registry.npmjs.org/@anastasia-labs/smart-handles-agent/-/smart-handles-agent-0.3.4.tgz","fileCount":38,"integrity":"sha512-58DrXzDQg44U2KL3w/1xuvvPKqCGUsVDDsdPKds7HxCW3v+Wa5A5LF9H7AVn00rYMxxWeah8lOvuj+Dg/hCJIA==","signatures":[{"sig":"MEUCIQDs+OMdlE9YGkqQXLsyLPMGdqG0L67cGvUFvmZewSXGzwIgBrKKd5eN0Zy4QDvYkjHtE4LpAZEFte0gRAKxtqdkjY4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":65284},"main":"./dist/index.js","type":"module","_from":"file:anastasia-labs-smart-handles-agent-0.3.4.tgz","types":"./dist/index.d.ts","scripts":{"lint":"eslint","test":"test","build":"tsc","repack":"pnpm run build  && pnpm pack"},"_npmUser":{"name":"anastasia-labs","email":"info@anastasialabs.com"},"_resolved":"/tmp/7515ecc295a53199e39b867614087b1e/anastasia-labs-smart-handles-agent-0.3.4.tgz","_integrity":"sha512-58DrXzDQg44U2KL3w/1xuvvPKqCGUsVDDsdPKds7HxCW3v+Wa5A5LF9H7AVn00rYMxxWeah8lOvuj+Dg/hCJIA==","repository":{"url":"git+https://github.com/Anastasia-Labs/smart-handles-agent.git","type":"git"},"_npmVersion":"10.8.2","description":"Provider for making CLI application for submitting and routing requests to a smart handles script on Cardano","directories":{},"_nodeVersion":"20.18.1","dependencies":{"chalk":"^5.3.0","commander":"^12.1.0","@commander-js/extra-typings":"^12.1.0","@anastasia-labs/smart-handles-offchain":"^0.3.4"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.0.4+sha1.b198ac6d38244fd829253720f9daafd6a606834d","devDependencies":{"tsup":"^8.0.2","eslint":"^8.57.0","typescript":"^5.4.5","@types/node":"^20.12.12","eslint-config-prettier":"^9.1.0","@typescript-eslint/parser":"^6.21.0","@typescript-eslint/eslint-plugin":"^6.21.0"},"_npmOperationalInternal":{"tmp":"tmp/smart-handles-agent_0.3.4_1733833383161_0.06502294000289699","host":"s3://npm-registry-packages-npm-production"}},"0.3.5":{"name":"@anastasia-labs/smart-handles-agent","version":"0.3.5","description":"Provider for making CLI application for submitting and routing requests to a smart handles script on Cardano","main":"./dist/index.js","types":"./dist/index.d.ts","type":"module","repository":{"type":"git","url":"git+https://github.com/Anastasia-Labs/smart-handles-agent.git"},"keywords":["cardano","smart","handles","beacons","router"],"author":{"name":"Anastasia Labs"},"license":"ISC","bugs":{"url":"https://github.com/Anastasia-Labs/smart-handles-agent/issues"},"homepage":"https://github.com/Anastasia-Labs/smart-handles-agent#readme","devDependencies":{"@types/node":"^20.12.12","tsup":"^8.0.2","typescript":"^5.4.5","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","eslint":"^8.57.0","eslint-config-prettier":"^9.1.0"},"dependencies":{"@anastasia-labs/smart-handles-offchain":"^0.3.5","@commander-js/extra-typings":"^12.1.0","chalk":"^5.3.0","commander":"^12.1.0"},"packageManager":"pnpm@9.0.4+sha1.b198ac6d38244fd829253720f9daafd6a606834d","scripts":{"build":"tsc","lint":"eslint","repack":"pnpm run build  && pnpm pack","test":"test"},"_id":"@anastasia-labs/smart-handles-agent@0.3.5","_integrity":"sha512-aDlPov0rdAnhYsQSZKJjs4JNm6Hh1PQMpRpGHRYC7go9NWn5ogPT+/kDvXYKDxppJ25p3fv3w73tAg/C1Hkntw==","_resolved":"/tmp/0dd8fbea6fd44684947715903caceb9b/anastasia-labs-smart-handles-agent-0.3.5.tgz","_from":"file:anastasia-labs-smart-handles-agent-0.3.5.tgz","_nodeVersion":"20.18.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-aDlPov0rdAnhYsQSZKJjs4JNm6Hh1PQMpRpGHRYC7go9NWn5ogPT+/kDvXYKDxppJ25p3fv3w73tAg/C1Hkntw==","shasum":"b334f0c245fa67bfc1121fbc2fbe4965a70d4820","tarball":"https://registry.npmjs.org/@anastasia-labs/smart-handles-agent/-/smart-handles-agent-0.3.5.tgz","fileCount":38,"unpackedSize":65284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA3/t/Btw8yFVn+2TVkacunR1uXvuttyeyKwV/5i55HjAiBQXS7z1At0Pd0yDuNhq4bxuZrQjEre00lqnHL/+raO9w=="}]},"_npmUser":{"name":"anastasia-labs","email":"info@anastasialabs.com"},"directories":{},"maintainers":[{"name":"anastasia-labs","email":"info@anastasialabs.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/smart-handles-agent_0.3.5_1735812294807_0.38449731618870286"},"_hasShrinkwrap":false}},"time":{"created":"2024-09-19T18:39:43.859Z","modified":"2025-01-02T10:04:55.156Z","0.3.0":"2024-09-19T18:39:44.225Z","0.3.1":"2024-09-24T21:02:13.485Z","0.3.2":"2024-11-26T19:20:37.010Z","0.3.3":"2024-11-26T23:49:33.747Z","0.3.4":"2024-12-10T12:23:03.326Z","0.3.5":"2025-01-02T10:04:55.001Z"},"bugs":{"url":"https://github.com/Anastasia-Labs/smart-handles-agent/issues"},"author":{"name":"Anastasia Labs"},"license":"ISC","homepage":"https://github.com/Anastasia-Labs/smart-handles-agent#readme","keywords":["cardano","smart","handles","beacons","router"],"repository":{"type":"git","url":"git+https://github.com/Anastasia-Labs/smart-handles-agent.git"},"description":"Provider for making CLI application for submitting and routing requests to a smart handles script on Cardano","maintainers":[{"name":"anastasia-labs","email":"info@anastasialabs.com"}],"readme":"# Table of Contents\n\n<!-- vim-markdown-toc GFM -->\n\n* [CLI Application Generator for Smart Handles](#cli-application-generator-for-smart-handles)\n    * [Sample Run of Minswap V1 Instance](#sample-run-of-minswap-v1-instance)\n    * [Interface](#interface)\n    * [How to Use](#how-to-use)\n        * [1. Install this package along with `smart-handles-offchain`:](#1-install-this-package-along-with-smart-handles-offchain)\n        * [2. Configure your `package.json` and `tsconfig.js`](#2-configure-your-packagejson-and-tsconfigjs)\n        * [3. Define your `Config`](#3-define-your-config)\n        * [4. Implement your executable source](#4-implement-your-executable-source)\n        * [5. Build your application](#5-build-your-application)\n        * [6. Run your CLI](#6-run-your-cli)\n\n<!-- vim-markdown-toc -->\n\n# CLI Application Generator for Smart Handles\n\nGiven a `Config` value, this package's `main` generates a CLI interface for\ninteracting with your instance of [`smart-handles`](https://github.com/Anastasia-Labs/smart-handles).\n```ts\nexport interface Config {\n  label?: string;\n  quiet?: true;\n  network?: Network;\n  pollingInterval?: number;\n  scriptCBOR: CBORHex;\n  scriptTarget: \"Single\" | \"Batch\";\n  routeDestination: Address;\n  advancedReclaimConfig?: AdvancedReclaimConfig;\n  simpleRouteConfig?: SimpleRouteConfig;\n  advancedRouteConfig?: AdvancedRouteConfig;\n  advancedRouteRequestMaker?: (\n    requestInfo: RequestInfo\n  ) => Promise<Result<AdvancedRouteRequest>>;\n}\n```\n\n\n## Sample Run of [Minswap V1 Instance](https://github.com/Anastasia-Labs/smart-handles-offchain/tree/main/example)\n\n![demo.gif](/assets/images/demo.gif)\n\n\n## Interface\n\nThe generated CLI application offers 3 endpoints:\n- `monitor` for querying the instance's address and performing routes to collect\n  their fees\n- `submit-simple` for submitting a simple route request (i.e. attaching a datum\n  that only carries owner's address)\n- `submit-advanced` for submitting an advanced route request. This\n  requires `advancedRouteRequestMaker` to be defined in the given `Config`\n\n\n## How to Use\n\n### 1. Install this package along with [`smart-handles-offchain`](https://github.com/Anastasia-Labs/smart-handles-offchain):\n```sh\npnpm install                             \\\n  @anastasia-labs/smart-handles-offchain \\\n  @anastasia-labs/smart-handles-agent    \\\n  @commander-js/extra-typings # optional\n```\n\n### 2. Configure your `package.json` and `tsconfig.js`\n\n[Minswap V1 instance](https://github.com/Anastasia-Labs/smart-handles-offchain/tree/main/example)\nis a good reference in case you faced some issues.\n\n### 3. Define your `Config`\n\n- `label`: An optional name for your instance of Smart Handles\n- `quiet`: Optional flag to suppress warning logs\n- `network`: This can be one of `\"Mainnet\"`, `\"Preprod\"`, `\"Preview\"`,\n  or `\"Custom\"` (defaults to `\"Mainnet\"`)\n- `pollingInterval`: Length of time in milliseconds between each query of\n  instance's address for the `monitor` endpoint\n- `scriptCBOR`: Hex formatted CBOR of the fully applied Smart Handles instance\n- `scriptTarget`: Whether the provided `scriptCBOR` is a spend script that can\n  only allow single routes per transaction, or it's a staking script capable of\n  supporting a batch of routes in one transaction\n- `routeDestination`: The address where routes should go to, this is a parameter\n  that should already be applied to your instance\n- `advancedReclaimConfig`: If your instance supports advanced reclaims, you\n  should provide its config (read more at [`smart-handles-offchain`](https://github.com/Anastasia-Labs/smart-handles-offchain))\n- `simpleRouteConfig`: This config is what Smart Handles is primarily intended\n  for, e.g. an ADA-to-MIN via Minswap instance would expect simple datums with\n  owners' addresses, and this config would provide the application with proper\n  logic for producing the correct UTxO at Minswap's address (this only applies\n  to instances that do support simple routes)\n- `advancedRouteConfig`: Similar to other two configs, depending on your\n  instance, you might be required to provide this config\n- `advancedRouteRequestMaker`: The `submit-advanced` endpoint requires a few\n  values to be provided:\n    - `--lovelace` is the Lovelace count you intend to lock with your request\n    - `--asset` is any additional assets you want locked (can be specified\n      multiple times)\n    - `--owner` optional address to be specified as the owner\n    - `--router-fee` Lovelace count a router agent collects for carrying out the\n      routing\n    - `--reclaim-router-fee` is a sperate fee for router agents in case they\n      invoke the advanced reclaim endpoint (instead of routing)\n    - `--extra-config` path to a `.json` file carrying any additional values\n      your instance might need\n\n  These are all collected as a `RequestInfo` and passed to\n  your `advancedRouteRequestMaker`:\n```ts\nexport type RequestInfo = {\n  lovelace: bigint;\n  asset: Assets;\n  owner?: AddressDetails;\n  routerFee: bigint;\n  reclaimRouterFee: bigint;\n  extraConfig?: { [key: string]: any };\n};\n```\n\n### 4. Implement your executable source\n\nThis is mostly boilerplate, but can be customized:\n```ts\n#!/usr/bin/env node\n\nimport { main, Config, RequestInfo } from \"@anastasia-labs/smart-handles-agent\";\nimport { Command } from \"@commander-js/extra-typings\";\nimport config from \"./config.js\";\n\nconst program: Command = main(config);\n\nawait program\n  .parseAsync(process.argv)\n  .catch(console.log);\n```\n\n### 5. Build your application\n\nWe recommend `tsup`:\n```sh\ntsup src/index.ts --minify --format esm\n```\nNote that `src/index.ts` is the path to the executable source you implemented in\nprevious step.\n\n### 6. Run your CLI\n\nUse the `-h` or `--help` flag to learn more about each of the 3 endpoints\n(`monitor`, `submit-simple`, and `submit-advanced`).\n\n```sh\nnode dist/index.js --help\n\n# or e.g.\n\nnode dist/index.js monitor --help\n```\n","readmeFilename":"README.md"}