1.0.6 • Published 1 year ago

verbwire v1.0.6

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

Verbwire Javascript Library

npm version Downloads Try on RunKit

The official javascript client library for the Verbwire API.

Table of Contents

Install

$ npm install verbwire

Getting Started

There are a number of resources available to learn more about the Verbwire API. We recommend starting with the Quickstart Guide on our documentation page.

Each API call is mapped to a function on the javascript library 1-to-1. i.e. calling and endpoint at https://api.verbwire.com/v1/nft/data/owned can be called as follows with the library:

const verbwire = require('verbwire')('YOUR_API_KEY');

verbwire.data.owned({
        walletAddress: "0x.....",
    }).then(function(response) {
        console.log(response);
    });

The full API documentation is here

There are a number of sample projects in our Github Repo. Feel free to use these as a starting point for your projects.

There are also a number of community projects available on our website for reference. We continue to add more and more every day. If you've built a project using Verbwire and would like to be featured, please reach out to us.

Finally there are a number of sample API recipes that can be used for quick reference.

Usage

The package needs to be configured with your account's secret key, which is available in the Verbwire Dashboard. Require it with the key's value:

const verbwire = require('verbwire')('YOUR_API_KEY');

const response = await verbwire.mint.quickMintFromFile({
     chain: 'ethereum',
     filePath: 'myPicture.jpg',
     recipientAddress: 'YOUR_WALLET_ADDRESS',
});

console.log(response);

Every method returns a chainable promise which can be used like this:

const verbwire = require('verbwire')('YOUR_API_KEY');

verbwire.data.lastFloorPriceForSlug({ 
        slug: "boredapeyachtclub"
    }).then(function(response) {
        console.log(response);
    });

License

MIT

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago