Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sqds/based

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sqds/based

``` _____ ____ __ __ ___ ____ _____ / ___/ / __ \ / / / / / | / __ \ / ___/ \__ \ / / / / / / / / / /| | / / / / \__ \ ___/ / / /_/ / / /_/ / / ___ | / /_/ / ___/ / /____/ \___\_\ \____/ /_/ |_|/_____/ /____

  • 1.0.8
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Squads Based CLI

   _____   ____    __  __    ___     ____    _____
  / ___/  / __ \  / / / /   /   |   / __ \  / ___/
  \__ \  / / / / / / / /   / /| |  / / / /  \__ \ 
 ___/ / / /_/ / / /_/ /   / ___ | / /_/ /  ___/ / 
/____/  \___\_\ \____/   /_/  |_|/_____/  /____/  
                                                  

Interact with the Squads Multisig Program through a simple CLI.
The CLI program runs against the Solana program at BASEDWVF6xeXTJSrk99cbMCwGFtaUvFLihpg6ki9UWX3, which is set as non-upgradeable.

Requirements

Nodejs version >= 16

Installing the CLI tool

npm install -g @sqds/based

Running the tool

Running the simple command will start the tool and ask a few setup questions for the wallet and the network cluster.
squads-based

Cluster Option

Providing the cluster will bypass the question upon startup
squads-based --cluster https://api.mainnet-beta.solana.com

Transactions

There are 2 ways to create multisig transactions

  1. Using a base58 encoded serialization of the Transaction message
  2. Creating a raw draft, and adding each instruction individually

It is important to note, that the signer of any multisig transaction for proper execution must be the relevant authority. For most cases, this will be the vault address that is show from the vault menu, and will usually default to the authority index of 1 when creating a transaction draft (unless otherwise specified).

If attaching an instruction to a draft, you'll need to add the data as a base58 encoded version of the data buffer.
Make sure that all instructions for any given transaction thats created for the multisig has the proper signer as the relevant authority. If there is an additional signer, it MUST be a member of the multisig and strictly the member that executes it, or else it will fail.

Important Notes

If creating a multisig, it will automatically fund the default vault/authority with .001 SOL. This helps with certain clients that require destinations to have lamports in a system account.

DO NOT use the multisig address to receive funds or act as an authority. Any treasury, vault, or authority based transactions should be associated with a proper authority address. In the context of this CLI tool, it will be shown as the default vault address in the vault or settings menu.

Contributing

Join the Squads discord at discord.gg/tYpY9UfRFx or reach out to the team on Twitter at @SquadsProtocol and ask how to be a contributor!

Keywords

FAQs

Package last updated on 06 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc