# octacore-test

> Welcome_to_the_API_documentation_for_our_blockchain_data_serviceOur_service_allows_users_to_access_and_query_data_from_various_blockchain_networks_through_a_set_of_easy_to_use_API_endpoints__Whether_youre_looking_for_transaction_history_block_information_

Latest version **1.0.5** (published 2023-07-21) · Apache 2.0 license · 0 weekly downloads

## Install

```sh
npm install octacore-test
pnpm add octacore-test
yarn add octacore-test
bun add octacore-test
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2023-07-21 |
| First published | 2023-05-23 |
| Weekly downloads | 0 |
| License | Apache 2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 11 |
| Unpacked size | 357.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | afraz6434 |

## Links

- npm: https://www.npmjs.com/package/octacore-test
- npm.io page: https://npm.io/package/octacore-test

## Dependencies (11)

- [web3](https://npm.io/package/web3.md) ^4.0.3
- [crypto](https://npm.io/package/crypto.md) ^1.0.1
- [crypto-js](https://npm.io/package/crypto-js.md) ^4.1.1
- [superagent](https://npm.io/package/superagent.md) 3.7.0
- [querystring](https://npm.io/package/querystring.md) 0.2.0
- [@web3auth/base](https://npm.io/package/@web3auth/base.md) ^5.1.0
- [@web3auth/modal](https://npm.io/package/@web3auth/modal.md) ^5.1.1
- [@web3auth/metamask-adapter](https://npm.io/package/@web3auth/metamask-adapter.md) ^5.1.0
- [@web3auth/torus-evm-adapter](https://npm.io/package/@web3auth/torus-evm-adapter.md) ^5.1.0
- [@web3auth/wallet-connect-v2-adapter](https://npm.io/package/@web3auth/wallet-connect-v2-adapter.md) ^5.1.0
- [@web3auth/torus-wallet-connector-plugin](https://npm.io/package/@web3auth/torus-wallet-connector-plugin.md) ^5.1.0

## Recent versions

- 1.0.5 (latest) — 2023-07-21
- 1.0.4 — 2023-07-21
- 1.0.3 — 2023-07-21
- 1.0.1 — 2023-05-26
- 1.0.0 — 2023-05-23

## README

# octa_core

OctaCore - JavaScript client for octa_core
Welcome to the API documentation for our blockchain data service! Our service allows users to access and query data from various blockchain networks through a set of easy-to-use API endpoints. Whether you're looking for transaction history, block information, or on-chain analytics, our API has you covered. With our API, you can retrieve data from a variety of popular blockchain networks, including ethereum and polygon mainnets . Simply make a request to the appropriate endpoint with the necessary parameters, and you'll receive a response with the requested data in a convenient JSON format. We strive to make our API as user-friendly and reliable as possible, and are constantly working to expand our coverage and capabilities. If you have any questions or need assistance getting started, please don't hesitate to reach out to us. We hope that our API will be a valuable resource for your blockchain projects.
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: 1.0
- Package version: 1.0
- Build package: io.swagger.codegen.languages.JavascriptClientCodegen
For more information, please visit [http://www.octacore.io/support](http://www.octacore.io/support)

## Installation

### For [Node.js](https://nodejs.org/)

#### npm

To publish the library as a [npm](https://www.npmjs.com/),
please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages).

Then install it via:

```shell
npm install octa_core --save
```

##### Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing 
into the directory containing `package.json` (and this README). Let's call this `JAVASCRIPT_CLIENT_DIR`. Then run:

```shell
npm install
```

Next, [link](https://docs.npmjs.com/cli/link) it globally in npm with the following, also from `JAVASCRIPT_CLIENT_DIR`:

```shell
npm link
```

Finally, switch to the directory you want to use your octa_core from, and run:

```shell
npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
```

You should now be able to `require('octa_core')` in javascript files from the directory you ran the last 
command above from.

#### git
#
If the library is hosted at a git repository, e.g.
https://github.com/YOUR_USERNAME/octa_core
then install it via:

```shell
    npm install YOUR_USERNAME/octa_core --save
```

### For browser

The library also works in the browser environment via npm and [browserify](http://browserify.org/). After following
the above steps with Node.js and installing browserify with `npm install -g browserify`,
perform the following (assuming *main.js* is your entry file, that's to say your javascript file where you actually 
use this library):

```shell
browserify main.js > bundle.js
```

Then include *bundle.js* in the HTML pages.

### Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error:
Cannot resolve module", most certainly you should disable AMD loader. Add/merge
the following section to your webpack config:

```javascript
module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}
```

## Getting Started

Please follow the [installation](#installation) instruction and execute the following JS code:

```javascript
var OctaCore = require('octa_core');

var defaultClient = OctaCore.ApiClient.instance;

// Configure API key authorization: JWT
var JWT = defaultClient.authentications['JWT'];
JWT.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//JWT.apiKeyPrefix['Authorization'] = "Token"

var api = new OctaCore.AccountsApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.createWalletPost(callback);

```

## Documentation for API Endpoints

All URIs are relative to *https://api.octacore.io*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*OctaCore.AccountsApi* | [**createWalletPost**](docs/AccountsApi.md#createWalletPost) | **POST** /createWallet | createWallet
*OctaCore.AccountsApi* | [**getAllAssetsByAddressPost**](docs/AccountsApi.md#getAllAssetsByAddressPost) | **POST** /getAllAssetsByAddress | getAllAssetsByAddress
*OctaCore.AccountsApi* | [**getBalanceMultiPost**](docs/AccountsApi.md#getBalanceMultiPost) | **POST** /getBalanceMulti | getBalanceMulti
*OctaCore.AccountsApi* | [**getBalancePost**](docs/AccountsApi.md#getBalancePost) | **POST** /getBalance | getBalance
*OctaCore.AccountsApi* | [**getERC1155AssetsByAddressPost**](docs/AccountsApi.md#getERC1155AssetsByAddressPost) | **POST** /getERC1155AssetsByAddress | getERC1155AssetsByAddress
*OctaCore.AccountsApi* | [**getERC20AssetsByAddressPost**](docs/AccountsApi.md#getERC20AssetsByAddressPost) | **POST** /getERC20AssetsByAddress | getERC20AssetsByAddress
*OctaCore.AccountsApi* | [**getERC721AssetsByAddressPost**](docs/AccountsApi.md#getERC721AssetsByAddressPost) | **POST** /getERC721AssetsByAddress | getERC721AssetsByAddress
*OctaCore.AccountsApi* | [**getNFTAssetsByAddressPost**](docs/AccountsApi.md#getNFTAssetsByAddressPost) | **POST** /getNFTAssetsByAddress | getNFTAssetsByAddress
*OctaCore.AccountsApi* | [**getPendingBalanceAtPost**](docs/AccountsApi.md#getPendingBalanceAtPost) | **POST** /getPendingBalanceAt | getPendingBalanceAt
*OctaCore.AccountsApi* | [**getSpenderAllowancePost**](docs/AccountsApi.md#getSpenderAllowancePost) | **POST** /getSpenderAllowance | getSpenderAllowance
*OctaCore.AccountsApi* | [**isAddressValidPost**](docs/AccountsApi.md#isAddressValidPost) | **POST** /isAddressValid | isAddressValid
*OctaCore.BlocksApi* | [**getAllTransactionsByBlockHashPost**](docs/BlocksApi.md#getAllTransactionsByBlockHashPost) | **POST** /getAllTransactionsByBlockHash | getAllTransactionsByBlockHash
*OctaCore.BlocksApi* | [**getAllTransactionsByBlockNumberPost**](docs/BlocksApi.md#getAllTransactionsByBlockNumberPost) | **POST** /getAllTransactionsByBlockNumber | getAllTransactionsByBlockNumber
*OctaCore.BlocksApi* | [**getBlockDataByHashPost**](docs/BlocksApi.md#getBlockDataByHashPost) | **POST** /getBlockDataByHash | getBlockDataByHash
*OctaCore.BlocksApi* | [**getBlockDataByNumberPost**](docs/BlocksApi.md#getBlockDataByNumberPost) | **POST** /getBlockDataByNumber | getBlockDataByNumber
*OctaCore.BlocksApi* | [**getBlockHeaderByHashPost**](docs/BlocksApi.md#getBlockHeaderByHashPost) | **POST** /getBlockHeaderByHash | Returns the block header.
*OctaCore.BlocksApi* | [**getBlockHeaderByNumberPost**](docs/BlocksApi.md#getBlockHeaderByNumberPost) | **POST** /getBlockHeaderByNumber | getBlockHeaderByNumber
*OctaCore.BlocksApi* | [**getLatestBlockNumberPost**](docs/BlocksApi.md#getLatestBlockNumberPost) | **POST** /getLatestBlockNumber | getLatestBlockNumber
*OctaCore.BlocksApi* | [**getTransactionCountByBlockHashPost**](docs/BlocksApi.md#getTransactionCountByBlockHashPost) | **POST** /getTransactionCountByBlockHash | getTransactionCountByBlockHash
*OctaCore.ContractsApi* | [**getApprovalEventsByContractAdressPost**](docs/ContractsApi.md#getApprovalEventsByContractAdressPost) | **POST** /getApprovalEventsByContractAdress | getApprovalEventsByContractAdress
*OctaCore.ContractsApi* | [**getTransferEventsByContractAdressPost**](docs/ContractsApi.md#getTransferEventsByContractAdressPost) | **POST** /getTransferEventsByContractAdress | getTransferEventsByContractAdress
*OctaCore.ContractsApi* | [**isContractPost**](docs/ContractsApi.md#isContractPost) | **POST** /isContract | isContract
*OctaCore.ENSApi* | [**ensResolvePost**](docs/ENSApi.md#ensResolvePost) | **POST** /ensResolve | ensResolve
*OctaCore.ENSApi* | [**ensReverseResolvePost**](docs/ENSApi.md#ensReverseResolvePost) | **POST** /ensReverseResolve | ensReverseResolve
*OctaCore.MetadataApi* | [**getCodeAtPost**](docs/MetadataApi.md#getCodeAtPost) | **POST** /getCodeAt | getCodeAt
*OctaCore.MetadataApi* | [**getGasPricePost**](docs/MetadataApi.md#getGasPricePost) | **POST** /getGasPrice | getGasPrice
*OctaCore.MetadataApi* | [**getNonceAtPost**](docs/MetadataApi.md#getNonceAtPost) | **POST** /getNonceAt | getNonceAt
*OctaCore.MetadataApi* | [**getPeerCountPost**](docs/MetadataApi.md#getPeerCountPost) | **POST** /getPeerCount | getPeerCount
*OctaCore.MetadataApi* | [**getPendingTransactionCountPost**](docs/MetadataApi.md#getPendingTransactionCountPost) | **POST** /getPendingTransactionCount | getPendingTransactionCount
*OctaCore.MetadataApi* | [**getStorageAtPost**](docs/MetadataApi.md#getStorageAtPost) | **POST** /getStorageAt | getStorageAt
*OctaCore.NFTApi* | [**getNFTByIdPost**](docs/NFTApi.md#getNFTByIdPost) | **POST** /getNFTById | getNFTById
*OctaCore.NFTApi* | [**getNFTMetadataPost**](docs/NFTApi.md#getNFTMetadataPost) | **POST** /getNFTMetadata | getNFTMetadata
*OctaCore.NFTApi* | [**getNFTOwnerPost**](docs/NFTApi.md#getNFTOwnerPost) | **POST** /getNFTOwner | getNFTOwner
*OctaCore.NFTApi* | [**getNFTsForCollectionPost**](docs/NFTApi.md#getNFTsForCollectionPost) | **POST** /getNFTsForCollection | getNFTsForCollection
*OctaCore.NFTApi* | [**getTokenMetadataPost**](docs/NFTApi.md#getTokenMetadataPost) | **POST** /getTokenMetadata | getTokenMetadata
*OctaCore.NFTApi* | [**isColelctionOwnerPost**](docs/NFTApi.md#isColelctionOwnerPost) | **POST** /isColelctionOwner | isColelctionOwner
*OctaCore.TransactionsApi* | [**getTransactionByBlockHashAndIndexPost**](docs/TransactionsApi.md#getTransactionByBlockHashAndIndexPost) | **POST** /getTransactionByBlockHashAndIndex | getTransactionByBlockHashAndIndex
*OctaCore.TransactionsApi* | [**getTransactionDataByHashPost**](docs/TransactionsApi.md#getTransactionDataByHashPost) | **POST** /getTransactionDataByHash | getTransactionDataByHash


## Documentation for Models

 - [OctaCore.ModelsAddressBalanceReq](docs/ModelsAddressBalanceReq.md)
 - [OctaCore.ModelsAddressReq](docs/ModelsAddressReq.md)
 - [OctaCore.ModelsBlockNumber](docs/ModelsBlockNumber.md)
 - [OctaCore.ModelsContractAdressRequestBody](docs/ModelsContractAdressRequestBody.md)
 - [OctaCore.ModelsDomainReq](docs/ModelsDomainReq.md)
 - [OctaCore.ModelsGetIsCollectionOwnerRequestBody](docs/ModelsGetIsCollectionOwnerRequestBody.md)
 - [OctaCore.ModelsGetNFTRequestBody](docs/ModelsGetNFTRequestBody.md)
 - [OctaCore.ModelsGetSpenderAllowanceRequestBody](docs/ModelsGetSpenderAllowanceRequestBody.md)
 - [OctaCore.ModelsGetStorageAtReq](docs/ModelsGetStorageAtReq.md)
 - [OctaCore.ModelsHash](docs/ModelsHash.md)
 - [OctaCore.ModelsHashIndex](docs/ModelsHashIndex.md)
 - [OctaCore.ModelsNonceReq](docs/ModelsNonceReq.md)
 - [OctaCore.ModelsTxReq](docs/ModelsTxReq.md)


## Documentation for Authorization


### JWT

- **Type**: API key
- **API key parameter name**: Authorization
- **Location**: HTTP header

---
_Source: https://npm.io/package/octacore-test · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
