mirror of
https://github.com/stronk-dev/LivepeerEvents.git
synced 2025-07-05 10:45:10 +02:00
47 lines
886 B
JavaScript
47 lines
886 B
JavaScript
|
|
|
|
export const getQuotes = () => (
|
|
fetch("api/livepeer/quotes", {
|
|
method: "GET",
|
|
headers: {
|
|
"Content-Type": "application/json"
|
|
}
|
|
})
|
|
);
|
|
|
|
export const getBlockchainData = () => (
|
|
fetch("api/livepeer/blockchains", {
|
|
method: "GET",
|
|
headers: {
|
|
"Content-Type": "application/json"
|
|
}
|
|
})
|
|
);
|
|
|
|
export const getEvents = () => (
|
|
fetch("api/livepeer/getEvents", {
|
|
method: "GET",
|
|
headers: {
|
|
"Content-Type": "application/json"
|
|
}
|
|
})
|
|
);
|
|
|
|
export const getCurrentOrchestratorInfo = () => (
|
|
fetch("api/livepeer/getOrchestrator", {
|
|
method: "GET",
|
|
headers: {
|
|
"Content-Type": "application/json"
|
|
}
|
|
})
|
|
);
|
|
|
|
export const getOrchestratorInfo = (orchAddr) => (
|
|
fetch("api/livepeer/getOrchestrator", {
|
|
method: "POST",
|
|
body: JSON.stringify(orchAddr),
|
|
headers: {
|
|
"Content-Type": "application/json"
|
|
}
|
|
})
|
|
); |