GraphQL schema exposing Blob data and queries for storage access.
// Source: https://github.com/FuelLabs/fuel-core | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
use crate::{
fuel_core_graphql_api::query_costs,
graphql_api::IntoApiResult,
schema::{
ReadViewProvider,
scalars::{
BlobId,
HexString,
},
},
};
use async_graphql::{
Context,
Object,
};
use fuel_core_storage::{
not_found,
tables::BlobData,
};
use fuel_core_types::fuel_types;
pub struct Blob(fuel_types::BlobId);
#[Object]
impl Blob {
async fn id(&self) -> BlobId {
self.0.into()
}
#[graphql(complexity = "query_costs().bytecode_read")]
async fn bytecode(&self, ctx: &Context<'_>) -> as
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key