Hope
Modules

Docs

Incentives

Hosted nodes, payout authorization, update-node, rewards.

Two keys: operator (hot, on the box) and payout (customer Hope Wallet). Never collect the customer phrase.

Order

  1. connect()PAYOUT
  2. If PAYOUT !== OPERATOR, customer signs MsgAuthorizeOperator
  3. New node: PAYOUT_RECIPIENT in Docker. Existing: hoped tx incentives update-node
  4. Optional MsgSend sweep of leftover operator uhope

Self-authorize fails ErrSelfAuthorization. Duplicate pair is ErrAuthorizationExists — treat as OK.

Queries

GET /hope/incentives/v1/params
GET /hope/incentives/v1/node/{operator}
GET /hope/incentives/v1/nodes
GET /hope/incentives/v1/operator_authorizations/{payout_recipient}
GET /hope/incentives/v1/estimated_daily_payout

curl -sS https://test-gateway.hopenetwork.io/api/hope/incentives/v1/network_summary

Msgs

Type URLSigner
/hope.incentives.v1.MsgAuthorizeOperatorpayout
/hope.incentives.v1.MsgRevokeOperatorAuthorizationpayout
/hope.incentives.v1.MsgUpdateNodeoperator (hoped on the box)
messages={[{
  typeUrl: '/hope.incentives.v1.MsgAuthorizeOperator',
  value: { payoutRecipient, operator, label: 'hosted' },
}]}
docker exec hope-peer hoped tx incentives update-node "" \
  --payout-recipient hope1… --from operator \
  --chain-id hope-testnet-2 --sign-mode pq-direct -y

Query incentives · Authorize in Tx tool · Wallet SDK

On this page