Installing the CLI?
To install the CLI:- Visit the releases, download the most recent version by clicking Assets and then downloading the zip.
- Unpack the zip
- Ensure Yarn is installed
- Run
yarn installin your command prompt
Using Gnosis SAFE
Encode Function Data
Returns encoded data for interaction with SKALE Chain through gnosis safe on mainnet.<schainName>- Destination SKALE Chain name<contract>- Destination contract that you wanna call<func>- Function that you wanna call on the destination contract
[params...]- Arguments for the destination function
Using the MultisigWallet on SKALE Chain
The following calls require a PRIVATE_KEY and RPC to be set in .env or passed in via CLI to work. The
.env method is encouraged.
The below calls execute directly through the SKALE Chain MultiSigWallet and DO NOT require the Gnosis SAFE on Ethereum Mainnet.Global options
-a, --account <number>- Account number from which the transaction should be performed, by default it’s 1. The account is associated with a private key in.env--custom- For custom abi, set filepath to ABI into.env
Call
Returns the result of executing the transaction, using call.<contract>- Destination contract that you wanna call<func>- Function that you wanna call on the destination contract
[params...]- Arguments for the destination function
Recharge
Allows to recharge the sFUEL balance of the MultiSigWallet contractENDPOINT- Endpoint of the SKALE chainPRIVATE_KEY_1- Originatior private key (owner of the MultiSigWallet)
<amount>- Amount of sFUEL in wei
Submit Transaction
Allows an owner to submit and confirm a transaction.<contract> must be written in PascalCase. <func> must be written in camelCase and function parameters must be written separated by spaces.
ENDPOINT- Endpoint of the SKALE chainPRIVATE_KEY_1- Originatior private key (owner of the MultiSigWallet)
<contract>- Name of the contract in pascal case<func>- Name of the function that you wanna call on the destination contract
[params...]- Arguments for the destination function
Submit Transaction with Data
Allows an owner to submit and confirm a transaction with custom data.ENDPOINT- Endpoint of the SKALE chainPRIVATE_KEY_1- Originatior private key (owner of the MultiSigWallet)
<contractAddress>- Destination contract that you wanna call<data>- Encoded data of function selector and params
Confirm Transaction
Allows an owner to confirm a transaction.ENDPOINT- Endpoint of the SKALE chainPRIVATE_KEY_1- Originatior private key (owner of the MultiSigWallet)
<transactionId>- Transaction id
Revoke Confirmation
Allows an owner to revoke a confirmation for a transaction.ENDPOINT- Endpoint of the SKALE chainPRIVATE_KEY_1- Originatior private key (owner of the MultiSigWallet)
<transactionId>- Transaction id
Execute Transaction
Allows an owner on the MultisigWallet to execute a confirmed transaction.ENDPOINT- Endpoint of the SKALE chainPRIVATE_KEY_1- Originatior private key (owner of the MultiSigWallet)
<transactionId>- Transaction id
Get Confirmations
Returns a list (i.e array) with the owner addresses who confirmed the transaction.ENDPOINT- Endpoint of the SKALE chainPRIVATE_KEY_1- Originatior private key (owner of the MultiSigWallet)
<transactionId>- Transaction id
Get Confirmation Count
Returns number of confirmations of a transaction (i.e how many times the transaction has been confirmed).ENDPOINT- Endpoint of the SKALE chainPRIVATE_KEY_1- Originatior private key (owner of the MultiSigWallet)
<transactionId>- Transaction id
Is Transaction Confirmed
Returns the confirmation status of transactions. If transaction ID was provided, than execution will return only status for that transaction.ENDPOINT- Endpoint of the SKALE chainPRIVATE_KEY_1- Originatior private key (owner of the MultiSigWallet)
[transactionId]- Transaction id
Get Owners
Returns list of owners on MultisigWallet on SKALE Chain.ENDPOINT- Endpoint of the SKALE chainPRIVATE_KEY_1- Originatior private key (owner of the MultiSigWallet)
Get Balance of MultisigWallet
Returns the sFUEL balance of address.ENDPOINT- Endpoint of the SKALE chainPRIVATE_KEY_1- Originatior private key (owner of the MultiSigWallet)
<address>- The address of which to return the sFUEL balance
