## Objects
objectBuffer | hexobjectobjectobjectobjectobjectobjectobjectobjectobjectobjectobjectobjectobjectobjectobjectobjectobjectobject
**Kind**: global namespace
* [eos](#eos) : object
* [.getInfo()](#eos.getInfo) ⇒ string
* [.getAccount(account_name)](#eos.getAccount) ⇒ string
* [.getCode(account_name, [code_as_wasm])](#eos.getCode) ⇒ [getCodeResult](#getCodeResult)
* [.getCodeHash(account_name)](#eos.getCodeHash) ⇒ [getCodeHashResult](#getCodeHashResult)
* [.getAbi(account_name)](#eos.getAbi) ⇒ [getAbiResult](#getAbiResult)
* [.getRawCodeAndAbi(account_name)](#eos.getRawCodeAndAbi) ⇒ [getRawCodeAndAbiResult](#getRawCodeAndAbiResult)
* [.abiJsonToBin(code, action, args)](#eos.abiJsonToBin) ⇒ [abiJsonToBinResult](#abiJsonToBinResult)
* [.abiBinToJson(code, action, binargs)](#eos.abiBinToJson) ⇒ [abiBinToJsonResult](#abiBinToJsonResult)
* [.getRequiredKeys(transaction, available_keys)](#eos.getRequiredKeys) ⇒ Set.<public_key>
* [.getBlock(block_num_or_id)](#eos.getBlock) ⇒ variant
* [.getBlockHeaderState(block_num_or_id)](#eos.getBlockHeaderState) ⇒ string
* [.getTableRows([json], code, scope, table, table_key, [lower_bound], [upper_bound], [limit], key_type, index_position)](#eos.getTableRows) ⇒ [getTableRowsResult](#getTableRowsResult)
* [.getCurrencyBalance(code, account, symbol)](#eos.getCurrencyBalance) ⇒ Array.<asset>
* [.getCurrencyStats(code, symbol)](#eos.getCurrencyStats) ⇒ [getCurrencyStatsResult](#getCurrencyStatsResult)
* [.getProducers([json], lower_bound, [limit])](#eos.getProducers) ⇒ [getProducersResult](#getProducersResult)
* [.getProducerSchedule()](#eos.getProducerSchedule) ⇒ [getProducerScheduleResult](#getProducerScheduleResult)
* [.getScheduledTransactions([json], lower_bound, [limit])](#eos.getScheduledTransactions) ⇒ [getScheduledTransactionsResult](#getScheduledTransactionsResult)
* [.pushBlock(block)](#eos.pushBlock)
* [.pushTransaction(signed_transaction)](#eos.pushTransaction) ⇒ [pushTransactionResult](#pushTransactionResult)
* [.pushTransactions(signed_transaction)](#eos.pushTransactions) ⇒ vector.<push_transaction.results>
* [.getActions(account_name, [pos], [offset])](#eos.getActions) ⇒ [getActionsResult](#getActionsResult)
* [.getTransaction(id, [block_num_hint])](#eos.getTransaction) ⇒ [getTransactionResult](#getTransactionResult)
* [.getKeyAccounts(public_key)](#eos.getKeyAccounts) ⇒ [getKeyAccountsResult](#getKeyAccountsResult)
* [.getControlledAccounts(controlling_account)](#eos.getControlledAccounts) ⇒ [getControlledAccountsResult](#getControlledAccountsResult)
### eos.getInfo() ⇒ string
Return general network information.
**Kind**: static method of [eos](#eos)
**Example**
```js
url_path: `/v1/chain/get_info`
```
**Example**
```js
eos.getInfo({})
```
### eos.getAccount(account_name) ⇒ string
Fetch a blockchain account
**Kind**: static method of [eos](#eos)
| Param | Type |
| --- | --- |
| account_name | name |
**Example**
```js
url_path: `/v1/chain/get_account`
```
**Example**
```js
eos.getAccount(account_name)
```
### eos.getCode(account_name, [code_as_wasm]) ⇒ [getCodeResult](#getCodeResult)
Fetch smart contract code
**Kind**: static method of [eos](#eos)
| Param | Type | Default |
| --- | --- | --- |
| account_name | name | |
| [code_as_wasm] | bool | false |
**Example**
```js
url_path: `/v1/chain/get_code`
```
**Example**
```js
eos.getCode(account_name, code_as_wasm)
```
### eos.getCodeHash(account_name) ⇒ [getCodeHashResult](#getCodeHashResult)
**Kind**: static method of [eos](#eos)
| Param | Type |
| --- | --- |
| account_name | name |
**Example**
```js
url_path: `/v1/chain/get_code_hash`
```
**Example**
```js
eos.getCodeHash(account_name)
```
### eos.getAbi(account_name) ⇒ [getAbiResult](#getAbiResult)
**Kind**: static method of [eos](#eos)
| Param | Type |
| --- | --- |
| account_name | name |
**Example**
```js
url_path: `/v1/chain/get_abi`
```
**Example**
```js
eos.getAbi(account_name)
```
### eos.getRawCodeAndAbi(account_name) ⇒ [getRawCodeAndAbiResult](#getRawCodeAndAbiResult)
**Kind**: static method of [eos](#eos)
| Param | Type |
| --- | --- |
| account_name | name |
**Example**
```js
url_path: `/v1/chain/get_raw_code_and_abi`
```
**Example**
```js
eos.getRawCodeAndAbi(account_name)
```
### eos.abiJsonToBin(code, action, args) ⇒ [abiJsonToBinResult](#abiJsonToBinResult)
Manually serialize json into binary hex. The binayargs is usually stored in Action.data.
**Kind**: static method of [eos](#eos)
| Param | Type |
| --- | --- |
| code | name |
| action | name |
| args | [bytes](#bytes) |
**Example**
```js
url_path: `/v1/chain/abi_json_to_bin`
```
**Example**
```js
eos.abiJsonToBin(code, action, args)
```
### eos.abiBinToJson(code, action, binargs) ⇒ [abiBinToJsonResult](#abiBinToJsonResult)
Convert bin hex back into Abi json definition.
**Kind**: static method of [eos](#eos)
| Param | Type |
| --- | --- |
| code | name |
| action | name |
| binargs | [bytes](#bytes) |
**Example**
```js
url_path: `/v1/chain/abi_bin_to_json`
```
**Example**
```js
eos.abiBinToJson(code, action, binargs)
```
### eos.getRequiredKeys(transaction, available_keys) ⇒ Set.<public_key>
**Kind**: static method of [eos](#eos)
| Param | Type |
| --- | --- |
| transaction | transaction |
| available_keys | set.<public_key> |
**Example**
```js
url_path: `/v1/chain/get_required_keys`
```
**Example**
```js
eos.getRequiredKeys(transaction, available_keys)
```
### eos.getBlock(block_num_or_id) ⇒ variant
Fetch a block from the blockchain.
**Kind**: static method of [eos](#eos)
| Param | Type |
| --- | --- |
| block_num_or_id | string |
**Example**
```js
url_path: `/v1/chain/get_block`
```
**Example**
```js
eos.getBlock(block_num_or_id)
```
### eos.getBlockHeaderState(block_num_or_id) ⇒ string
Fetch the minimum state necessary to validate transaction headers.
**Kind**: static method of [eos](#eos)
| Param | Type |
| --- | --- |
| block_num_or_id | string |
**Example**
```js
url_path: `/v1/chain/get_block_header_state`
```
**Example**
```js
eos.getBlockHeaderState(block_num_or_id)
```
### eos.getTableRows([json], code, scope, table, table_key, [lower_bound], [upper_bound], [limit], key_type, index_position) ⇒ [getTableRowsResult](#getTableRowsResult)
Fetch smart contract data from an account.
**Kind**: static method of [eos](#eos)
| Param | Type | Default | Description |
| --- | --- | --- | --- |
| [json] | bool | false | |
| code | name | | |
| scope | string | | |
| table | name | | |
| table_key | string | | |
| [lower_bound] | string | 0 | |
| [upper_bound] | string | -1 | |
| [limit] | uint32 | 10 | |
| key_type | string | | The key type of --index, primary only supports (i64), all others support (i64, i128, i256, float64, float128). Special type 'name' indicates an account name. |
| index_position | string | | 1 - primary (first), 2 - secondary index (in order defined by multi_index), 3 - third index, etc |
**Example**
```js
url_path: `/v1/chain/get_table_rows`
```
**Example**
```js
eos.getTableRows(json, code, scope, table, table_key, lower_bound, upper_bound, limit, key_type, index_position)
```
### eos.getCurrencyBalance(code, account, symbol) ⇒ Array.<asset>
**Kind**: static method of [eos](#eos)
| Param | Type |
| --- | --- |
| code | name |
| account | name |
| symbol | optional.<string> |
**Example**
```js
url_path: `/v1/chain/get_currency_balance`
```
**Example**
```js
eos.getCurrencyBalance(code, account, symbol)
```
### eos.getCurrencyStats(code, symbol) ⇒ [getCurrencyStatsResult](#getCurrencyStatsResult)
**Kind**: static method of [eos](#eos)
| Param | Type |
| --- | --- |
| code | name |
| symbol | string |
**Example**
```js
url_path: `/v1/chain/get_currency_stats`
```
**Example**
```js
eos.getCurrencyStats(code, symbol)
```
### eos.getProducers([json], lower_bound, [limit]) ⇒ [getProducersResult](#getProducersResult)
Fetch smart contract data from producer.
**Kind**: static method of [eos](#eos)
| Param | Type | Default |
| --- | --- | --- |
| [json] | bool | false |
| lower_bound | string | |
| [limit] | uint32 | 50 |
**Example**
```js
url_path: `/v1/chain/get_producers`
```
**Example**
```js
eos.getProducers(json, lower_bound, limit)
```
### eos.getProducerSchedule() ⇒ [getProducerScheduleResult](#getProducerScheduleResult)
**Kind**: static method of [eos](#eos)
**Example**
```js
url_path: `/v1/chain/get_producer_schedule`
```
**Example**
```js
eos.getProducerSchedule()
```
### eos.getScheduledTransactions([json], lower_bound, [limit]) ⇒ [getScheduledTransactionsResult](#getScheduledTransactionsResult)
**Kind**: static method of [eos](#eos)
| Param | Type | Default | Description |
| --- | --- | --- | --- |
| [json] | bool | false | |
| lower_bound | string | | timestamp OR transaction ID |
| [limit] | uint32 | 50 | |
**Example**
```js
url_path: `/v1/chain/get_scheduled_transactions`
```
**Example**
```js
eos.getScheduledTransactions(json, lower_bound, limit)
```
### eos.pushBlock(block)
Append a block to the chain database.
**Kind**: static method of [eos](#eos)
| Param | Type |
| --- | --- |
| block | signed_block |
**Example**
```js
url_path: `/v1/chain/push_block`
```
**Example**
```js
eos.pushBlock(block)
```
### eos.pushTransaction(signed_transaction) ⇒ [pushTransactionResult](#pushTransactionResult)
Attempts to push the transaction into the pending queue.
**Kind**: static method of [eos](#eos)
| Param | Type |
| --- | --- |
| signed_transaction | signed_transaction |
**Example**
```js
url_path: `/v1/chain/push_transaction`
```
**Example**
```js
eos.pushTransaction(signed_transaction)
```
### eos.pushTransactions(signed_transaction) ⇒ vector.<push_transaction.results>
Attempts to push transactions into the pending queue.
**Kind**: static method of [eos](#eos)
| Param | Type |
| --- | --- |
| signed_transaction | signed_transaction |
**Example**
```js
url_path: `/v1/chain/push_transactions`
```
**Example**
```js
eos.pushTransactions(signed_transaction)
```
### eos.getActions(account_name, [pos], [offset]) ⇒ [getActionsResult](#getActionsResult)
**Kind**: static method of [eos](#eos)
| Param | Type | Description |
| --- | --- | --- |
| account_name | account_name | |
| [pos] | int32 | An absolute sequence positon -1 is the end/last action |
| [offset] | int32 | The number of actions relative to pos, negative numbers return [pos-offset,pos), positive numbers return [pos,pos+offset) |
**Example**
```js
url_path: `/v1/history/get_actions`
```
**Example**
```js
eos.getActions(account_name, pos, offset)
```
### eos.getTransaction(id, [block_num_hint]) ⇒ [getTransactionResult](#getTransactionResult)
Retrieve a transaction from the blockchain.
**Kind**: static method of [eos](#eos)
| Param | Type | Default | Description |
| --- | --- | --- | --- |
| id | transaction_id_type | | |
| [block_num_hint] | uint32 | 0 | A non-zero block number allows shorter transaction IDs (8 hex, 4 bytes) |
**Example**
```js
url_path: `/v1/history/get_transaction`
```
**Example**
```js
eos.getTransaction(id, block_num_hint)
```
### eos.getKeyAccounts(public_key) ⇒ [getKeyAccountsResult](#getKeyAccountsResult)
**Kind**: static method of [eos](#eos)
| Param | Type |
| --- | --- |
| public_key | public_key_type |
**Example**
```js
url_path: `/v1/history/get_key_accounts`
```
**Example**
```js
eos.getKeyAccounts(public_key)
```
### eos.getControlledAccounts(controlling_account) ⇒ [getControlledAccountsResult](#getControlledAccountsResult)
**Kind**: static method of [eos](#eos)
| Param | Type |
| --- | --- |
| controlling_account | account_name |
**Example**
```js
url_path: `/v1/history/get_controlled_accounts`
```
**Example**
```js
eos.getControlledAccounts(controlling_account)
```
## bytes : Buffer \| hex
**Kind**: global typedef
## getCodeResult : object
**Kind**: global typedef
**Properties**
| Name | Type |
| --- | --- |
| account_name | name |
| wast | string |
| wasm | string |
| code_hash | sha256 |
| abi | optional.<abi_def> |
## getCodeHashResult : object
**Kind**: global typedef
**Properties**
| Name | Type |
| --- | --- |
| account_name | name |
| code_hash | sha256 |
## getAbiResult : object
**Kind**: global typedef
**Properties**
| Name | Type |
| --- | --- |
| account_name | name |
| [abi] | abi_def |
## getRawCodeAndAbiResult : object
**Kind**: global typedef
**Properties**
| Name | Type |
| --- | --- |
| account_name | name |
| wasm | [bytes](#bytes) |
| [abi] | abi_def |
## abiJsonToBinResult : object
**Kind**: global typedef
**Properties**
| Name | Type |
| --- | --- |
| binargs | [bytes](#bytes) |
## abiBinToJsonResult : object
**Kind**: global typedef
**Properties**
| Name | Type |
| --- | --- |
| args | [bytes](#bytes) |
## getTableRowsResult : object
**Kind**: global typedef
**Properties**
| Name | Type | Description |
| --- | --- | --- |
| rows | vector | One row per item, either encoded as hex String or JSON object |
| more | bool | True if last element in data is not the end and sizeof data() < limit |
## getCurrencyStatsResult : object
**Kind**: global typedef
**Properties**
| Name | Type |
| --- | --- |
| supply | asset |
| max_supply | asset |
| issuer | account_name |
## getProducersResult : object
**Kind**: global typedef
**Properties**
| Name | Type | Description |
| --- | --- | --- |
| rows | vector | one row per item, either encoded as hex String or JSON object |
| total_producer_vote_weight | double | total vote |
| more | string | fill lower_bound with this value to fetch more rows |
## getProducerScheduleResult : object
**Kind**: global typedef
**Properties**
| Name | Type |
| --- | --- |
| vector | proposed |
## getScheduledTransactionsResult : object
**Kind**: global typedef
**Properties**
| Name | Type | Description |
| --- | --- | --- |
| vector | transactions | |
| more | string | fill lower_bound with this to fetch next set of transactions |
## pushBlockResult : object
**Kind**: global typedef
## pushTransactionResult : object
**Kind**: global typedef
**Properties**
| Name | Type |
| --- | --- |
| transaction_id | fixed_bytes32 |
| processed | [bytes](#bytes) |
## getActionsResult : object
**Kind**: global typedef
**Properties**
| Name | Type |
| --- | --- |
| actions | Array.<ordered_action_result> |
| last_irreversible_block | uint32 |
| [time_limit_exceeded_error] | bool |
## getTransactionResult : object
**Kind**: global typedef
**Properties**
| Name | Type |
| --- | --- |
| id | transaction_id_type |
| trx | variant |
| block_time | block_timestamp_type |
| block_num | uint32 |
| last_irreversible_block | uint32 |
| traces | Array.<variant> |
## getKeyAccountsResult : object
**Kind**: global typedef
**Properties**
| Name | Type |
| --- | --- |
| account_names | Array.<account_name> |
## getControlledAccountsResult : object
**Kind**: global typedef
**Properties**
| Name | Type |
| --- | --- |
| controlled_accounts | Array.<account_name> |