1.1.18 • Published 1 year ago
@alphabatem/solana-sale-toast v1.1.18
Solana NFT Sale Toast
Automatically display recent sales popups to increase your sales on your online store.
Powered By
- HelloMoon Developer platform (https://hellomoon.io)
- DegenCDN for Images (https://degencdn.com)
Quick Start
- Install Solana Toast
yarn add @alphabatem/solana-sale-toast
Obtain a Hellomoon API Key & DataStream (https://www.hellomoon.io/developers)
Create your data stream (you can add additional filters here if you are only monitoring 1 collection etc)
Grab your
subscriptionID
from theDatastreams
sectionGrab your
apiKey
from theDashboard
sectionSetup the solana toast in your code
const apiKey = "" //HelloMoon API Key
const subscriptionId = "" //HelloMoon Datastream ID
const enrichMetadata = true //Retrieve mint image (where available)
const connection = CreateSolanaToastClient(apiKey, subscriptionId, enrichMetadata)
connection.setCollectionFilter(new FilterOpts({
collectionName: "AlphaBatem", //Filter to collection name
}))
connection.listen()
Top stop the connection run:
connection.close()
- Filter Options can be used to further filter the inbound datastream (say if you wish for it to be more generic etc) - This also helps for changing dynamically between collections (say on a marketplace, just adjust the collectionFilter to match the current browsed collection)
new FilterOpts({
collectionName: "AlphaBatem", //Filter sales to only this collection
minPrice: 0.1 //Filter only sales above this price
})
- Include the base theme css file & adjust the style to your suiting
import "@alphabatem/solana-sale-toast/css/solana_toast.css";
- All set!
1.1.18
1 year ago
1.1.17
1 year ago
1.1.161
1 year ago
1.1.16
1 year ago
1.1.15
1 year ago
1.1.14
1 year ago
1.1.13
1 year ago
1.1.12
1 year ago
1.1.11
1 year ago
1.1.1
1 year ago
1.1.0
1 year ago
1.0.234
1 year ago
1.0.233
1 year ago
1.0.232
1 year ago
1.0.231
1 year ago
1.0.23
1 year ago
1.0.22
1 year ago
1.0.21
1 year ago
1.0.2
1 year ago
1.0.1
1 year ago
1.0.0
1 year ago