Simple multlisig TON
yarn
Compile with func -SPA stdlib.fc multisig-code.fc multisig-code.fif
Generate private key
npm run client:generate-key ./data/key
Copy public key from console and sent to admin
After server admin setups multisig smart contract, you are ready to submit transaction by running npm run client:send-tx
.
Parameters:
- Receiving address
- Amount in TON
- Public address
- Path to your private key.
Example:
npm run client:send-tx EQBW-Tltrbbg-HlmQC47uuEzP31OM1o5RtI5j7QSGxVrO1YD 0.1 PuZnMzx6J2E3obmLjtuQiBPbQrqFtEiKYg2+STwvp9i/ty7S ./data/key
Copy addresses to ./data/keys.pub
Prepare smart contract by running
npm run multisig:create
.
Parameters:
- k = minimum number of signatures. Example:
npm run multisig:create 2
Fund bounceable address with some TON. Deploy smart contract by running
npm run multisig:deploy
Deploy takes no parameters.
Run server
npm run server:start