3.5.0 • Published 2 years ago
@settlemint/certimint-validate v3.5.0
A toolkit to independently verify CertiMint seals
This npm package allows you to independently verify a CertiMint blockchain seal.
Installation
npm install --save @settlemint/certimint-validate
Usage
import { CertiMintValidation } from '@settlemint/certimint-validate';
const config = {
bitcoin: {
url: 'https://api.blockcypher.com/v1/btc/main', // Optional; Api url for bitcoin
apiKey: 'xxx'; // Optional, your api key from blockcypher if you use bitcoin anchors
},
ethereum: {
apiKey: 'e341cb773bff270e539690b93fb69f32'; // Optional, your project id from infura if you use ethereum anchors on the mainnet
}
}
const certiMintValidation = new CertiMintValidation(bitcoinApiKey);
status = await certiMintValidation.validateSeal(mySealObject);
status === SealStatus.CONFIRMED; // Seal has successfully been anchored
status === SealStatus.FAILED; // Failed to anchor seal, signinvites and/or signatures
status === SealStatus.PENDING; // Waiting for seal, signinvites and/or signatures to be anchored
3.5.0
2 years ago
3.4.0
3 years ago
3.3.1
3 years ago
3.3.0
3 years ago
3.2.1
3 years ago
3.2.0
3 years ago
3.1.4
4 years ago
3.1.3
4 years ago
3.1.2
4 years ago
3.1.1
4 years ago
3.1.0
4 years ago
3.0.1
4 years ago
3.0.0
4 years ago
2.0.1
5 years ago
2.0.0
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago