Saga Docs
Back to Saga
  • Introduction
    • Pegasus Overview
    • Saga Overview
      • Saga Topology
      • Saga Chainlets
      • Saga Shared Security
      • Validator Orchestration Tools
      • Token Mechanism and Economics
      • Validator Selection
      • Partnership Models
      • Paying for Chainlets
      • Staking on Saga
        • Staking your Saga on Keplr
        • Auto-compound your staking rewards with Restake.app
  • Saga Web App
    • Getting Access
    • Quickstart Guide
      • Testnet Quickstart Guide
      • Mainnet Quickstart Guide
    • Account Management
      • Requesting Tokens from Saga Faucet
      • Deposit Funds into Escrow
      • Withdraw Funds from Escrow
      • View Escrow Account Information
    • Working with Chainlet
      • Launch your Chainlet on Testnet
      • Launch your Chainlet on Mainnet
      • Get Chainlet Information
      • View Listing of Chainlets Launched
      • Chainlet APIs & BlockExplorer
      • Configuring Metamask Network
      • Chainlet Billing
      • Restarting a Stopped Chainlet
  • Sagacli
    • Getting Access
    • Quickstart Guide
      • Testnet Quickstart Guide
      • Mainnet Quickstart Guide
    • Download Saga CLI
    • Install Saga CLI
    • Configure Saga CLI
    • Key Management
      • Adding Keys
      • Listing Keys
      • Display Key Details
      • Deleting Keys
      • Renaming Keys
    • Account Management
      • Checking Account Balances
      • Requesting Tokens from Saga Faucet
      • Deposit Funds into Escrow
      • Withdraw Funds from Escrow
      • View Escrow Account Information
    • Working with Chainlet
      • View Listing of Chainlet Types
      • Launch your Chainlet on Testnet
      • Launch your Chainlet on Mainnet
      • Get Chainlet Information
      • View Listing of Chainlets Launched
      • Chainlet APIs & BlockExplorer
      • Configuring Metamask Network
      • Update Chainlet Version
      • Chainlet Billing
      • Restarting a Stopped Chainlet
    • Configuring sagacli - A Deep Dive
    • Searching for Transactions
  • Get Help & Support
Powered by GitBook
On this page
  • Deposit Example
  • Further Deposit Details
  1. Sagacli
  2. Account Management

Deposit Funds into Escrow

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.

IMPORTANT: To deposit funds into an escrow account, you will need the chain-id associated to the chainlet you wish to contribute towards. You will also need to have an account that has enough balance to cover your deposit.

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_1698795593524888-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_1698795593524888-1.

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

$ sagacli account deposit-escrow magicwarriors_1698795593524888-1 10000000 --from fundkey

You are about to sign and broadcast a transaction, with the following configurations:
* Keyname:                fundkey
* Keyring:                file
* Address:                saga17gk4chqd0lrkyamrxdmu62czmu0dpnemmxlymn
* Network RPC:            https://spc.sagarpc.io
* Platform chain id:      spc-1
* Ledger:                 false
* Gas limit:              250000
* Message Detail:
	creator:"saga17gk4chqd0lrkyamrxdmu62czmu0dpnemmxlymn"
	amount:"10000000.0000upsaga"
	chainId:"magicwarriors_1698795593524888-1"

Do you want to proceed? (y/N):
y
2023-10-31T17:11:36-07:00 INF tx broadcasted to the remote node code=0 gas_used=0 gas_wanted=0 hash=4F60AFB3F923AB9AAD56D71B65651DBB5FC7C438777DE54D312ACD35CDF1C49E
ChainId                              TotalBalance        Funder                                          FunderDeposit
-------                              ------------        ------                                          -------------
magicwarriors_1698795593524888-1     290000000upsaga     saga17gk4chqd0lrkyamrxdmu62czmu0dpnemmxlymn     10000000.0000upsaga
magicwarriors_1698795593524888-1     290000000upsaga     saga1yuvju0cztlahsf6f37z9j83vwyzgj6pzhx090f     280000000.0000upsaga

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
PreviousRequesting Tokens from Saga FaucetNextWithdraw Funds from Escrow

Last updated 1 year ago