Find answers instantly with AI search. Start typing your prompt below and let AI do the digging for you!

Deposit Funds into Escrow

Command

sagacli enables you to contribute funds towards a chainlet, thereby giving you a stake in the chainlet. You can use your account functions to fund your own chainlet or any other chainlet on the SAGA network. Your funding account will be made public on the SAGA network for that Escrow.

To make an escrow deposit, you will execute the following command:

sagacli account deposit-escrow <chain-id> <amount to deposit> --from <key name or account address making the deposit>

Deposit Example

Let us see this deposit via an example.

Let's say we have a chainlet with a chain-id of magicwarriors_1679599719-1. It was launched by a user holding the key named ash.

Now, a user with the key fundkey wants to contribute some funds towards this chainlet. Once the holder of key fundkey makes an escrow deposit, these funds will be placed in an escrow account associated to chainlet magicwarriors_1679599719-1.

To make this deposit, we will execute the following command:

$ sagacli account deposit-escrow magicwarriors_1679599719-1 1000 --from fundkey

You are about to sign and broadcast a transaction, with the following configurations:
* Address:           saga14hyhswxf0shnpzup406yvjejmfsrjnvzq897re
* Network RPC:       tcp://spc.sp1.sagarpc.io:26657
* Platform Chain ID: cassiospc-1
* Ledger:            false
* Message Type:      *types.MsgDeposit
* Message Detail:
	creator:"saga14hyhswxf0shnpzup406yvjejmfsrjnvzq897re"
	amount:"1000tsaga"
	chainId:"magicwarriors_1679599719-1"
	
Do you want to proceed? (y/N):
y
2023-03-23T14:46:44-05:00 INF tx broadcasted to the remote node code=0 gas_used=75032 gas_wanted=200000 hash=369134D1766795CB6082D76A2627411EB79E0F7E23EB9031C8674B45430817C1
ChainId                               TotalBalance     Funder                                          FunderDeposit
-------                               ------------     ------                                          -------------
magicwarriors_1679599719-1            30000tsaga       saga1rdssl22ysxyendrkh2exw9zm7hvj8d2ju346g3     28000.000000tsaga
magicwarriors_1679599719-1            30000tsaga       saga14hyhswxf0shnpzup406yvjejmfsrjnvzq897re     2000.000000tsaga

As you can see, the deposit was successfully made and the output above shows the balance breakdown of funds held in escrow for chainletmagicwarriors_1679599719-1.

Further Deposit Details

For further details on making deposits to the escrow, run

sagacli account deposit-escrow --help

Last updated

#160:

Change request updated