Move to lerna repo (#19)
* Pull api-* packages into lerna repo * Bootstrap with hoist * Update jest alias config * Add api-jsonrpc * Pull in jsonrpc * Update badges * Don't hoist, use workspaces * .eslintrc to root * Cleanups, build from root * Shorthand commands * Update to @polkadot/dev 0.9.1 * Update description
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
// ISC, Copyright 2017 Jaco Greeff
|
||||
// @flow
|
||||
|
||||
import type { InterfaceMethodDefinition } from '../types';
|
||||
|
||||
/**
|
||||
@name getHeader
|
||||
@signature chain_getHeader (hash: HeaderHash): Header
|
||||
@summary Retrieves the header for a specific block.
|
||||
@description
|
||||
Given a block header specified by `hash`, return the full block `Header` information.
|
||||
*/
|
||||
module.exports = ({
|
||||
inputs: [
|
||||
{
|
||||
name: 'hash',
|
||||
type: 'HeaderHash'
|
||||
}
|
||||
],
|
||||
output: { type: 'Header' }
|
||||
}: InterfaceMethodDefinition);
|
||||
Reference in New Issue
Block a user