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
connect()→PAYOUT- If
PAYOUT !== OPERATOR, customer signsMsgAuthorizeOperator - New node:
PAYOUT_RECIPIENTin Docker. Existing:hoped tx incentives update-node - Optional
MsgSendsweep of leftover operatoruhope
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_summaryMsgs
| Type URL | Signer |
|---|---|
/hope.incentives.v1.MsgAuthorizeOperator | payout |
/hope.incentives.v1.MsgRevokeOperatorAuthorization | payout |
/hope.incentives.v1.MsgUpdateNode | operator (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