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}`,
},
})
},
})
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.
Beaconchain uses API keys for authentication. When you connect your Beaconchain account, Pipedream securely stores the keys so you can easily authenticate to Beaconchain APIs in both code and no-code steps.