The entities to create
Optional
args: {Optional parameters, see sendTransaction
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
Optional
args: {Optional parameters, see sendTransaction
An array of the entity keys of the entities that were deleted
Extend the BTL of one or more new entities in GolemBase
The entities to extend the BTL of
Optional
args: {Optional parameters, see sendTransaction
An array of the entity keys of the entities that had their BTL 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 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 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
Optional
creates: GolemBaseCreate[]The list of create operations to include in this transaction
Optional
updates: GolemBaseUpdate[]The list of update operations to include in this transaction
Optional
deletes: `0x${string}`[]The list of delete operations to include in this transaction
Optional
extensions: GolemBaseExtend[]The list of extend operations to include in this transaction
Optional
args: {Optional
gas?: bigintOptional
maxFeePerGas?: bigintSets the max fee per gas manually
Optional
maxPriorityFeePerGas?: bigintSets the max priority fee per gas manually
Optional
txHashCallback?: (txHash: `0x${string}`) => voidCallback to invoke with the transaction hash of the transaction
Update one or more new entities in GolemBase
The entities to update
Optional
args: {Optional parameters, see sendTransaction
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 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
Create one or more new entities in GolemBase