679 B
679 B
Functions
encoder
▸ encoder(input: any): Uint8Array
Defined in encoder/index.ts:24
name: encoder
signature: encoder (input: any): Uint8Array
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:
| Param | Type |
|---|---|
| input | any |
Returns: Uint8Array