diff --git a/src/RPC/Network.ts b/src/RPC/Network.ts index 515a220..baada46 100644 --- a/src/RPC/Network.ts +++ b/src/RPC/Network.ts @@ -1,5 +1,6 @@ import { Block, BlockWithTX } from '../contracts/block'; import { BlockchainInfo } from '../contracts/blockchainInfo'; +import { BurnReport } from '../contracts/burnReport'; import { CurrentTime } from '../contracts/currentTime'; import { RPCBase } from '../RPCBase'; @@ -141,4 +142,14 @@ export class Network extends RPCBase { public async getBlockHash(index: number): Promise { return this.call('getblockhash', index); } + + /** + * Scan for and aggregate network-wide amounts for provably-destroyed outputs. + * + * @returns {Promise} + * @memberof Network + */ + public async getBurnReport(): Promise { + return this.call('getburnreport'); + } } diff --git a/src/contracts/burnReport.ts b/src/contracts/burnReport.ts new file mode 100644 index 0000000..4848961 --- /dev/null +++ b/src/contracts/burnReport.ts @@ -0,0 +1,13 @@ +export interface BurnReport { + total: number; + voluntary: number; + contracts: { + beacon: number; + message: number; + poll: number; + project: number; + protocol: number; + scraper: number; + vote: number; + } +}