Current collected state Current
Observed since 21 Oct, 09:06 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
@0xlyle/butter
A quick and easy way to integrate token gating in your project
A quick and easy way to integrate token gating in your project
npm i @0xlyle/butter
import { spread } from '@0xlyle/butter'
const result = await spread(chainID,accountAddress,covalentKey,tokenContractAddress)
const result = await spread("1","0x0...","ckey_32...","0xd....")
OR
const chainID = "1" //ETH Mainnet
const accountAddress = "0x0...."
const covalentKey = "ckey_32..."
const tokenContractAddress = "0xd...."
const result = await spread(chainID,accountAddress,covalentKey,tokenContractAddress)
//Returns true or false
//Depending on result, show user appropriate message
//if(result) //true do something else(false) //do something
Get Covalent Key from https://www.covalenthq.com/
Sample React app - https://butter-sample-app-pooly-supporter.netlify.app/ Sample React app repo - https://github.com/lyledavids/butter_react_sample_app
Download counts and popularity will appear here as the collector receives them.
Declarations describe requirements; they are not a resolved dependency graph.
Source distribution
{
"integrity": "sha512-twc6nEfjzu8wLRpS68b05aw/1tet4HWfMf+UKhDHK4rspiQCTG9IKS0aNAe7HlwKQcjAqHOloFGqp/sow1i55g==",
"shasum": "ca046e6bbff19ce1224db2519d643b0e7c0ee6f8",
"tarball": "https://registry.npmjs.org/@0xlyle/butter/-/butter-0.0.10.tgz",
"fileCount": 7,
"unpackedSize": 2394898,
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEQCIDW9Xp77nIDSRxqyZ+Z2wbnhwP5QTdNLQKpr1V25izB0AiAaMoSdR6f9W9l49Jvhr60wburjCchUjEEfaOYzUR5JNw=="
}
],
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi3XznACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqNtA//QtJr4v2qdVuRApjOU+u5Y51Y6rT5A994eynbbDWDwAa9A1US\r\nWoS4ZcnkKCSCPmW+Fm1vxeL8zW+h/iyGjAnGWDMpTM4eZcKE9aJD71EKwqfv\r\n3ZGB8rgm8SicOcOEF0v8fiB4TvbK6ruNf7ql3M2rXx07aKVVtm/+2I2Au34m\r\nWHo9bG7vJ+ErcUwE8hdI/MLetG7030V8Ez9ET2D9HH/zVFnh2TI1uFRTwemN\r\nRAcVYFYp4GZH6RVGhQr+O/McaAdaQ7oT0KJ2I6tm7fdsqaLHriPiGUwYARJU\r\nPPpZ87GeRMXIv01Gv5DMFm6YqjrQNMUEUFP7Tq5kGutCU5At9InluZ3axUS5\r\ns+B/goANleDMe8UfW2gstxCFMxO2U/veW64RrAG2EhWiR8ldJeGc4d1dAQGv\r\nmzOz5PtUWPkB34CPiN8hVmleCYPst4h62kCoON55hAh3qJ7cMHADz7k/CzUp\r\nlbY2Q2VYQl5HIFMXRiVxd9JDhVZGfWz2Bi+UC+3rTUUdn2rAeV80pNiaSUMp\r\nF/mdGjqhYhDYGqhiGwZTyXTHusb+9FBWN2+0MpNR7oAW6DKZdy7S8yzaUTBD\r\nt4kgqEJ5vttDgeF/KmpFW+z3deiJg0h7uurobIeZ/0z9JLXVn5xvGy6GvqAM\r\nqg3Z/TolgOvFRrG9OaKJud2mZtnbLQDiZOo=\r\n=qtWV\r\n-----END PGP SIGNATURE-----\r\n"
}Observed since 21 Oct, 09:06 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:5fcd515c1fd239cdc783afcf0804f8840bed9c7124591b7629f2f3123512c344