Get the entity keys of all entities in GolemBase owned by the given address
Array of the entity keys
Get all entity keys for entities that will expire at the given block number
The block number
An array of entities that expire at the given block
Get the total count of entities in GolemBase
Get entity metadata
The key of the entity to look up
The entity's metadata
Get the internal client which exposes low-level methods and also gives access to the raw viem.sh ethereum clients, which allows to call low-level ethereum methods directly
Get the storage value associated with the given entity key
The key of the entity to look up
The base64-encoded value stored in the entity
Query entities in GolemBase based on annotations
The query to look up entities with
Array of the entities that matched the query
Install callbacks that will be invoked for every GolemBase transaction
The starting block, events trigger the callbacks starting from this block
A callback that's invoked whenever entities are created
A callback that's invoked whenever entities are deleted
Optional
onError?: (error: Error) => voidA callback that's invoked whenever there is an error during the processing
A callback that's invoked whenever entities have their BTL extended
A callback that's invoked whenever entitier are updated
Optional
pollingInterval?: numberIn that case of HTTP transport, the polling interval in milliseconds. Defaults to the default polling interval of viem
Optional
transport?: "http" | "websocket"The transport to use, either HTTP or WebSocket (the default)
a callback to cancel the subscription and stop receiving notifications
Get the entity keys of all entities in GolemBase