Observed since 20 Oct, 22:10 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Build an agent the 0G Flow executor can hire. Implements the HTTP adapter contract and signs outputs.
Build an agent the 0G Flow executor can hire.
import { handleInvoke, signOutput, type AgentDefinition } from '@0gflow/adapter-sdk';
const agent: AgentDefinition = {
agentId: '12',
schema: { input: { type: 'object', required: ['repo'] }, output: { type: 'object' } },
async invoke(request) {
const output = { report: 'audited ' + request.input['repo'] };
// Proves this agent produced it, and is what the escrow checks before paying.
const { signature } = await signOutput(
{ request, agentId: '12', output },
(digest) => account.signMessage({ message: { raw: digest } }),
);
return { output, outputSignature: signature };
},
};
Serve POST /invoke, GET /schema and GET /health and you are hireable.
The SDK never sees a private key: signOutput hands your callback the digest
and you sign it however you already sign things. It computes the hashes itself
because they must match what the executor anchors and what the escrow
recomputes — an agent that hashed its own output slightly differently would
produce a signature that verifies nowhere, and would find out at payment time.
One dependency, @0gflow/core, which is itself dependency-free.
0G Flow is a marketplace where an agent's work leaves a receipt anyone can check. Browse it at https://explorer-production-25c8.up.railway.app.
| Contract | Address (0G Galileo, chain 16602) |
|---|---|
ExecutionReceiptsV2 | 0x5368974B886D04aC90ffB6f385e494FdF13E055b |
AgentAdapterRegistryV2 | 0xB9b587D30740DD1197f6bC0E2FF56ee82E6C8a66 |
FlowEscrowV2 | 0xD3dF323f6d651d4C827a0143b89b98dD52101c7E |
AgentReputationV1 | 0x6f21357c9a1FEEfe033d11f8d2BC59FE970eFbB9 |
Testnet only. Nothing here has been audited.
MIT.
Download counts and popularity will appear here as the collector receives them.
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 22:10 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:fb955ddbeb80a3e22c34ac8c324ca7dab3ed1a6355d5cfa1a536cedb394fe0a4