Direct commands execute allocation operations immediately on the blockchain, bypassing the action queue and the reconciliation loop. Use these when you need instant execution without waiting for the queue cycle.
Note: Rules only drive automatic allocation decisions in AUTO and OVERSIGHT modes. In MANUAL mode, the reconciliation loop is skipped entirely.
View current allocations:
graph indexer allocations get --network <network>
graph indexer allocations get --status active --network <network>
graph indexer allocations get --status closed --network <network>
graph indexer allocations get --allocation <allocation-id> --network <network>Options:
-n, --network- Protocol network (mainnet, arbitrum-one, sepolia, arbitrum-sepolia) required--status- Filter by status:activeorclosed--allocation- Get a specific allocation by ID-o, --output- Output format:table(default),json, oryaml
Open a new allocation to a subgraph deployment:
graph indexer allocations create <deployment-id> <amount> [index-node] --network <network>Arguments:
deployment-id- Subgraph deployment ID (bytes32 or IPFS hash)amount- Amount of GRT to allocateindex-node- (optional) Specific index node to use
Options:
-n, --network- Protocol network required-o, --output- Output format
Example:
graph indexer allocations create QmXa1b2c3d4e5f... 10000 --network arbitrum-oneClose an existing allocation:
graph indexer allocations close <allocation-id> [poi] [block-number] [public-poi] --network <network>Arguments:
allocation-id- The allocation ID to closepoi- (optional) Proof of indexingblock-number- (optional, Horizon only) Block number the POI was computed atpublic-poi- (optional, Horizon only) Public POI at the same block height
Options:
-n, --network- Protocol network required-f, --force- Bypass POI accuracy checks-o, --output- Output format
Example:
graph indexer allocations close 0x1234...abcd --network arbitrum-one
graph indexer allocations close 0x1234...abcd 0xpoi... --force --network arbitrum-oneAtomically close an allocation and open a new one:
graph indexer allocations reallocate <allocation-id> <amount> [poi] [block-number] [public-poi] --network <network>Arguments:
allocation-id- The allocation to closeamount- Amount of GRT for the new allocationpoi- (optional) Proof of indexingblock-number- (optional, Horizon only) Block numberpublic-poi- (optional, Horizon only) Public POI
Options:
-n, --network- Protocol network required-f, --force- Bypass POI accuracy checks-o, --output- Output format
Example:
graph indexer allocations reallocate 0x1234...abcd 15000 --network arbitrum-oneCollect indexing rewards by presenting a POI without closing the allocation:
graph indexer allocations present-poi <allocation-id> [poi] [block-number] [public-poi] --network <network>Arguments:
allocation-id- The allocationpoi- (optional) Proof of indexingblock-number- (optional) Block number the POI was computed atpublic-poi- (optional) Public POI
Options:
-n, --network- Protocol network required-f, --force- Bypass POI accuracy checks-o, --output- Output format
Example:
graph indexer allocations present-poi 0x1234...abcd --network arbitrum-oneChange the allocated stake without closing the allocation:
graph indexer allocations resize <allocation-id> <amount> --network <network>Arguments:
allocation-id- The allocation to resizeamount- New allocation amount
Options:
-n, --network- Protocol network required-o, --output- Output format
Example:
graph indexer allocations resize 0x1234...abcd 20000 --network arbitrum-oneTrigger TAP (Timeline Aggregation Protocol) receipt collection for an allocation. This is a separate operation from allocation management - it triggers the collection of query fee receipts, not an allocation action.
Note: Unlike other commands on this page, collect cannot be queued via the action queue. It always executes immediately.
graph indexer allocations collect <allocation-id> --network <network>