archethic-foundation / archethic-foundation/multisig

Create npm package

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
Vue
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

### Is your feature request related to a problem?

The multisig fonctionnality will surely be used in other web platform or node script. It is currently not possible

### Describe the solution you'd like

Create an npm package as an sdk that return the Transaction object from the libjs
for example
```javascript
import ArchethicVault from "@archethicjs/vault"
import Archethic from "@archethichjs/sdk"

const archethic = new Archethic("endpoint")
const vault = ArchethicVault.new(archehtic, "multisigAddress")
const tx = vault.newTransaction().addUcoTransfer("address", amount).build("seed", index)

tx.send().then(() => console.log("ok")).catch(() => console.log("error"))

console.log(vault.getSetup())
// {voters: [], signatureThreashold: 2 ...}
console.log(vault.getPendingTransaction())
// [{id: 3, data: ...}]
```

### Additional context

_No response_

### Epic

_No response_

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the existing libjs implementation and the requested web/Node usage example to identify the package boundary and exposed operations. Done means an npm SDK is available that exposes the shown vault and transaction flow and returns the Transaction object for external platforms and scripts.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
api, developer-experience
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.