3.0.1 • Published 11 months ago

gez-sdk v3.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

Genz-SDK

Genz SDK is SDK to build an perspective rendering application. It is a part of geneEngine. It computes matching score for set of wallets using on-chain & custom off-chain data.

Currently, it is in development phase.

Installation

npm i gez-sdk

Usage

const { Genz } = require('genz-sdk');
const client = new Genz({
  apiKey: 'your-api-key',
  // or any other data source but current schema is designed for covalent. Stay tuned for more compatible
  baseUrl: 'https://api.covalenthq.com/',
});
const walllets = [
  '0x000000'
  ....

];
const params = [
    NFTParams = [
        {
            nft: 'address',
            quantity: 'value',
        },
    ]
    TokenParams = [
        {
            token: 'address',
            quantity: 'value',
        },
    ]
    ...
]
const matchScore = 90
const 
client.computes
  .getComputedByWallets({
    wallets,
    matchScore,
    params
  })
  .then((matchedWallets) => {
    console.log(`Resulting matched Wallets are: ${matchedWallets}`);
  });
3.0.1

11 months ago

3.0.0

11 months ago