{"id":19610697,"url":"https://github.com/onflow/flow-multisig","last_synced_at":"2025-04-27T22:32:59.187Z","repository":{"id":38333402,"uuid":"438038433","full_name":"onflow/flow-multisig","owner":"onflow","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-25T15:46:32.000Z","size":1750,"stargazers_count":8,"open_issues_count":11,"forks_count":4,"subscribers_count":35,"default_branch":"dev","last_synced_at":"2025-04-05T04:03:35.160Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"flow-multisig.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onflow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-13T22:03:46.000Z","updated_at":"2024-09-25T15:46:36.000Z","dependencies_parsed_at":"2024-09-11T22:09:59.776Z","dependency_job_id":null,"html_url":"https://github.com/onflow/flow-multisig","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onflow%2Fflow-multisig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onflow%2Fflow-multisig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onflow%2Fflow-multisig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onflow%2Fflow-multisig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onflow","download_url":"https://codeload.github.com/onflow/flow-multisig/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251219600,"owners_count":21554444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T10:32:04.537Z","updated_at":"2025-04-27T22:32:54.177Z","avatar_url":"https://github.com/onflow.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).\n\n## Getting Started\n\nFirst, run the development server:\n\n```bash\nnpm i\nnpm run dev\n# or\nyarn\nyarn dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\nYou can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.\n\n[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`.\n\nThe `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.\n\n## Signing Pending transaction via CLI\nAfter the transaction has been generated via webpage a `signature request id` is generated, this id is used to retrieve the transaction RLP, which is used for signing with flow cli. \"localhost\" is used only for examples. This service is hosted in vercel.\n\n### curl to get RLP\n - `curl -l http://localhost:3000/api/pending/rlp/b6d2aab4160c5ce2d26d752d4a312922970863e2ba324a2d8d31a6ce4b61661e \u003e sign-cli.rlp`\n - save the RLP to a local file for signing, in this example `sign-cli.rlp` is used\n\nSign the RLP using flow cli and save the output signature RLP to `sign-cli-signed.rlp`\n - `flow transactions sign ./sign-cli.rlp --signer ####### --filter payload --yes --save ./sign-cli-signed.rlp`\n\nSend the signed RLP raw text to the server\n - `curl -H \"Content-Type: application/text\" -d @sign-cli-signed.rlp  http://localhost:3000/api/pending/sig/b6d2aab4160c5ce2d26d752d4a312922970863e2ba324a2d8d31a6ce4b61661e`\n\n### flow cli to get RLP\n - `flow transactions sign --from-remote-url http://localhost:3000/api/pending/rlp/b6d2aab4160c5ce2d26d752d4a312922970863e2ba324a2d8d31a6ce4b61661e --signer \u003caccount\u003e`\n - account in this example is an entry in flow.json file\n\n\n## Query parameters to webapp\n - \"type\" is of value \"foundation\" or \"service\"\n    - \"foundation\" will pull scripts from foundation github\n    - \"service\" will pull scripts from service-account github\n- \"name\" is the name of the script to load, ie. \"hello.cdc\"\n- \"param\" is the json parameters to pass into the cadence script\n- \"acct\" is the multiple signature account\n\nExample:\n`http://localhost:3000/testnet?type=foundation\u0026name=hello.cdc\u0026param=[]\u0026acct=0xc590d541b72f0ac1`\n\n## Multisig Bash Script Helper\nlocation of helper script [multisig.sh](./client/multisig.sh)\n            \n    Usage:\n    -c: (required) 'get' to retreive RLP or 'post' to send signed RLP to server\n    -i: (required) Signature Request Id of pending transaction\n - Command (-c)\n    - **get** makes a GET request to get pending transaction RLP\n    - **post** makes a POST request to post signed RLP\n- Identifier (-i)\n    - **Signature Request Id** is the hash identifier of the pending transaction that needs to be signed\n\n### Example using shell script\n - `./multisig.sh -c get -i b6d2aab4160c5ce2d26d752d4a312922970863e2ba324a2d8d31a6ce4b61661e`\n\n - `flow transactions sign ./sign-cli.rlp --signer ####### --filter payload --yes --save ./sign-cli-signed.rlp`\n \n - `./multisig.sh -c post -i b6d2aab4160c5ce2d26d752d4a312922970863e2ba324a2d8d31a6ce4b61661e`\n\n\n## Learn More about Next.js\n\nTo learn more about Next.js, take a look at the following resources:\n\n- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.\n- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.\n\nYou can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!\n\n## Deploy on Vercel\n\nThe easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template\u0026filter=next.js\u0026utm_source=create-next-app\u0026utm_campaign=create-next-app-readme) from the creators of Next.js.\n\nCheck out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.\n\n## Set up flow\nInstall/setup Flow CLI\n`brew install flow-cli`\nhttps://docs.onflow.org/flow-cli/install/\n\nGet Service Account information\n`flow init`\n`flow keys generate`\n\n\n### Create Account and fund\nhttps://testnet-faucet.onflow.org/\nAdd public key from `flow keys generate` command\n \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonflow%2Fflow-multisig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonflow%2Fflow-multisig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonflow%2Fflow-multisig/lists"}