Skip to content

feat(mesh-rpc): beacon broadcast RPC + sendTransaction fix#81

Merged
Magicred-1 merged 4 commits into
v3from
feat/beacon-link-rpc
May 18, 2026
Merged

feat(mesh-rpc): beacon broadcast RPC + sendTransaction fix#81
Magicred-1 merged 4 commits into
v3from
feat/beacon-link-rpc

Conversation

@Magicred-1
Copy link
Copy Markdown
Member

Summary

  • MeshRpcAdapter uses beaconBroadcastRpc for all Solana RPC queries — any responsive beacon answers, no specific hash required
  • beaconRpcWait exposed from LxmfContext for future targeted ops (execute_payment co-signing)
  • buildSplTransferTransaction: remove duplicate rpcAdapter param that caused no-dupe-args lint error

Replaces beaconBroadcastRpc (fire-and-forget LXMF broadcast) with
beaconRpcWait (Reticulum Link + JSON-RPC 2.0 with zlib compression).

- MeshRpcAdapter: swap BeaconBroadcastRpcFn → BeaconRpcWaitFn; rpc()
  now passes destHashHex and propagates isError as a thrown Error
- LxmfContext: expose beaconRpcWait from useLxmf() in LxmfCtxValue
- NetworkModeContext: destructure and pass beaconRpcWait to adapter

Native module handles correlation, retransmit, and link management.
No JS-side message routing needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant