Title: Add TS script to read and process broadcastable messages from JSON in examples/ts · Issue #6891 · BitGo/BitGoJS · GitHub
Open Graph Title: Add TS script to read and process broadcastable messages from JSON in examples/ts · Issue #6891 · BitGo/BitGoJS
X Title: Add TS script to read and process broadcastable messages from JSON in examples/ts · Issue #6891 · BitGo/BitGoJS
Description: Feature Description Create a TypeScript script in the examples/ts folder that reads a JSON file containing an array of claims, each with a broadcastableMessage string. The script should: Parse the JSON structure as provided. Extract the ...
Open Graph Description: Feature Description Create a TypeScript script in the examples/ts folder that reads a JSON file containing an array of claims, each with a broadcastableMessage string. The script should: Parse the ...
X Description: Feature Description Create a TypeScript script in the examples/ts folder that reads a JSON file containing an array of claims, each with a broadcastableMessage string. The script should: Parse the ...
Opengraph URL: https://github.com/BitGo/BitGoJS/issues/6891
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add TS script to read and process broadcastable messages from JSON in examples/ts","articleBody":"## Feature Description\n\nCreate a TypeScript script in the `examples/ts` folder that reads a JSON file containing an array of claims, each with a `broadcastableMessage` string. The script should:\n- Parse the JSON structure as provided.\n- Extract the `broadcastableMessage` fields from each claim.\n- Use `deserializeBIP322BroadcastableMessage()` to deserialize each message.\n- Pass the deserialized message to `generateBIP322MessageListAndVerifyFromMessageBroadcastable()`.\n- Print or log the results.\n\n## Motivation\n\nThis will provide a clear usage example for handling BIP322 broadcastable messages with the relevant BitGo utilities. It will help developers understand how to process airdrop claim data and verify messages in a production-like scenario.\n\n## Context\n\nSample JSON structure:\n\n```\n{\n \"status\": \"success\",\n \"claims\": [\n {\n \"id\": \"...\",\n ...\n \"broadcastableMessage\": \"...\",\n ...\n }\n ],\n \"count\": 1,\n \"pagination\": {\n \"limit\": 100,\n \"hasNext\": false\n }\n}\n```\n\nThe script should be added to `examples/ts/`. Functions to use: `deserializeBIP322BroadcastableMessage`, `generateBIP322MessageListAndVerifyFromMessageBroadcastable`.","author":{"url":"https://github.com/bhavidhingra","@type":"Person","name":"bhavidhingra"},"datePublished":"2025-09-05T08:02:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/6891/BitGoJS/issues/6891"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e00a0552-f384-f79c-7f86-8e85604b4583 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B83A:1EC4E1:1D70867:2572F9A:69918741 |
| html-safe-nonce | 77c6eeb2db56d71a88c64c204e310cc2e60621f7f400b1103cea846bc93b3121 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODNBOjFFQzRFMToxRDcwODY3OjI1NzJGOUE6Njk5MTg3NDEiLCJ2aXNpdG9yX2lkIjoiNzAyNjMyMjAxOTg5ODcyMjExMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 95f508553c50c7d7639ec487aaa22a81ca18d22827cbf8e11e3f80cddf60037a |
| hovercard-subject-tag | issue:3386653209 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/BitGo/BitGoJS/6891/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f586d9486f42d3e79391f28fa038b19e4bd795585c9dd096af9d99f3fd01462a/BitGo/BitGoJS/issues/6891 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f586d9486f42d3e79391f28fa038b19e4bd795585c9dd096af9d99f3fd01462a/BitGo/BitGoJS/issues/6891 |
| og:image:alt | Feature Description Create a TypeScript script in the examples/ts folder that reads a JSON file containing an array of claims, each with a broadcastableMessage string. The script should: Parse the ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bhavidhingra |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/BitGo/BitGoJS git https://github.com/BitGo/BitGoJS.git |
| octolytics-dimension-user_id | 6267684 |
| octolytics-dimension-user_login | BitGo |
| octolytics-dimension-repository_id | 20121980 |
| octolytics-dimension-repository_nwo | BitGo/BitGoJS |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20121980 |
| octolytics-dimension-repository_network_root_nwo | BitGo/BitGoJS |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width