Client
Query
Candidate Pool
novad query poolincentive candidate-pool [pool_id]
Example:
novad query poolincentive candidate-pool pool-1
Example Output:
{
"poolId": "pool-1",
"poolContractAddress": "0xabcd..."
}
All Candidate Pool
novad query poolincentive all-candidate-pool
Example:
novad query poolincentive all-candidate-pool
Example output:
[
{
"poolId": "pool-1",
"poolContractAddress": "0xabcd..."
},
{
"poolId": "pool-2",
"poolContractAddress": "0x1234..."
}
]
Incentive Pool
novad query poolincentive incentive-pool [pool_id]
Example:
novad query poolincentive incentive-pool pool-1
Example Output:
{
"poolId": "pool-1",
"poolContractAddress": "0xabcd...",
"weight": 3
}
All Incentive Pool
novad query poolincentive all-incentive-pool
Example:
novad query poolincentive all-incentive-pool
Example output:
[
{
"poolId": "pool-1",
"poolContractAddress": "0xabcd...",
"weight": 3
},
{
"poolId": "pool-2",
"poolContractAddress": "0x1234...",
"weight": 5
}
]
Tx
Create Candidate Pool
novad tx poolincentive create-candidate-pool [pool_id] [pool_contract_address]
Create Incentive Pool
novad tx poolincentive create-incentive-pool [pool_id] [pool_contract_address]
Set Pool Weight
novad tx poolincentive set-pool-weight [pool_id] [new_weight]
Set Multiple Pool Weight
novad tx poolincentive set-multiple-pool-weight [pool_ids] [weights]