Skip to content

near/near-cli-connect

near-cli-connect

A browser-embeddable wallet connector that bridges NEAR dApps to near-cli-rs. Instead of signing transactions in the browser, it generates CLI commands for users to run in their terminal and then verifies the resulting transactions on-chain.

Demo

demo.mp4

How it works

  1. The dApp loads dist/near-cli.js inside an iframe via near-connect
  2. When a transaction is requested, the widget renders the corresponding near-cli-rs
  3. The user copies the command, runs it in their terminal, and pastes back the transaction hash
  4. The widget verifies the transaction on-chain via RPC and returns the result to the dApp

Development

npm install
npm run build

Available scripts

Script Description
npm run build Bundle src/ into dist/near-cli.js via Vite
npm run lint Run ESLint on source files
npm run fmt Format source files with Prettier
npm run fmt:check Check formatting without writing

About

NEAR Connect plugin for near.cli.rs

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors