{"id":25652374,"url":"https://github.com/hyperweb-io/cosmjs-utils","last_synced_at":"2026-06-15T12:31:49.615Z","repository":{"id":52889332,"uuid":"521139732","full_name":"hyperweb-io/cosmjs-utils","owner":"hyperweb-io","description":"cosmjs utilities","archived":false,"fork":false,"pushed_at":"2022-09-27T22:41:06.000Z","size":1369,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-10-06T18:01:39.599Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hyperweb-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-Apache","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-04T05:49:18.000Z","updated_at":"2025-01-18T01:26:48.000Z","dependencies_parsed_at":"2022-08-28T00:13:06.065Z","dependency_job_id":null,"html_url":"https://github.com/hyperweb-io/cosmjs-utils","commit_stats":null,"previous_names":["cosmology-tech/cosmjs-utils"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/hyperweb-io/cosmjs-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperweb-io%2Fcosmjs-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperweb-io%2Fcosmjs-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperweb-io%2Fcosmjs-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperweb-io%2Fcosmjs-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperweb-io","download_url":"https://codeload.github.com/hyperweb-io/cosmjs-utils/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperweb-io%2Fcosmjs-utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34363537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-02-23T18:17:48.964Z","updated_at":"2026-06-15T12:31:49.595Z","avatar_url":"https://github.com/hyperweb-io.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cosmjs-utils\n\nCosmJS utilities\n\n```\nyarn add cosmjs-utils\n```\n## Creating Signers\n\nTo broadcast messages, you'll want to use either [keplr](https://docs.keplr.app/api/cosmjs.html) or an `OfflineSigner` from `cosmjs` using mnemonics.\n### Amino Signer\n\nLikely you'll want to use the Amino, so unless you need proto, you should use this one:\n\n```js\nimport { getOfflineSignerAmino as getOfflineSigner } from 'cosmjs-utils';\n```\n### Proto Signer\n\n```js\nimport { getOfflineSignerProto as getOfflineSigner } from 'cosmjs-utils';\n```\n\nWARNING: NOT RECOMMENDED TO USE PLAIN-TEXT MNEMONICS. Please take care of your security and use best practices such as AES encryption and/or methods from 12factor applications.\n\n```js\nimport { chains } from 'chain-registry';\n\nconst mnemonic =\n  'unfold client turtle either pilot stock floor glow toward bullet car science';\n  const chain = chains.find(({ chain_name }) =\u003e chain_name === 'osmosis');\n  const signer = await getOfflineSigner({\n    mnemonic,\n    chain\n  });\n```\n\n## Broadcasting messages\n\nNow that you have your `client`, you can broadcast messages:\n\n```js\nimport { signAndBroadcast } from 'cosmjs-utils';\n\nconst res = await signAndBroadcast({\n  client, // SigningStargateClient\n  chainId: 'osmosis-1', // use 'osmo-test-4' for testnet\n  address,\n  msgs: [msg],\n  fee,\n  memo: ''\n});\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperweb-io%2Fcosmjs-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperweb-io%2Fcosmjs-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperweb-io%2Fcosmjs-utils/lists"}