1.0.18 • Published 1 year ago

anyside v1.0.18

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Anyside Node.js API

Welcome to the Anyside Node.js API! Python API

In order to use the Anyside API you will need an API key. You can get your API key by creating an account on anyside.com.

Installation

Package manager

To install the Node.js API and get started you can simply npm install anyside into your project.

$ npm install anyside

Using yarn:

$ yarn add anyside

Using pnpm:

$ pnpm add anyside

Once the package is installed, you can import the library using import or require approach:

import Anyside from "anyside";

let anyside = new Anyside("YOUR API KEY");

If you use require for importing, only default export is available:

const Anyside = require("anyside");

let anyside = new Anyside("YOUR API KEY");

For cases where something went wrong when trying to import a module into a custom or legacy environment, you can try importing the module package directly:

const Anyside = require("node_modules/anyside/anyside.js"); // node commonJS bundle (ES2017)

CDN

Using jsDelivr CDN (ES5 UMD browser module):

<script
  src="https://cdn.jsdelivr.net/npm/axios@1.1.2/dist/axios.min.js"
  type="module"
></script>
<script src="https://cdn.jsdelivr.net/npm/anyside@1.0.18/anyside.js"></script>

Using unpkg CDN:

<script
  src="https://cdn.jsdelivr.net/npm/axios@1.1.2/dist/axios.min.js"
  type="module"
></script>
<script src="https://unpkg.com/anyside@1.0.18/anyside.js"></script>

Example Query Domain

When making a request must pass a anyside domain name.

Response will contain wallest connected with anyside

const Anyside = require('anyside');

let anyside  = new Anyside('YOUR API KEY');

(async () => {
    let response = await anyside.queryDomain('QUERY DOMAIN NAME Eg. John.any');
    console.log(response)
})();


"""
#Response Example:
{'Bitcoin': [{'address': '0xBTC-SOMESTUFF', 'name': 'Bitcoin'}],
 'Solana': [{'address': '0x...', 'name': 'Solana'}]}
"""

Example Wallet lookup

When making a request must pass a vaild wallet address.

Response will contain anyside domain

const {Anyside} = require('anyside');

let anyside  = new Anyside('YOUR API KEY');

(async () => {
    let response = await anyside.lookupWallet('WALLET ADDRESS');
    console.log(response)
})();

"""
#Response Example:
{'domain': 'John.any'}
"""

Please subscribe on Anyside to receive project updates. You can aslo follow us on Twitter and Discord.

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.9

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

2 years ago

1.0.0

2 years ago