The entities to create
An array of the entity keys of the entities that were created, together with the number of the block at which they will expire
Delete one or more new entities in GolemBase
The entity keys of the entities to delete
An array of the entity keys of the entities that were deleted
Extend the TTL of one or more new entities in GolemBase
The entities to extend the TTL of
An array of the entity keys of the entities that had their TTL extended, together with the numbers of the old and the new block at which the entities expire
Get the entity keys of all entities in GolemBase
Get all entities with a given numeric annotation
The annotation key
The annotation value
An array of entity keys containing entities with the given annotation
Get all entities with a given string annotation
The annotation key
The annotation value
An array of entity keys containing entities with the given annotation
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 ethereum address of the owner of the ethereum account used by this client
Get the raw viem.sh ethereum client, 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
Update one or more new entities in GolemBase
The entities to update
An array of the entity keys of the entities that were updated, together with the number of the block at which they will expire
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 TTL 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
Create one or more new entities in GolemBase