1.9.16 • Published 1 month ago

emblem-vault-sdk v1.9.16

Weekly downloads
-
License
MIT
Repository
-
Last release
1 month ago

Emblem Vault SDK

Overview

The EmblemVault SDK provides developers with the tools needed to interact with the EmblemVault API, facilitating the seamless integration of EmblemVault functionalities into applications.

Getting Started

Installation

Install via npm or yarn:

  • npm install emblemvault-sdk
  • yarn add emblemvault-sdk

Initialization

Initialize with your API key:

import EmblemVaultSDK from 'emblemvault-sdk';
const emblemVaultSDK = new EmblemVaultSDK('YOUR_API_KEY');

API Reference

Asset Metadata Methods

  • getAssetMetadata(projectName, strict = false): Fetch metadata for assets by project name.
  • getAllAssetMetadata(): Retrieve metadata for all assets.
  • getAllProjects(): Get a list of all projects.

Curated Collections Methods

  • fetchCuratedContracts(hideUnMintable = false, overrideFunc = false): Fetch curated contracts, with optional parameters to hide unmintable contracts or override the fetching function.
  • fetchCuratedContractByName(name, contracts = false): Fetch a curated contract by its name.

Web3 Integration Methods

  • loadWeb3(): Dynamically load Web3 and connect to MetaMask.

Minting, Burning, and Claiming Methods

  • performMintChain(web3, tokenId, collectionName, callback = null): Perform the minting process for a specific token in a collection.
  • performBurn(web3, tokenId, callback = null): Burn a token.
  • performClaimChain(web3, tokenId, serialNumber, callback = null): Claim ownership of a token.

Bitcoin Network Methods

  • getSatsConnectAddress(): Generate a SatsConnect address for Bitcoin transactions.
  • generatePSBT(phrase, satsPerByte = 20): Generate a Partially Signed Bitcoin Transaction (PSBT).
  • getTaprootAddressFromMnemonic(phrase): Generate a Taproot address from a mnemonic phrase.

Global Declaration

The EmblemVaultSDK is available globally in web applications through the window object.

Simple Html Demo

View Live Demo Here(https://emblemcompany.github.io/emblem-vault-sdk/)

git clone https://github.com/EmblemCompany/emblem-vault-sdk.git
cd emblem-vault-sdk/docs
open index.html

Visit our #Development channel on Discord

#development (https://discord.gg/UEkrya8usj)

1.9.16

1 month ago

1.9.15

2 months ago

1.9.14

2 months ago

1.9.13

2 months ago

1.9.12

2 months ago

1.9.11

2 months ago

1.9.10

2 months ago

1.9.9

2 months ago

1.9.8

2 months ago

1.9.6

2 months ago

1.9.5

2 months ago

1.9.4

2 months ago

1.9.3

2 months ago

1.9.2

2 months ago

1.9.1

2 months ago

1.9.0

2 months ago

1.8.2

2 months ago

1.8.1

2 months ago

1.8.0

2 months ago

1.7.14

3 months ago

1.7.10

3 months ago

1.7.11

3 months ago

1.7.12

3 months ago

1.7.13

3 months ago

1.7.9

3 months ago

1.7.8

3 months ago

1.7.7

3 months ago

1.7.5

3 months ago

1.7.4

3 months ago

1.7.3

3 months ago

1.7.2

3 months ago

1.7.1

3 months ago

1.7.0

3 months ago

1.6.2

3 months ago

1.6.1

3 months ago

1.6.0

3 months ago

1.4.6

3 months ago

1.4.4

3 months ago

1.4.3

3 months ago

1.4.2

3 months ago

1.5.0

3 months ago

1.4.1

3 months ago

1.3.2

3 months ago

1.4.0

3 months ago

1.3.1

3 months ago

1.4.8

3 months ago

1.4.7

3 months ago

1.3.0

4 months ago

1.2.2

4 months ago

1.2.1

4 months ago

1.2.0

4 months ago

1.1.3

4 months ago

1.1.2

4 months ago

1.1.1

4 months ago

1.1.0

4 months ago

1.0.0

4 months ago