# Client

# Transactions

# Deposit

Increments the block rewards pool's liquidity by the given amount denom

# CLI

commercionetworkd tx vbr deposit \
  [amount denom]

Parameters:

Parameter Description
amount denom Amount of tokens to increment reward pool

# Set Params

# CLI

commercionetworkd tx vbr set-params \
  [epoch_identifier] \
  [earn_rate]

Parameters:

Parameter Description
epoch_identifier Epoch reward identifier: minute/hour/day/week/month
earn_rate Earn reward rate

# Queries

# Getting the total Pool Funds

# CLI

commercionetworkd query vbr pool-funds

# REST

Endpoint:

/commercionetwork/vbr/funds
# Example

Getting all the block rewards pool Funds:

http://localhost:1317/commercionetwork/vbr/funds

# Response

{
  "funds": [
    {
      "denom": "ucommercio",
      "amount": "10000000.000000000000000000"
    }
  ]
}

# Reading the Params

# CLI

commercionetworkd query vbr get-params

# REST

Endpoint:

/commercionetwork/vbr/params
# Example

Getting the parameters:

http://localhost:1317/commercionetwork/vbr/params

# Response

{
  "params": {
    "distr_epoch_identifier": "day",
    "earn_rate": "0.500000000000000000"
  }
}