## Index

### Enumerations

- BlockchainMode

### Classes

- Asset
- Authority
- Blockchain
- BroadcastAPI
- Client
- DatabaseAPI
- HexBuffer
- Price
- PrivateKey
- PublicKey
- Signature

### Interfaces

- Account
- AccountCreateOperation
- AccountCreateWithDelegationOperation
- AccountUpdateOperation
- AccountWitnessProxyOperation
- AccountWitnessVoteOperation
- AppliedOperation
- AuthorityType
- BeneficiaryRoute
- BlockHeader
- BlockchainStreamOptions
- CancelTransferFromSavingsOperation
- ChainProperties
- ChallengeAuthorityOperation
- ChangeRecoveryAccountOperation
- ClaimRewardBalanceOperation
- ClientOptions
- Comment
- CommentOperation
- CommentOptionsOperation
- ConvertOperation
- CreateAccountOptions
- CustomBinaryOperation
- CustomJsonOperation
- CustomOperation
- DeclineVotingRightsOperation
- DelegateVestingSharesOperation
- DeleteCommentOperation
- Discussion
- DisqussionQuery
- DynamicGlobalProperties
- EscrowApproveOperation
- EscrowDisputeOperation
- EscrowReleaseOperation
- EscrowTransferOperation
- ExtendedAccount
- FeedPublishOperation
- LimitOrderCancelOperation
- LimitOrderCreate2Operation
- LimitOrderCreateOperation
- Operation
- PendingRequest
- Pow2Operation
- PowOperation
- ProveAuthorityOperation
- RPCCall
- RPCError
- RPCRequest
- RPCResponse
- RecoverAccountOperation
- ReportOverProductionOperation
- RequestAccountRecoveryOperation
- ResetAccountOperation
- SerializerOptions
- SetResetAccountOperation
- SetWithdrawVestingRouteOperation
- SignedBlock
- SignedBlockHeader
- SignedTransaction
- Transaction
- TransactionConfirmation
- TransferFromSavingsOperation
- TransferOperation
- TransferToSavingsOperation
- TransferToVestingOperation
- VestingDelegation
- VoteOperation
- WithdrawVestingOperation
- WitnessUpdateOperation

### Type aliases

- AssetSymbol
- Bignum
- DiscussionQueryCategory
- KeyRole
- OperationName
- Serializer
- VirtualOperationName

### Variables

- AuthoritySerializer
- BeneficiarySerializer
- ChainPropertiesSerializer
- DEFAULT_ADDRESS_PREFIX
- DEFAULT_CHAIN_ID
- NETWORK_ID
- OperationSerializers
- PriceSerializer
- SignedBlockHeaderSerializer
- TransactionSerializer
- VERSION
- fetch

### Functions

- ArraySerializer
- AssetSerializer
- BooleanSerializer
- BufferSerializer
- DateSerializer
- FlatMapSerializer
- Int16Serializer
- ObjectSerializer
- OperationDataSerializer
- OperationSerializer
- OptionalSerializer
- PublicKeySerializer
- StaticVariantSerializer
- StringSerializer
- UInt16Serializer
- UInt32Serializer
- VoidSerializer
- copy
- decodePrivate
- decodePublic
- defaultBackoff
- doubleSha256
- encodePrivate
- encodePublic
- getVestingSharePrice
- isCanonicalSignature
- iteratorStream
- retryingFetch
- ripemd160
- sha256
- signTransaction
- sleep
- waitForEvent

### Object literals

- Types
- cryptoUtils

## Type aliases

### AssetSymbol

AssetSymbol: "STEEM" | "VESTS" | "SBD"

- Defined in steem/asset.ts:42

Asset symbol string.

### Bignum

Bignum: string

- Defined in steem/misc.ts:41

Large number that may be unsafe to represent natively in JavaScript.

### DiscussionQueryCategory

DiscussionQueryCategory: "active" | "blog" | "cashout" | "children" | "comments" | "feed" | "hot" | "promoted" | "trending" | "votes" | "created"

- Defined in helpers/database.ts:49

Possible categories for `get_discussions_by_*`.

### KeyRole

KeyRole: "owner" | "active" | "posting" | "memo"

- Defined in crypto.ts:192

### OperationName

OperationName: "account_create" | "account_create_with_delegation" | "account_update" | "account_witness_proxy" | "account_witness_vote" | "cancel_transfer_from_savings" | "challenge_authority" | "change_recovery_account" | "claim_reward_balance" | "comment" | "comment_options" | "convert" | "custom" | "custom_binary" | "custom_json" | "decline_voting_rights" | "delegate_vesting_shares" | "delete_comment" | "escrow_approve" | "escrow_dispute" | "escrow_release" | "escrow_transfer" | "feed_publish" | "limit_order_cancel" | "limit_order_create" | "limit_order_create2" | "pow" | "pow2" | "prove_authority" | "recover_account" | "report_over_production" | "request_account_recovery" | "reset_account" | "set_reset_account" | "set_withdraw_vesting_route" | "transfer" | "transfer_from_savings" | "transfer_to_savings" | "transfer_to_vesting" | "vote" | "withdraw_vesting" | "witness_update"

- Defined in steem/operation.ts:46

Operation name.

### Serializer

Serializer: function

- Defined in steem/serializer.ts:46

#### Type declaration

- - (buffer: ByteBuffer, data: any, options: SerializerOptions): void

  - #### Parameters

    - ##### buffer: ByteBuffer

    - ##### data: any

    - ##### options: SerializerOptions

    #### Returns void

### VirtualOperationName

VirtualOperationName: "author_reward" | "comment_benefactor_reward" | "comment_payout_update" | "comment_reward" | "curation_reward" | "fill_convert_request" | "fill_order" | "fill_transfer_from_savings" | "fill_vesting_withdraw" | "hardfork" | "interest" | "liquidity_reward" | "return_vesting_delegation" | "shutdown_witness"

- Defined in steem/operation.ts:93

Virtual operation name.

## Variables

### AuthoritySerializer

AuthoritySerializer: (Anonymous function) = ObjectSerializer([['weight_threshold', UInt32Serializer],['account_auths', FlatMapSerializer(StringSerializer, UInt16Serializer)],['key_auths', FlatMapSerializer(PublicKeySerializer, UInt16Serializer)],])

- Defined in steem/serializer.ts:161

### BeneficiarySerializer

BeneficiarySerializer: (Anonymous function) = ObjectSerializer([['account', StringSerializer],['weight', UInt16Serializer],])

- Defined in steem/serializer.ts:167

### ChainPropertiesSerializer

ChainPropertiesSerializer: (Anonymous function) = ObjectSerializer([['account_creation_fee', AssetSerializer],['maximum_block_size', UInt32Serializer],['sbd_interest_rate', UInt16Serializer],])

- Defined in steem/serializer.ts:186

### DEFAULT_ADDRESS_PREFIX

DEFAULT_ADDRESS_PREFIX: "STM" = "STM"

- Defined in client.ts:58

Main steem network address prefix.

### DEFAULT_CHAIN_ID

DEFAULT_CHAIN_ID: Buffer = Buffer.from('0000000000000000000000000000000000000000000000000000000000000000', 'hex')

- Defined in client.ts:53

Main steem network chain id.

### NETWORK_ID

NETWORK_ID: Buffer = Buffer.from([0x80])

- Defined in crypto.ts:51

Network id used in WIF-encoding.

### OperationSerializers

OperationSerializers: object

- Defined in steem/serializer.ts:200

#### Type declaration

- ##### [name: string]: Serializer

### PriceSerializer

PriceSerializer: (Anonymous function) = ObjectSerializer([['base', AssetSerializer],['quote', AssetSerializer],])

- Defined in steem/serializer.ts:172

### SignedBlockHeaderSerializer

SignedBlockHeaderSerializer: (Anonymous function) = ObjectSerializer([['previous', BufferSerializer(20)],['timestamp', DateSerializer],['witness', StringSerializer],['transaction_merkle_root', BufferSerializer(20)],['extensions', ArraySerializer(VoidSerializer)],['witness_signature', BufferSerializer(65)],])

- Defined in steem/serializer.ts:177

### TransactionSerializer

TransactionSerializer: (Anonymous function) = ObjectSerializer([['ref_block_num', UInt16Serializer],['ref_block_prefix', UInt32Serializer],['expiration', DateSerializer],['operations', ArraySerializer(OperationSerializer)],['extensions', ArraySerializer(StringSerializer)],])

- Defined in steem/serializer.ts:512

### VERSION

VERSION: string = packageVersion

- Defined in client.ts:48

Library version.

### fetch

fetch: any = global['fetch']

- Defined in utils.ts:40

## Functions

### ArraySerializer

- ArraySerializer(itemSerializer: Serializer): (Anonymous function)

- - Defined in steem/serializer.ts:128

  #### Parameters

  - ##### itemSerializer: Serializer

  #### Returns (Anonymous function)

### AssetSerializer

- AssetSerializer(buffer: ByteBuffer, data: Asset | string | number): void

- - Defined in steem/serializer.ts:85

  Serialize asset.

  #### Parameters

  - ##### buffer: ByteBuffer

  - ##### data: Asset | string | number

  #### Returns void

### BooleanSerializer

- BooleanSerializer(buffer: ByteBuffer, data: boolean): void

- - Defined in steem/serializer.ts:68

  #### Parameters

  - ##### buffer: ByteBuffer

  - ##### data: boolean

  #### Returns void

### BufferSerializer

- BufferSerializer(size?: undefined | number): (Anonymous function)

- - Defined in steem/serializer.ts:103

  #### Parameters

  - ##### Optional size: undefined | number

  #### Returns (Anonymous function)

### DateSerializer

- DateSerializer(buffer: ByteBuffer, data: string): void

- - Defined in steem/serializer.ts:95

  #### Parameters

  - ##### buffer: ByteBuffer

  - ##### data: string

  #### Returns void

### FlatMapSerializer

- FlatMapSerializer(keySerializer: Serializer, valueSerializer: Serializer): (Anonymous function)

- - Defined in steem/serializer.ts:118

  #### Parameters

  - ##### keySerializer: Serializer

  - ##### valueSerializer: Serializer

  #### Returns (Anonymous function)

### Int16Serializer

- Int16Serializer(buffer: ByteBuffer, data: number): void

- - Defined in steem/serializer.ts:56

  #### Parameters

  - ##### buffer: ByteBuffer

  - ##### data: number

  #### Returns void

### ObjectSerializer

- ObjectSerializer(keySerializers: Array<[string, Serializer]>): (Anonymous function)

- - Defined in steem/serializer.ts:137

  #### Parameters

  - ##### keySerializers: Array<[string, Serializer]>

  #### Returns (Anonymous function)

### OperationDataSerializer

- OperationDataSerializer(operationId: number, definitions: Array<[string, Serializer]>): (Anonymous function)

- - Defined in steem/serializer.ts:192

  #### Parameters

  - ##### operationId: number

  - ##### definitions: Array<[string, Serializer]>

  #### Returns (Anonymous function)

### OperationSerializer

- OperationSerializer(buffer: ByteBuffer, operation: Operation, options: SerializerOptions): void

- - Defined in steem/serializer.ts:499

  #### Parameters

  - ##### buffer: ByteBuffer

  - ##### operation: Operation

  - ##### options: SerializerOptions

  #### Returns void

### OptionalSerializer

- OptionalSerializer(valueSerializer: Serializer): (Anonymous function)

- - Defined in steem/serializer.ts:150

  #### Parameters

  - ##### valueSerializer: Serializer

  #### Returns (Anonymous function)

### PublicKeySerializer

- PublicKeySerializer(buffer: ByteBuffer, data: PublicKey | string | Buffer, options: SerializerOptions): void

- - Defined in steem/serializer.ts:99

  #### Parameters

  - ##### buffer: ByteBuffer

  - ##### data: PublicKey | string | Buffer

  - ##### options: SerializerOptions

  #### Returns void

### StaticVariantSerializer

- StaticVariantSerializer(itemSerializers: Serializer[]): (Anonymous function)

- - Defined in steem/serializer.ts:72

  #### Parameters

  - ##### itemSerializers: Serializer[]

  #### Returns (Anonymous function)

### StringSerializer

- StringSerializer(buffer: ByteBuffer, data: string): void

- - Defined in steem/serializer.ts:52

  #### Parameters

  - ##### buffer: ByteBuffer

  - ##### data: string

  #### Returns void

### UInt16Serializer

- UInt16Serializer(buffer: ByteBuffer, data: number): void

- - Defined in steem/serializer.ts:60

  #### Parameters

  - ##### buffer: ByteBuffer

  - ##### data: number

  #### Returns void

### UInt32Serializer

- UInt32Serializer(buffer: ByteBuffer, data: number): void

- - Defined in steem/serializer.ts:64

  #### Parameters

  - ##### buffer: ByteBuffer

  - ##### data: number

  #### Returns void

### VoidSerializer

- VoidSerializer(buffer: ByteBuffer): never

- - Defined in steem/serializer.ts:48

  #### Parameters

  - ##### buffer: ByteBuffer

  #### Returns never

### copy

- copy<T>(object: T): T

- - Defined in utils.ts:84

  Return a deep copy of a JSON-serializable object.

  #### Type parameters

  - #### T

  #### Parameters

  - ##### object: T

  #### Returns T

### decodePrivate

- decodePrivate(encodedKey: string): Buffer

- - Defined in crypto.ts:108

  Decode bs58+doubleSha256-checksum encoded private key.

  #### Parameters

  - ##### encodedKey: string

  #### Returns Buffer

### decodePublic

- decodePublic(encodedKey: string, prefix: string): Buffer

- - Defined in crypto.ts:85

  Decode bs58+ripemd160-checksum encoded public key.

  #### Parameters

  - ##### encodedKey: string

  - ##### prefix: string

  #### Returns Buffer

### defaultBackoff

- defaultBackoff(tries: number): number

- - Defined in client.ts:299

  Default backoff function. `min(tries*10^2, 10 seconds)`

  #### Parameters

  - ##### tries: number

  #### Returns number

### doubleSha256

- doubleSha256(input: Buffer | string): Buffer

- - Defined in crypto.ts:70

  Return 2-round sha256 hash of input.

  #### Parameters

  - ##### input: Buffer | string

  #### Returns Buffer

### encodePrivate

- encodePrivate(key: Buffer): string

- - Defined in crypto.ts:99

  Encode bs58+doubleSha256-checksum private key.

  #### Parameters

  - ##### key: Buffer

  #### Returns string

### encodePublic

- encodePublic(key: Buffer, prefix: string): string

- - Defined in crypto.ts:77

  Encode public key with bs58+ripemd160-checksum.

  #### Parameters

  - ##### key: Buffer

  - ##### prefix: string

  #### Returns string

### getVestingSharePrice

- getVestingSharePrice(props: DynamicGlobalProperties): Price

- - Defined in steem/misc.ts:235

  Return the vesting share price.

  #### Parameters

  - ##### props: DynamicGlobalProperties

  #### Returns Price

### isCanonicalSignature

- isCanonicalSignature(signature: Buffer): boolean

- - Defined in crypto.ts:121

  Return true if signature is canonical, otherwise false.

  #### Parameters

  - ##### signature: Buffer

  #### Returns boolean

### iteratorStream

- iteratorStream<T>(iterator: AsyncIterableIterator<T>): ReadableStream

- - Defined in utils.ts:63

  Return a stream that emits iterator values.

  #### Type parameters

  - #### T

  #### Parameters

  - ##### iterator: AsyncIterableIterator<T>

  #### Returns ReadableStream

### retryingFetch

- retryingFetch(url: string, opts: any, timeout: number, backoff: function, fetchTimeout?: undefined | function): Promise<any>

- - Defined in utils.ts:91

  Fetch API wrapper that retries until timeout is reached.

  #### Parameters

  - ##### url: string

  - ##### opts: any

  - ##### timeout: number

  - ##### backoff: function

    - - (tries: number): number

      - #### Parameters

        - ##### tries: number

        #### Returns number

  - ##### Optional fetchTimeout: undefined | function

  #### Returns Promise<any>

### ripemd160

- ripemd160(input: Buffer | string): Buffer

- - Defined in crypto.ts:56

  Return ripemd160 hash of input.

  #### Parameters

  - ##### input: Buffer | string

  #### Returns Buffer

### sha256

- sha256(input: Buffer | string): Buffer

- - Defined in crypto.ts:63

  Return sha256 hash of input.

  #### Parameters

  - ##### input: Buffer | string

  #### Returns Buffer

### signTransaction

- signTransaction(transaction: Transaction, keys: PrivateKey | PrivateKey[], options: object): SignedTransaction

- - Defined in crypto.ts:322

  Return copy of transaction with signature appended to signatures array.

  #### Parameters

  - ##### transaction: Transaction

    Transaction to sign.

  - ##### keys: PrivateKey | PrivateKey[]

    Key(s) to sign transaction with.

  - ##### options: object

    Chain id and address prefix, compatible with Client.

    - ##### addressPrefix: string

    - ##### chainId: Buffer

  #### Returns SignedTransaction

### sleep

- sleep(ms: number): Promise<void>

- - Defined in utils.ts:54

  Sleep for N milliseconds.

  #### Parameters

  - ##### ms: number

  #### Returns Promise<void>

### waitForEvent

- waitForEvent<T>(emitter: EventEmitter, eventName: string | symbol): Promise<T>

- - Defined in utils.ts:45

  Return a promise that will resove when a specific event is emitted.

  #### Type parameters

  - #### T

  #### Parameters

  - ##### emitter: EventEmitter

  - ##### eventName: string | symbol

  #### Returns Promise<T>

## Object literals

### Types

Types: object

- Defined in steem/serializer.ts:520

### Array

Array: ArraySerializer = ArraySerializer

- Defined in steem/serializer.ts:521

### Asset

Asset: AssetSerializer = AssetSerializer

- Defined in steem/serializer.ts:522

### Authority

Authority: (Anonymous function) = AuthoritySerializer

- Defined in steem/serializer.ts:523

### Boolean

Boolean: BooleanSerializer = BooleanSerializer

- Defined in steem/serializer.ts:524

### Buffer

Buffer: BufferSerializer = BufferSerializer

- Defined in steem/serializer.ts:525

### Date

Date: DateSerializer = DateSerializer

- Defined in steem/serializer.ts:526

### FlatMap

FlatMap: FlatMapSerializer = FlatMapSerializer

- Defined in steem/serializer.ts:527

### Int16

Int16: Int16Serializer = Int16Serializer

- Defined in steem/serializer.ts:528

### Object

Object: ObjectSerializer = ObjectSerializer

- Defined in steem/serializer.ts:529

### Operation

Operation: OperationSerializer = OperationSerializer

- Defined in steem/serializer.ts:530

### Optional

Optional: OptionalSerializer = OptionalSerializer

- Defined in steem/serializer.ts:531

### Price

Price: (Anonymous function) = PriceSerializer

- Defined in steem/serializer.ts:532

### PublicKey

PublicKey: PublicKeySerializer = PublicKeySerializer

- Defined in steem/serializer.ts:533

### StaticVariant

StaticVariant: StaticVariantSerializer = StaticVariantSerializer

- Defined in steem/serializer.ts:534

### String

String: StringSerializer = StringSerializer

- Defined in steem/serializer.ts:535

### Transaction

Transaction: (Anonymous function) = TransactionSerializer

- Defined in steem/serializer.ts:536

### UInt16

UInt16: UInt16Serializer = UInt16Serializer

- Defined in steem/serializer.ts:537

### UInt32

UInt32: UInt32Serializer = UInt32Serializer

- Defined in steem/serializer.ts:538

### Void

Void: VoidSerializer = VoidSerializer

- Defined in steem/serializer.ts:539

### cryptoUtils

cryptoUtils: object

- Defined in crypto.ts:351

Misc crypto utility functions.

### decodePrivate

decodePrivate: decodePrivate

- Defined in crypto.ts:352

### doubleSha256

doubleSha256: doubleSha256

- Defined in crypto.ts:353

### encodePrivate

encodePrivate: encodePrivate

- Defined in crypto.ts:354

### encodePublic

encodePublic: encodePublic

- Defined in crypto.ts:355

### isCanonicalSignature

isCanonicalSignature: isCanonicalSignature

- Defined in crypto.ts:356

### ripemd160

ripemd160: ripemd160

- Defined in crypto.ts:357

### sha256

sha256: sha256

- Defined in crypto.ts:358

### signTransaction

signTransaction: signTransaction

- Defined in crypto.ts:359

Generated using TypeDoc