Node package manager
Emit new event with the latest count of downloads for an npm package. See the documentation.
Emit new event when a new version of an npm package is published. See the documentation
Returns information for a specified epoch by the epoch number or an epoch tag (can be latest or finalized). See the documentation
Retrieve execution blocks by execution block number. See the documentation
Returns information for all validators up to 100 by index or public key. See the documentation.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
beaconchain: {
type: "app",
app: "beaconchain",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.beaconchain.$auth.url}/api/v1/slot/1`,
headers: {
"apikey": `${this.beaconchain.$auth.api_key}`,
},
})
},
})