npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

octacore-test

v1.0.5

Published

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_

Downloads

2

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 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

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

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:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

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

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:

    npm install YOUR_USERNAME/octa_core --save

For browser

The library also works in the browser environment via npm and browserify. 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):

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:

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

Getting Started

Please follow the installation instruction and execute the following JS code:

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

Documentation for Models

Documentation for Authorization

JWT

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header