βοΈSelect functions to use
Init Read Contract:
window.a2n.initReadContract()Init Write Contract:
window.a2n.initWriteContract()Get a product by ID from A2N Smart Contract:
window.a2n.getProductByIdFromSM(readContractInstance, productId)Get a product by ID from A2N cloud database:
window.a2n.getProductByIdFromDB(productId)Get my subscribers:
window.a2n.getMySubscribers(readContractInstance, accountAddress)Get my subscriptions:
Subscribe/purchase a subscription product:
Get current account:
Insert a subscription product into your website:
Last updated