627 B
627 B
Functions
encoder
▸ encoder(input: any): Uint8Array
Defined in encoder/index.ts:23
name: encoder
summary: Encodes the input value into RLP.
description: From an input, calculate the RLP and return the result as a Uint8Array.
example:
import { encode } from '@polkadot/util-rlp';
encode('dog'); // => [0x83, 0x64, 0x6f, 0x67]
Parameters:
| Name | Type |
|---|---|
| input | any |
Returns: Uint8Array