RPC Miner commands
miner/blockTemplateStream
Streams block templates from the chain for mining blocks
Request
undefined
Response
{ header: { sequence: number previousBlockHash: string noteCommitment: string transactionCommitment: string target: string randomness: string timestamp: number graffiti: string } transactions: string[] previousBlockInfo?: { target: string timestamp: number } }
miner/submitBlock
Submit block templates to the mining manager
Request
{ header: { sequence: number previousBlockHash: string noteCommitment: string transactionCommitment: string target: string randomness: string timestamp: number graffiti: string } transactions: string[] previousBlockInfo?: { target: string timestamp: number } }
Response
{ added: boolean reason: | 'UNKNOWN_REQUEST' | 'CHAIN_CHANGED' | 'INVALID_BLOCK' | 'ADD_FAILED' | 'FORK' | 'SUCCESS' }