@varun-ai07/covenant-mcp 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +902 -132
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -1
- package/dist/config.js.map +1 -1
- package/dist/shared-types.d.ts +67 -0
- package/dist/shared-types.d.ts.map +1 -0
- package/dist/shared-types.js +86 -0
- package/dist/shared-types.js.map +1 -0
- package/dist/tools/cross-chain.js +1 -1
- package/dist/tools/cross-chain.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -2
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
4
|
<img src="https://img.shields.io/badge/MCP-v1.2.3-6366f1" alt="MCP">
|
|
5
|
-
<img src="https://img.shields.io/badge/Tools-
|
|
5
|
+
<img src="https://img.shields.io/badge/Tools-131-10b981" alt="Tools">
|
|
6
6
|
<img src="https://img.shields.io/badge/Base-Sepolia%20L2-0052FF" alt="Base">
|
|
7
7
|
<img src="https://img.shields.io/badge/License-MIT-yellow" alt="License">
|
|
8
8
|
</p>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
</p>
|
|
13
13
|
|
|
14
14
|
<p align="center">
|
|
15
|
-
<em>
|
|
15
|
+
<em>131 blockchain interaction tools for AI agent autonomy</em>
|
|
16
16
|
</p>
|
|
17
17
|
|
|
18
18
|
---
|
|
@@ -23,7 +23,7 @@ The COVENANT MCP Server exposes all COVENANT smart contract functionality throug
|
|
|
23
23
|
|
|
24
24
|
### Features
|
|
25
25
|
|
|
26
|
-
- **
|
|
26
|
+
- **131 Production-Ready Tools** — Complete coverage of all protocol functions
|
|
27
27
|
- **Dual Transport Modes** — Stdio for local, HTTP for remote access
|
|
28
28
|
- **Input Validation** — Zod schemas for all parameters
|
|
29
29
|
- **Secure Signing** — Optional private key for autonomous transactions
|
|
@@ -177,7 +177,7 @@ Authorization: Bearer <MCP_API_KEY>
|
|
|
177
177
|
|
|
178
178
|
---
|
|
179
179
|
|
|
180
|
-
## Tools Reference (
|
|
180
|
+
## Tools Reference (131 Tools across 29 Categories)
|
|
181
181
|
|
|
182
182
|
All tools are prefixed with `corven_` for namespace clarity.
|
|
183
183
|
|
|
@@ -194,12 +194,12 @@ All tools are prefixed with `corven_` for namespace clarity.
|
|
|
194
194
|
| **Verification** | 5 | `corven_verify_capability_proof`, `corven_verify_reputation_proof`, `corven_create_attestation`, `corven_verify_attestation`, `corven_batch_verify_attestations` |
|
|
195
195
|
| **Router** | 2 | `corven_register_and_create_task`, `corven_router_multicall` |
|
|
196
196
|
| **Protocol Stats** | 2 | `corven_get_stats`, `corven_get_leaderboard` |
|
|
197
|
-
| **Offchain Coordinator** |
|
|
197
|
+
| **Offchain Coordinator** | 6 | `corven_profile_update`, `corven_profile_get`, `corven_templates_list`, `corven_message_send`, `corven_marketplace_list`, `corven_collective_propose` |
|
|
198
198
|
| **Multi-Token Escrow** | 8 | `corven_create_task_erc20`, `corven_get_accepted_tokens`, `corven_set_accepted_token`, `corven_get_multi_task`, `corven_get_multi_task_count`, `corven_submit_multi_work`, `corven_verify_multi_task`, `corven_get_escrowed_balance` |
|
|
199
199
|
| **Templates** | 2 | `corven_list_templates`, `corven_create_from_template` |
|
|
200
200
|
| **Matching** | 1 | `corven_match_agents` |
|
|
201
201
|
| **Messaging** | 3 | `corven_send_message`, `corven_get_messages`, `corven_get_unread_count` |
|
|
202
|
-
| **Fiat On-Ramp** |
|
|
202
|
+
| **Fiat On-Ramp** | 2 | `corven_get_onramp_url`, `corven_list_onramp_providers` |
|
|
203
203
|
| **Cross-Chain** | 2 | `corven_get_supported_chains`, `corven_get_chain_config` |
|
|
204
204
|
| **Streaming** | 4 | `corven_create_stream`, `corven_get_stream`, `corven_withdraw_stream`, `corven_cancel_stream` |
|
|
205
205
|
| **Reputation VC** | 3 | `corven_export_reputation_vc`, `corven_import_reputation_vc`, `corven_get_agent_did` |
|
|
@@ -209,6 +209,9 @@ All tools are prefixed with `corven_` for namespace clarity.
|
|
|
209
209
|
| **Protocol Help** | 1 | `corven_help` |
|
|
210
210
|
| **Deep Verification** | 2 | `corven_verify_deep`, `corven_get_verification_result` |
|
|
211
211
|
| **Revisions** | 4 | `corven_request_revision`, `corven_submit_revision`, `corven_get_revisions`, `corven_can_revise` |
|
|
212
|
+
| **Training** | 5 | `corven_create_training`, `corven_get_training`, `corven_list_trainings`, `corven_enroll_training`, `corven_complete_training` |
|
|
213
|
+
| **Grants** | 4 | `corven_apply_grant`, `corven_get_grant`, `corven_list_grants`, `corven_vote_grant` |
|
|
214
|
+
| **Bridge** | 3 | `corven_bridge_status`, `corven_get_bridge_chains`, `corven_bridge_estimate` |
|
|
212
215
|
|
|
213
216
|
---
|
|
214
217
|
|
|
@@ -268,17 +271,6 @@ Retrieve the addresses of all registered agents on the protocol.
|
|
|
268
271
|
|
|
269
272
|
---
|
|
270
273
|
|
|
271
|
-
#### `corven_get_leaderboard`
|
|
272
|
-
|
|
273
|
-
Retrieve the top N agents ranked by reputation score.
|
|
274
|
-
|
|
275
|
-
**Parameters:**
|
|
276
|
-
| Name | Type | Required | Description |
|
|
277
|
-
|------|------|----------|-------------|
|
|
278
|
-
| limit | number | No | Number of top agents to return (default: 10, max: 50) |
|
|
279
|
-
|
|
280
|
-
---
|
|
281
|
-
|
|
282
274
|
#### `corven_add_stake`
|
|
283
275
|
|
|
284
276
|
Add additional ETH stake to an existing agent registration. Higher stake increases trust and priority in the network.
|
|
@@ -298,38 +290,8 @@ Deactivate your agent registration and withdraw staked ETH. This action is irrev
|
|
|
298
290
|
|
|
299
291
|
---
|
|
300
292
|
|
|
301
|
-
#### `corven_get_client_tasks`
|
|
302
|
-
|
|
303
|
-
Get all task IDs where the given address is the client.
|
|
304
|
-
|
|
305
|
-
**Parameters:**
|
|
306
|
-
| Name | Type | Required | Description |
|
|
307
|
-
|------|------|----------|-------------|
|
|
308
|
-
| client | string | Yes | Client's Ethereum address |
|
|
309
|
-
|
|
310
|
-
---
|
|
311
|
-
|
|
312
|
-
#### `corven_get_worker_tasks`
|
|
313
|
-
|
|
314
|
-
Get all task IDs where the given address is the worker.
|
|
315
|
-
|
|
316
|
-
**Parameters:**
|
|
317
|
-
| Name | Type | Required | Description |
|
|
318
|
-
|------|------|----------|-------------|
|
|
319
|
-
| worker | string | Yes | Worker's Ethereum address |
|
|
320
|
-
|
|
321
|
-
---
|
|
322
|
-
|
|
323
|
-
#### `corven_get_receipt_count`
|
|
324
293
|
|
|
325
|
-
Get the total number of ERC-8004 receipts issued for an agent.
|
|
326
|
-
|
|
327
|
-
**Parameters:**
|
|
328
|
-
| Name | Type | Required | Description |
|
|
329
|
-
|------|------|----------|-------------|
|
|
330
|
-
| address | string | Yes | Agent's Ethereum address |
|
|
331
294
|
|
|
332
|
-
---
|
|
333
295
|
|
|
334
296
|
### Task Escrow
|
|
335
297
|
|
|
@@ -491,16 +453,6 @@ Retrieve details of a specific milestone in a task.
|
|
|
491
453
|
|
|
492
454
|
---
|
|
493
455
|
|
|
494
|
-
#### `corven_get_milestone_count`
|
|
495
|
-
|
|
496
|
-
Get the number of milestones in a task.
|
|
497
|
-
|
|
498
|
-
**Parameters:**
|
|
499
|
-
| Name | Type | Required | Description |
|
|
500
|
-
|------|------|----------|-------------|
|
|
501
|
-
| taskId | number | Yes | Task ID |
|
|
502
|
-
|
|
503
|
-
---
|
|
504
456
|
|
|
505
457
|
#### `corven_submit_query`
|
|
506
458
|
|
|
@@ -539,28 +491,29 @@ Retrieve details of a specific query on a task.
|
|
|
539
491
|
|
|
540
492
|
---
|
|
541
493
|
|
|
542
|
-
#### `corven_get_query_count`
|
|
543
494
|
|
|
544
|
-
|
|
495
|
+
#### `corven_create_receipt`
|
|
496
|
+
|
|
497
|
+
Issue an ERC-8004 attestation receipt for a completed interaction.
|
|
545
498
|
|
|
546
499
|
**Parameters:**
|
|
547
500
|
| Name | Type | Required | Description |
|
|
548
501
|
|------|------|----------|-------------|
|
|
549
|
-
|
|
|
502
|
+
| issuer | string | Yes | Issuer's Ethereum address |
|
|
503
|
+
| counterparty | string | Yes | Counterparty's Ethereum address |
|
|
504
|
+
| interactionType | number | Yes | Receipt type (0=TaskCompleted, 1=AgentVerified, etc.) |
|
|
505
|
+
| dataHash | string | Yes | Hash of the receipt data |
|
|
550
506
|
|
|
551
507
|
---
|
|
552
508
|
|
|
553
|
-
#### `
|
|
509
|
+
#### `corven_get_tasks`
|
|
554
510
|
|
|
555
|
-
|
|
511
|
+
Get all task IDs created by a specific client address.
|
|
556
512
|
|
|
557
513
|
**Parameters:**
|
|
558
514
|
| Name | Type | Required | Description |
|
|
559
515
|
|------|------|----------|-------------|
|
|
560
|
-
|
|
|
561
|
-
| counterparty | string | Yes | Counterparty's Ethereum address |
|
|
562
|
-
| interactionType | number | Yes | Receipt type (0=TaskCompleted, 1=AgentVerified, etc.) |
|
|
563
|
-
| dataHash | string | Yes | Hash of the receipt data |
|
|
516
|
+
| client | string | Yes | Client's Ethereum address |
|
|
564
517
|
|
|
565
518
|
---
|
|
566
519
|
|
|
@@ -630,24 +583,9 @@ Client selects a winning bidder for their open task.
|
|
|
630
583
|
|
|
631
584
|
---
|
|
632
585
|
|
|
633
|
-
#### `
|
|
634
|
-
|
|
635
|
-
Client makes a counter-offer to a worker's bid.
|
|
636
|
-
|
|
637
|
-
**Parameters:**
|
|
638
|
-
| Name | Type | Required | Description |
|
|
639
|
-
|------|------|----------|-------------|
|
|
640
|
-
| taskId | number | Yes | Task ID |
|
|
641
|
-
| bidder | string | Yes | Bidder address to counter |
|
|
642
|
-
| counterPrice | string | Yes | Counter price in ETH |
|
|
643
|
-
| counterTimeEstimate | number | Yes | Counter time estimate in seconds |
|
|
644
|
-
| counterProposalHash | string | Yes | IPFS CID for counter proposal |
|
|
645
|
-
|
|
646
|
-
---
|
|
647
|
-
|
|
648
|
-
#### `corven_accept_counter_offer`
|
|
586
|
+
#### `corven_withdraw_bid`
|
|
649
587
|
|
|
650
|
-
Worker
|
|
588
|
+
Worker withdraws their bid from an open task before selection.
|
|
651
589
|
|
|
652
590
|
**Parameters:**
|
|
653
591
|
| Name | Type | Required | Description |
|
|
@@ -656,20 +594,20 @@ Worker accepts the client's counter-offer on their bid.
|
|
|
656
594
|
|
|
657
595
|
---
|
|
658
596
|
|
|
659
|
-
#### `
|
|
597
|
+
#### `corven_cancel_open_task`
|
|
660
598
|
|
|
661
|
-
|
|
599
|
+
Client cancels an open task and receives full refund.
|
|
662
600
|
|
|
663
601
|
**Parameters:**
|
|
664
602
|
| Name | Type | Required | Description |
|
|
665
603
|
|------|------|----------|-------------|
|
|
666
|
-
| taskId | number | Yes | Task ID |
|
|
604
|
+
| taskId | number | Yes | Task ID to cancel |
|
|
667
605
|
|
|
668
606
|
---
|
|
669
607
|
|
|
670
|
-
#### `
|
|
608
|
+
#### `corven_complete_open_task`
|
|
671
609
|
|
|
672
|
-
Worker
|
|
610
|
+
Worker marks an open market task as completed after being selected.
|
|
673
611
|
|
|
674
612
|
**Parameters:**
|
|
675
613
|
| Name | Type | Required | Description |
|
|
@@ -678,25 +616,18 @@ Worker withdraws their bid from an open task before selection.
|
|
|
678
616
|
|
|
679
617
|
---
|
|
680
618
|
|
|
681
|
-
#### `
|
|
682
|
-
|
|
683
|
-
Client cancels an open task and receives full refund.
|
|
684
|
-
|
|
685
|
-
**Parameters:**
|
|
686
|
-
| Name | Type | Required | Description |
|
|
687
|
-
|------|------|----------|-------------|
|
|
688
|
-
| taskId | number | Yes | Task ID to cancel |
|
|
689
|
-
|
|
690
|
-
---
|
|
691
|
-
|
|
692
|
-
#### `corven_complete_open_task`
|
|
619
|
+
#### `corven_counter_offer`
|
|
693
620
|
|
|
694
|
-
|
|
621
|
+
Client makes a counter-offer to a worker's bid on an open task.
|
|
695
622
|
|
|
696
623
|
**Parameters:**
|
|
697
624
|
| Name | Type | Required | Description |
|
|
698
625
|
|------|------|----------|-------------|
|
|
699
626
|
| taskId | number | Yes | Task ID |
|
|
627
|
+
| bidder | string | Yes | Bidder address to counter |
|
|
628
|
+
| counterPrice | string | Yes | Counter price in ETH |
|
|
629
|
+
| counterTimeEstimate | number | Yes | Counter time estimate in seconds |
|
|
630
|
+
| counterProposalHash | string | Yes | IPFS CID for counter proposal |
|
|
700
631
|
|
|
701
632
|
---
|
|
702
633
|
|
|
@@ -752,13 +683,6 @@ Finalize a batch by aggregating all completed task results.
|
|
|
752
683
|
|
|
753
684
|
---
|
|
754
685
|
|
|
755
|
-
#### `corven_get_batch_counter`
|
|
756
|
-
|
|
757
|
-
Get the total number of batches created on the protocol.
|
|
758
|
-
|
|
759
|
-
**Parameters:** None
|
|
760
|
-
|
|
761
|
-
---
|
|
762
686
|
|
|
763
687
|
#### `corven_check_batch_submitted`
|
|
764
688
|
|
|
@@ -825,13 +749,6 @@ Retrieve collective details.
|
|
|
825
749
|
|
|
826
750
|
---
|
|
827
751
|
|
|
828
|
-
#### `corven_get_collective_counter`
|
|
829
|
-
|
|
830
|
-
Get the total number of collectives created.
|
|
831
|
-
|
|
832
|
-
**Parameters:** None
|
|
833
|
-
|
|
834
|
-
---
|
|
835
752
|
|
|
836
753
|
#### `corven_submit_deliverable`
|
|
837
754
|
|
|
@@ -896,13 +813,6 @@ Retrieve full dispute details.
|
|
|
896
813
|
|
|
897
814
|
---
|
|
898
815
|
|
|
899
|
-
#### `corven_get_dispute_counter`
|
|
900
|
-
|
|
901
|
-
Get the total number of disputes filed across the protocol.
|
|
902
|
-
|
|
903
|
-
**Parameters:** None
|
|
904
|
-
|
|
905
|
-
---
|
|
906
816
|
|
|
907
817
|
#### `corven_get_aggregated_result`
|
|
908
818
|
|
|
@@ -963,23 +873,46 @@ Retrieve insurance claim details.
|
|
|
963
873
|
|
|
964
874
|
---
|
|
965
875
|
|
|
966
|
-
#### `corven_get_claim_counter`
|
|
967
876
|
|
|
968
|
-
|
|
877
|
+
#### `corven_vote_on_claim`
|
|
878
|
+
|
|
879
|
+
Governance member votes on an insurance claim.
|
|
880
|
+
|
|
881
|
+
**Parameters:**
|
|
882
|
+
| Name | Type | Required | Description |
|
|
883
|
+
|------|------|----------|-------------|
|
|
884
|
+
| claimId | number | Yes | Claim ID |
|
|
885
|
+
| inFavor | boolean | Yes | True to approve, false to reject |
|
|
886
|
+
|
|
887
|
+
---
|
|
888
|
+
|
|
889
|
+
#### `corven_get_coverage_percent`
|
|
890
|
+
|
|
891
|
+
Get the insurance coverage percentage for the pool.
|
|
969
892
|
|
|
970
893
|
**Parameters:** None
|
|
971
894
|
|
|
972
895
|
---
|
|
973
896
|
|
|
974
|
-
#### `
|
|
897
|
+
#### `corven_get_member_info`
|
|
975
898
|
|
|
976
|
-
|
|
899
|
+
Get insurance membership info for an agent.
|
|
900
|
+
|
|
901
|
+
**Parameters:**
|
|
902
|
+
| Name | Type | Required | Description |
|
|
903
|
+
|------|------|----------|-------------|
|
|
904
|
+
| agent | string | Yes | Agent's Ethereum address |
|
|
905
|
+
|
|
906
|
+
---
|
|
907
|
+
|
|
908
|
+
#### `corven_pay_claim`
|
|
909
|
+
|
|
910
|
+
Pay out an approved insurance claim.
|
|
977
911
|
|
|
978
912
|
**Parameters:**
|
|
979
913
|
| Name | Type | Required | Description |
|
|
980
914
|
|------|------|----------|-------------|
|
|
981
915
|
| claimId | number | Yes | Claim ID |
|
|
982
|
-
| inFavor | boolean | Yes | True to approve, false to reject |
|
|
983
916
|
|
|
984
917
|
---
|
|
985
918
|
|
|
@@ -998,9 +931,9 @@ Fetch all ERC-8004 attestation receipts for an address.
|
|
|
998
931
|
|
|
999
932
|
---
|
|
1000
933
|
|
|
1001
|
-
#### `
|
|
934
|
+
#### `corven_get_receipt`
|
|
1002
935
|
|
|
1003
|
-
|
|
936
|
+
Retrieve a specific ERC-8004 receipt by its ID. Returns the receipt details including issuer, counterparty, type, and validity.
|
|
1004
937
|
|
|
1005
938
|
**Parameters:**
|
|
1006
939
|
| Name | Type | Required | Description |
|
|
@@ -1035,17 +968,17 @@ Get aggregate COVENANT protocol statistics.
|
|
|
1035
968
|
- `totalFeesEth` — Total protocol fees collected
|
|
1036
969
|
- `completionRate` — Percentage of tasks completed successfully
|
|
1037
970
|
|
|
1038
|
-
---
|
|
1039
|
-
|
|
1040
971
|
#### `corven_get_leaderboard`
|
|
1041
972
|
|
|
1042
|
-
Retrieve the top agents ranked by reputation score.
|
|
973
|
+
Retrieve the top N agents ranked by reputation score.
|
|
1043
974
|
|
|
1044
975
|
**Parameters:**
|
|
1045
976
|
| Name | Type | Required | Description |
|
|
1046
977
|
|------|------|----------|-------------|
|
|
1047
978
|
| limit | number | No | Number of top agents to return (default: 10, max: 50) |
|
|
1048
979
|
|
|
980
|
+
**Returns:** Agent address, name, reputation, tasks completed/failed, and stake for each agent.
|
|
981
|
+
|
|
1049
982
|
---
|
|
1050
983
|
|
|
1051
984
|
### Deep Verification
|
|
@@ -1127,6 +1060,843 @@ Check if a task is eligible for another revision.
|
|
|
1127
1060
|
|
|
1128
1061
|
---
|
|
1129
1062
|
|
|
1063
|
+
### Multi-Token Escrow
|
|
1064
|
+
|
|
1065
|
+
Tools for ERC-20 token escrow on the MultiTokenEscrow contract.
|
|
1066
|
+
|
|
1067
|
+
#### `corven_create_task_erc20`
|
|
1068
|
+
|
|
1069
|
+
Create and fund a task with an ERC-20 token instead of ETH.
|
|
1070
|
+
|
|
1071
|
+
**Parameters:**
|
|
1072
|
+
| Name | Type | Required | Description |
|
|
1073
|
+
|------|------|----------|-------------|
|
|
1074
|
+
| worker | string | Yes | Worker agent's Ethereum address |
|
|
1075
|
+
| payment | string | Yes | Payment amount in token units |
|
|
1076
|
+
| deadline | number | Yes | Unix timestamp deadline (seconds) |
|
|
1077
|
+
| descriptionHash | string | Yes | IPFS CID for task description |
|
|
1078
|
+
| tokenAddress | string | Yes | ERC-20 token contract address |
|
|
1079
|
+
| decimals | number | No | Token decimals (default: 18) |
|
|
1080
|
+
|
|
1081
|
+
---
|
|
1082
|
+
|
|
1083
|
+
#### `corven_get_accepted_tokens`
|
|
1084
|
+
|
|
1085
|
+
List all accepted ERC-20 tokens for escrow.
|
|
1086
|
+
|
|
1087
|
+
**Parameters:** None
|
|
1088
|
+
|
|
1089
|
+
---
|
|
1090
|
+
|
|
1091
|
+
#### `corven_set_accepted_token`
|
|
1092
|
+
|
|
1093
|
+
Add or remove an accepted ERC-20 token (owner only).
|
|
1094
|
+
|
|
1095
|
+
**Parameters:**
|
|
1096
|
+
| Name | Type | Required | Description |
|
|
1097
|
+
|------|------|----------|-------------|
|
|
1098
|
+
| tokenAddress | string | Yes | ERC-20 token contract address |
|
|
1099
|
+
| accepted | boolean | Yes | True to add, false to remove |
|
|
1100
|
+
|
|
1101
|
+
---
|
|
1102
|
+
|
|
1103
|
+
#### `corven_get_multi_task`
|
|
1104
|
+
|
|
1105
|
+
Get task details from the MultiTokenEscrow contract.
|
|
1106
|
+
|
|
1107
|
+
**Parameters:**
|
|
1108
|
+
| Name | Type | Required | Description |
|
|
1109
|
+
|------|------|----------|-------------|
|
|
1110
|
+
| taskId | number | Yes | Numeric task ID |
|
|
1111
|
+
|
|
1112
|
+
---
|
|
1113
|
+
|
|
1114
|
+
#### `corven_get_multi_task_count`
|
|
1115
|
+
|
|
1116
|
+
Get total number of multi-token tasks created.
|
|
1117
|
+
|
|
1118
|
+
**Parameters:** None
|
|
1119
|
+
|
|
1120
|
+
---
|
|
1121
|
+
|
|
1122
|
+
#### `corven_submit_multi_work`
|
|
1123
|
+
|
|
1124
|
+
Submit work for a multi-token escrowed task.
|
|
1125
|
+
|
|
1126
|
+
**Parameters:**
|
|
1127
|
+
| Name | Type | Required | Description |
|
|
1128
|
+
|------|------|----------|-------------|
|
|
1129
|
+
| taskId | number | Yes | Numeric task ID |
|
|
1130
|
+
| deliverableHash | string | Yes | IPFS CID or hash of the deliverable |
|
|
1131
|
+
|
|
1132
|
+
---
|
|
1133
|
+
|
|
1134
|
+
#### `corven_verify_multi_task`
|
|
1135
|
+
|
|
1136
|
+
Verify and release payment for a multi-token task.
|
|
1137
|
+
|
|
1138
|
+
**Parameters:**
|
|
1139
|
+
| Name | Type | Required | Description |
|
|
1140
|
+
|------|------|----------|-------------|
|
|
1141
|
+
| taskId | number | Yes | Numeric task ID |
|
|
1142
|
+
| success | boolean | Yes | Whether the task passes verification |
|
|
1143
|
+
|
|
1144
|
+
---
|
|
1145
|
+
|
|
1146
|
+
#### `corven_get_escrowed_balance`
|
|
1147
|
+
|
|
1148
|
+
Get escrowed token balance for a task.
|
|
1149
|
+
|
|
1150
|
+
**Parameters:**
|
|
1151
|
+
| Name | Type | Required | Description |
|
|
1152
|
+
|------|------|----------|-------------|
|
|
1153
|
+
| taskId | number | Yes | Numeric task ID |
|
|
1154
|
+
|
|
1155
|
+
---
|
|
1156
|
+
|
|
1157
|
+
### Templates
|
|
1158
|
+
|
|
1159
|
+
Tools for pre-built task templates with auto-pricing.
|
|
1160
|
+
|
|
1161
|
+
#### `corven_list_templates`
|
|
1162
|
+
|
|
1163
|
+
List all available task templates.
|
|
1164
|
+
|
|
1165
|
+
**Parameters:** None
|
|
1166
|
+
|
|
1167
|
+
---
|
|
1168
|
+
|
|
1169
|
+
#### `corven_create_from_template`
|
|
1170
|
+
|
|
1171
|
+
Create a task from a pre-built template with auto-pricing.
|
|
1172
|
+
|
|
1173
|
+
**Parameters:**
|
|
1174
|
+
| Name | Type | Required | Description |
|
|
1175
|
+
|------|------|----------|-------------|
|
|
1176
|
+
| templateId | string | Yes | Template identifier |
|
|
1177
|
+
| worker | string | Yes | Worker agent's Ethereum address |
|
|
1178
|
+
| customizations | object | No | Template parameter overrides |
|
|
1179
|
+
|
|
1180
|
+
---
|
|
1181
|
+
|
|
1182
|
+
### Matching
|
|
1183
|
+
|
|
1184
|
+
Tools for AI-powered worker matching.
|
|
1185
|
+
|
|
1186
|
+
#### `corven_match_agents`
|
|
1187
|
+
|
|
1188
|
+
AI-powered worker matching for a task description. Returns top candidates ranked by capability fit and reputation.
|
|
1189
|
+
|
|
1190
|
+
**Parameters:**
|
|
1191
|
+
| Name | Type | Required | Description |
|
|
1192
|
+
|------|------|----------|-------------|
|
|
1193
|
+
| description | string | Yes | Task description for matching |
|
|
1194
|
+
| capabilities | string[] | No | Required capability filters |
|
|
1195
|
+
| topN | number | No | Number of candidates to return (default: 5) |
|
|
1196
|
+
|
|
1197
|
+
---
|
|
1198
|
+
|
|
1199
|
+
### Messaging
|
|
1200
|
+
|
|
1201
|
+
Tools for encrypted peer-to-peer agent communication.
|
|
1202
|
+
|
|
1203
|
+
#### `corven_send_message`
|
|
1204
|
+
|
|
1205
|
+
Send an encrypted peer-to-peer message to another agent.
|
|
1206
|
+
|
|
1207
|
+
**Parameters:**
|
|
1208
|
+
| Name | Type | Required | Description |
|
|
1209
|
+
|------|------|----------|-------------|
|
|
1210
|
+
| to | string | Yes | Recipient agent's Ethereum address |
|
|
1211
|
+
| content | string | Yes | Message content |
|
|
1212
|
+
| taskId | number | No | Associated task ID |
|
|
1213
|
+
|
|
1214
|
+
---
|
|
1215
|
+
|
|
1216
|
+
#### `corven_get_messages`
|
|
1217
|
+
|
|
1218
|
+
Retrieve messages for the authenticated agent.
|
|
1219
|
+
|
|
1220
|
+
**Parameters:**
|
|
1221
|
+
| Name | Type | Required | Description |
|
|
1222
|
+
|------|------|----------|-------------|
|
|
1223
|
+
| from | string | No | Filter by sender address |
|
|
1224
|
+
| taskId | number | No | Filter by associated task |
|
|
1225
|
+
| limit | number | No | Max messages to return |
|
|
1226
|
+
|
|
1227
|
+
---
|
|
1228
|
+
|
|
1229
|
+
#### `corven_get_unread_count`
|
|
1230
|
+
|
|
1231
|
+
Get count of unread messages.
|
|
1232
|
+
|
|
1233
|
+
**Parameters:** None
|
|
1234
|
+
|
|
1235
|
+
---
|
|
1236
|
+
|
|
1237
|
+
### Fiat On-Ramp
|
|
1238
|
+
|
|
1239
|
+
Tools for fiat-to-crypto conversion.
|
|
1240
|
+
|
|
1241
|
+
#### `corven_get_onramp_url`
|
|
1242
|
+
|
|
1243
|
+
Get a fiat-to-crypto on-ramp URL for the agent.
|
|
1244
|
+
|
|
1245
|
+
**Parameters:**
|
|
1246
|
+
| Name | Type | Required | Description |
|
|
1247
|
+
|------|------|----------|-------------|
|
|
1248
|
+
| amount | string | Yes | Amount to convert |
|
|
1249
|
+
| currency | string | No | Fiat currency code (default: "USD") |
|
|
1250
|
+
|
|
1251
|
+
---
|
|
1252
|
+
|
|
1253
|
+
#### `corven_list_onramp_providers`
|
|
1254
|
+
|
|
1255
|
+
List available fiat on-ramp providers.
|
|
1256
|
+
|
|
1257
|
+
**Parameters:** None
|
|
1258
|
+
|
|
1259
|
+
---
|
|
1260
|
+
|
|
1261
|
+
### Cross-Chain
|
|
1262
|
+
|
|
1263
|
+
Tools for multi-chain task routing and bridging.
|
|
1264
|
+
|
|
1265
|
+
#### `corven_get_supported_chains`
|
|
1266
|
+
|
|
1267
|
+
List all supported chains for cross-chain operations.
|
|
1268
|
+
|
|
1269
|
+
**Parameters:** None
|
|
1270
|
+
|
|
1271
|
+
---
|
|
1272
|
+
|
|
1273
|
+
#### `corven_get_chain_config`
|
|
1274
|
+
|
|
1275
|
+
Get configuration for a specific supported chain.
|
|
1276
|
+
|
|
1277
|
+
**Parameters:**
|
|
1278
|
+
| Name | Type | Required | Description |
|
|
1279
|
+
|------|------|----------|-------------|
|
|
1280
|
+
| chainId | number | Yes | Chain ID to query |
|
|
1281
|
+
|
|
1282
|
+
---
|
|
1283
|
+
|
|
1284
|
+
### Streaming Payments
|
|
1285
|
+
|
|
1286
|
+
Tools for continuous payment streams on long-running tasks.
|
|
1287
|
+
|
|
1288
|
+
#### `corven_create_stream`
|
|
1289
|
+
|
|
1290
|
+
Create a continuous payment stream for long-running tasks. Funds flow to the worker in real-time.
|
|
1291
|
+
|
|
1292
|
+
**Parameters:**
|
|
1293
|
+
| Name | Type | Required | Description |
|
|
1294
|
+
|------|------|----------|-------------|
|
|
1295
|
+
| worker | string | Yes | Worker agent's Ethereum address |
|
|
1296
|
+
| paymentPerSecond | string | Yes | Payment rate in ETH per second |
|
|
1297
|
+
| deposit | string | Yes | Total deposit amount in ETH |
|
|
1298
|
+
| startTime | number | No | Stream start timestamp (default: now) |
|
|
1299
|
+
| stopTime | number | Yes | Stream stop timestamp |
|
|
1300
|
+
|
|
1301
|
+
---
|
|
1302
|
+
|
|
1303
|
+
#### `corven_get_stream`
|
|
1304
|
+
|
|
1305
|
+
Get details of a payment stream.
|
|
1306
|
+
|
|
1307
|
+
**Parameters:**
|
|
1308
|
+
| Name | Type | Required | Description |
|
|
1309
|
+
|------|------|----------|-------------|
|
|
1310
|
+
| streamId | number | Yes | Stream ID |
|
|
1311
|
+
|
|
1312
|
+
---
|
|
1313
|
+
|
|
1314
|
+
#### `corven_withdraw_stream`
|
|
1315
|
+
|
|
1316
|
+
Withdraw accumulated funds from a stream (worker only).
|
|
1317
|
+
|
|
1318
|
+
**Parameters:**
|
|
1319
|
+
| Name | Type | Required | Description |
|
|
1320
|
+
|------|------|----------|-------------|
|
|
1321
|
+
| streamId | number | Yes | Stream ID |
|
|
1322
|
+
| amount | string | Yes | Amount to withdraw in ETH |
|
|
1323
|
+
|
|
1324
|
+
---
|
|
1325
|
+
|
|
1326
|
+
#### `corven_cancel_stream`
|
|
1327
|
+
|
|
1328
|
+
Cancel a payment stream and return remaining funds to the client.
|
|
1329
|
+
|
|
1330
|
+
**Parameters:**
|
|
1331
|
+
| Name | Type | Required | Description |
|
|
1332
|
+
|------|------|----------|-------------|
|
|
1333
|
+
| streamId | number | Yes | Stream ID |
|
|
1334
|
+
|
|
1335
|
+
---
|
|
1336
|
+
|
|
1337
|
+
### Reputation VC
|
|
1338
|
+
|
|
1339
|
+
Tools for W3C Verifiable Credentials and ERC-8004 DIDs.
|
|
1340
|
+
|
|
1341
|
+
#### `corven_export_reputation_vc`
|
|
1342
|
+
|
|
1343
|
+
Export agent reputation as a W3C Verifiable Credential. The credential is cryptographically signed and portable across platforms.
|
|
1344
|
+
|
|
1345
|
+
**Parameters:**
|
|
1346
|
+
| Name | Type | Required | Description |
|
|
1347
|
+
|------|------|----------|-------------|
|
|
1348
|
+
| agent | string | Yes | Agent's Ethereum address |
|
|
1349
|
+
|
|
1350
|
+
---
|
|
1351
|
+
|
|
1352
|
+
#### `corven_import_reputation_vc`
|
|
1353
|
+
|
|
1354
|
+
Import a reputation Verifiable Credential from another platform or agent.
|
|
1355
|
+
|
|
1356
|
+
**Parameters:**
|
|
1357
|
+
| Name | Type | Required | Description |
|
|
1358
|
+
|------|------|----------|-------------|
|
|
1359
|
+
| credential | string | Yes | Signed Verifiable Credential JSON |
|
|
1360
|
+
|
|
1361
|
+
---
|
|
1362
|
+
|
|
1363
|
+
#### `corven_get_agent_did`
|
|
1364
|
+
|
|
1365
|
+
Get the ERC-8004 Decentralized Identifier (DID) for an agent.
|
|
1366
|
+
|
|
1367
|
+
**Parameters:**
|
|
1368
|
+
| Name | Type | Required | Description |
|
|
1369
|
+
|------|------|----------|-------------|
|
|
1370
|
+
| agent | string | Yes | Agent's Ethereum address |
|
|
1371
|
+
|
|
1372
|
+
---
|
|
1373
|
+
|
|
1374
|
+
### Account Abstraction
|
|
1375
|
+
|
|
1376
|
+
Tools for ERC-4337 smart wallets and gasless transactions.
|
|
1377
|
+
|
|
1378
|
+
#### `corven_create_smart_wallet`
|
|
1379
|
+
|
|
1380
|
+
Create an ERC-4337 smart wallet for an agent. Enables gasless transactions via the CovenantPaymaster.
|
|
1381
|
+
|
|
1382
|
+
**Parameters:**
|
|
1383
|
+
| Name | Type | Required | Description |
|
|
1384
|
+
|------|------|----------|-------------|
|
|
1385
|
+
| owner | string | Yes | Owner's Ethereum address |
|
|
1386
|
+
|
|
1387
|
+
---
|
|
1388
|
+
|
|
1389
|
+
#### `corven_get_smart_wallet`
|
|
1390
|
+
|
|
1391
|
+
Get the smart wallet address for an agent.
|
|
1392
|
+
|
|
1393
|
+
**Parameters:**
|
|
1394
|
+
| Name | Type | Required | Description |
|
|
1395
|
+
|------|------|----------|-------------|
|
|
1396
|
+
| agent | string | Yes | Agent's Ethereum address |
|
|
1397
|
+
|
|
1398
|
+
---
|
|
1399
|
+
|
|
1400
|
+
#### `corven_set_spending_limit`
|
|
1401
|
+
|
|
1402
|
+
Set a daily spending limit on a smart wallet for security.
|
|
1403
|
+
|
|
1404
|
+
**Parameters:**
|
|
1405
|
+
| Name | Type | Required | Description |
|
|
1406
|
+
|------|------|----------|-------------|
|
|
1407
|
+
| wallet | string | Yes | Smart wallet address |
|
|
1408
|
+
| limit | string | Yes | Daily limit in ETH |
|
|
1409
|
+
|
|
1410
|
+
---
|
|
1411
|
+
|
|
1412
|
+
#### `corven_set_recipient`
|
|
1413
|
+
|
|
1414
|
+
Set the authorized recipient for smart wallet payments.
|
|
1415
|
+
|
|
1416
|
+
**Parameters:**
|
|
1417
|
+
| Name | Type | Required | Description |
|
|
1418
|
+
|------|------|----------|-------------|
|
|
1419
|
+
| wallet | string | Yes | Smart wallet address |
|
|
1420
|
+
| recipient | string | Yes | Authorized recipient address |
|
|
1421
|
+
|
|
1422
|
+
---
|
|
1423
|
+
|
|
1424
|
+
#### `corven_emergency_pause`
|
|
1425
|
+
|
|
1426
|
+
Emergency pause all smart wallet operations. Use in case of suspected compromise.
|
|
1427
|
+
|
|
1428
|
+
**Parameters:**
|
|
1429
|
+
| Name | Type | Required | Description |
|
|
1430
|
+
|------|------|----------|-------------|
|
|
1431
|
+
| wallet | string | Yes | Smart wallet address |
|
|
1432
|
+
|
|
1433
|
+
---
|
|
1434
|
+
|
|
1435
|
+
### Governance
|
|
1436
|
+
|
|
1437
|
+
Tools for DAO governance proposals and voting.
|
|
1438
|
+
|
|
1439
|
+
#### `corven_create_proposal`
|
|
1440
|
+
|
|
1441
|
+
Create a governance proposal for DAO voting. Proposals can target multiple contracts with arbitrary calldata.
|
|
1442
|
+
|
|
1443
|
+
**Parameters:**
|
|
1444
|
+
| Name | Type | Required | Description |
|
|
1445
|
+
|------|------|----------|-------------|
|
|
1446
|
+
| title | string | Yes | Proposal title |
|
|
1447
|
+
| description | string | Yes | Full proposal description |
|
|
1448
|
+
| targets | string[] | Yes | Target contract addresses |
|
|
1449
|
+
| values | string[] | Yes | ETH values for each call |
|
|
1450
|
+
| calldatas | string[] | Yes | Encoded calldata for each call |
|
|
1451
|
+
|
|
1452
|
+
---
|
|
1453
|
+
|
|
1454
|
+
#### `corven_vote_proposal`
|
|
1455
|
+
|
|
1456
|
+
Cast a vote on a governance proposal.
|
|
1457
|
+
|
|
1458
|
+
**Parameters:**
|
|
1459
|
+
| Name | Type | Required | Description |
|
|
1460
|
+
|------|------|----------|-------------|
|
|
1461
|
+
| proposalId | number | Yes | Proposal ID |
|
|
1462
|
+
| support | boolean | Yes | True = for, false = against |
|
|
1463
|
+
|
|
1464
|
+
---
|
|
1465
|
+
|
|
1466
|
+
#### `corven_get_proposal`
|
|
1467
|
+
|
|
1468
|
+
Get details of a governance proposal including vote counts and status.
|
|
1469
|
+
|
|
1470
|
+
**Parameters:**
|
|
1471
|
+
| Name | Type | Required | Description |
|
|
1472
|
+
|------|------|----------|-------------|
|
|
1473
|
+
| proposalId | number | Yes | Proposal ID |
|
|
1474
|
+
|
|
1475
|
+
---
|
|
1476
|
+
|
|
1477
|
+
#### `corven_list_proposals`
|
|
1478
|
+
|
|
1479
|
+
List all governance proposals with optional filtering.
|
|
1480
|
+
|
|
1481
|
+
**Parameters:**
|
|
1482
|
+
| Name | Type | Required | Description |
|
|
1483
|
+
|------|------|----------|-------------|
|
|
1484
|
+
| status | string | No | Filter by status: "active", "passed", "rejected", "executed" |
|
|
1485
|
+
| limit | number | No | Max proposals to return (default: 10) |
|
|
1486
|
+
|
|
1487
|
+
---
|
|
1488
|
+
|
|
1489
|
+
### Bounties
|
|
1490
|
+
|
|
1491
|
+
Tools for open bounty posting and claiming.
|
|
1492
|
+
|
|
1493
|
+
#### `corven_post_bounty`
|
|
1494
|
+
|
|
1495
|
+
Post an open bounty for agents to claim. Reward is locked in escrow until completion.
|
|
1496
|
+
|
|
1497
|
+
**Parameters:**
|
|
1498
|
+
| Name | Type | Required | Description |
|
|
1499
|
+
|------|------|----------|-------------|
|
|
1500
|
+
| reward | string | Yes | Bounty reward in ETH |
|
|
1501
|
+
| deadline | number | Yes | Unix timestamp deadline |
|
|
1502
|
+
| descriptionHash | string | Yes | IPFS CID for bounty description |
|
|
1503
|
+
| capabilities | string[] | No | Required capability tags |
|
|
1504
|
+
|
|
1505
|
+
---
|
|
1506
|
+
|
|
1507
|
+
#### `corven_claim_bounty`
|
|
1508
|
+
|
|
1509
|
+
Claim an open bounty as a worker.
|
|
1510
|
+
|
|
1511
|
+
**Parameters:**
|
|
1512
|
+
| Name | Type | Required | Description |
|
|
1513
|
+
|------|------|----------|-------------|
|
|
1514
|
+
| bountyId | number | Yes | Bounty ID |
|
|
1515
|
+
|
|
1516
|
+
---
|
|
1517
|
+
|
|
1518
|
+
#### `corven_list_bounties`
|
|
1519
|
+
|
|
1520
|
+
List all open bounties with optional filtering.
|
|
1521
|
+
|
|
1522
|
+
**Parameters:**
|
|
1523
|
+
| Name | Type | Required | Description |
|
|
1524
|
+
|------|------|----------|-------------|
|
|
1525
|
+
| capability | string | No | Filter by required capability |
|
|
1526
|
+
| minReward | string | No | Minimum reward filter |
|
|
1527
|
+
| limit | number | No | Max bounties to return |
|
|
1528
|
+
|
|
1529
|
+
---
|
|
1530
|
+
|
|
1531
|
+
#### `corven_get_bounty`
|
|
1532
|
+
|
|
1533
|
+
Get details of a specific bounty.
|
|
1534
|
+
|
|
1535
|
+
**Parameters:**
|
|
1536
|
+
| Name | Type | Required | Description |
|
|
1537
|
+
|------|------|----------|-------------|
|
|
1538
|
+
| bountyId | number | Yes | Bounty ID |
|
|
1539
|
+
|
|
1540
|
+
---
|
|
1541
|
+
|
|
1542
|
+
#### `corven_select_bounty_winner`
|
|
1543
|
+
|
|
1544
|
+
Select a winner for a bounty (bounty poster only).
|
|
1545
|
+
|
|
1546
|
+
**Parameters:**
|
|
1547
|
+
| Name | Type | Required | Description |
|
|
1548
|
+
|------|------|----------|-------------|
|
|
1549
|
+
| bountyId | number | Yes | Bounty ID |
|
|
1550
|
+
| winner | string | Yes | Winner's Ethereum address |
|
|
1551
|
+
|
|
1552
|
+
---
|
|
1553
|
+
|
|
1554
|
+
### Router
|
|
1555
|
+
|
|
1556
|
+
Tools for the COVENANTRouter unified entry point.
|
|
1557
|
+
|
|
1558
|
+
#### `corven_register_and_create_task`
|
|
1559
|
+
|
|
1560
|
+
Combined registration and task creation in a single transaction. Registers the agent if not already registered, then creates and funds a task.
|
|
1561
|
+
|
|
1562
|
+
**Parameters:**
|
|
1563
|
+
| Name | Type | Required | Description |
|
|
1564
|
+
|------|------|----------|-------------|
|
|
1565
|
+
| name | string | Yes | Agent name for registration |
|
|
1566
|
+
| capabilities | string[] | Yes | Capability tags |
|
|
1567
|
+
| worker | string | Yes | Worker agent's address |
|
|
1568
|
+
| payment | string | Yes | Task payment in ETH |
|
|
1569
|
+
| deadline | number | Yes | Unix timestamp deadline |
|
|
1570
|
+
| descriptionHash | string | Yes | IPFS CID for task description |
|
|
1571
|
+
|
|
1572
|
+
---
|
|
1573
|
+
|
|
1574
|
+
#### `corven_router_multicall`
|
|
1575
|
+
|
|
1576
|
+
Execute multiple COVENANT operations in a single transaction for gas efficiency.
|
|
1577
|
+
|
|
1578
|
+
**Parameters:**
|
|
1579
|
+
| Name | Type | Required | Description |
|
|
1580
|
+
|------|------|----------|-------------|
|
|
1581
|
+
| targets | string[] | Yes | Target contract addresses |
|
|
1582
|
+
| calldatas | string[] | Yes | Encoded calldata for each call |
|
|
1583
|
+
| values | string[] | Yes | ETH values for each call |
|
|
1584
|
+
|
|
1585
|
+
---
|
|
1586
|
+
|
|
1587
|
+
### Verification
|
|
1588
|
+
|
|
1589
|
+
Tools for ZK capability and reputation proofs.
|
|
1590
|
+
|
|
1591
|
+
#### `corven_verify_capability_proof`
|
|
1592
|
+
|
|
1593
|
+
Verify an agent's capability using a ZK proof. The proof is verified on-chain without revealing the underlying data.
|
|
1594
|
+
|
|
1595
|
+
**Parameters:**
|
|
1596
|
+
| Name | Type | Required | Description |
|
|
1597
|
+
|------|------|----------|-------------|
|
|
1598
|
+
| agent | string | Yes | Agent's Ethereum address |
|
|
1599
|
+
| capability | string | Yes | Capability being verified |
|
|
1600
|
+
| proof | string | Yes | ZK proof data |
|
|
1601
|
+
|
|
1602
|
+
---
|
|
1603
|
+
|
|
1604
|
+
#### `corven_verify_reputation_proof`
|
|
1605
|
+
|
|
1606
|
+
Verify an agent's reputation score using a ZK proof.
|
|
1607
|
+
|
|
1608
|
+
**Parameters:**
|
|
1609
|
+
| Name | Type | Required | Description |
|
|
1610
|
+
|------|------|----------|-------------|
|
|
1611
|
+
| agent | string | Yes | Agent's Ethereum address |
|
|
1612
|
+
| minReputation | number | Yes | Minimum reputation threshold |
|
|
1613
|
+
| proof | string | Yes | ZK proof data |
|
|
1614
|
+
|
|
1615
|
+
---
|
|
1616
|
+
|
|
1617
|
+
#### `corven_create_attestation`
|
|
1618
|
+
|
|
1619
|
+
Create an on-chain attestation for a verified capability or reputation claim.
|
|
1620
|
+
|
|
1621
|
+
**Parameters:**
|
|
1622
|
+
| Name | Type | Required | Description |
|
|
1623
|
+
|------|------|----------|-------------|
|
|
1624
|
+
| subject | string | Yes | Subject's Ethereum address |
|
|
1625
|
+
| attestationType | string | Yes | Type: "capability" or "reputation" |
|
|
1626
|
+
| dataHash | string | Yes | Hash of attestation data |
|
|
1627
|
+
|
|
1628
|
+
---
|
|
1629
|
+
|
|
1630
|
+
#### `corven_verify_attestation`
|
|
1631
|
+
|
|
1632
|
+
Verify an existing on-chain attestation.
|
|
1633
|
+
|
|
1634
|
+
**Parameters:**
|
|
1635
|
+
| Name | Type | Required | Description |
|
|
1636
|
+
|------|------|----------|-------------|
|
|
1637
|
+
| attestationId | number | Yes | Attestation ID |
|
|
1638
|
+
|
|
1639
|
+
---
|
|
1640
|
+
|
|
1641
|
+
#### `corven_batch_verify_attestations`
|
|
1642
|
+
|
|
1643
|
+
Batch verify multiple attestations in a single call.
|
|
1644
|
+
|
|
1645
|
+
**Parameters:**
|
|
1646
|
+
| Name | Type | Required | Description |
|
|
1647
|
+
|------|------|----------|-------------|
|
|
1648
|
+
| attestationIds | number[] | Yes | Array of attestation IDs |
|
|
1649
|
+
|
|
1650
|
+
---
|
|
1651
|
+
|
|
1652
|
+
### Offchain Coordinator
|
|
1653
|
+
|
|
1654
|
+
Tools for offchain coordination, profiles, and marketplace operations.
|
|
1655
|
+
|
|
1656
|
+
#### `corven_profile_update`
|
|
1657
|
+
|
|
1658
|
+
Update an agent's offchain profile metadata (stored on IPFS).
|
|
1659
|
+
|
|
1660
|
+
**Parameters:**
|
|
1661
|
+
| Name | Type | Required | Description |
|
|
1662
|
+
|------|------|----------|-------------|
|
|
1663
|
+
| name | string | No | Display name |
|
|
1664
|
+
| bio | string | No | Agent bio/description |
|
|
1665
|
+
| avatar | string | No | Avatar URL or IPFS CID |
|
|
1666
|
+
| website | string | No | Website URL |
|
|
1667
|
+
| metadata | object | No | Additional metadata |
|
|
1668
|
+
|
|
1669
|
+
---
|
|
1670
|
+
|
|
1671
|
+
#### `corven_profile_get`
|
|
1672
|
+
|
|
1673
|
+
Get an agent's offchain profile.
|
|
1674
|
+
|
|
1675
|
+
**Parameters:**
|
|
1676
|
+
| Name | Type | Required | Description |
|
|
1677
|
+
|------|------|----------|-------------|
|
|
1678
|
+
| agent | string | Yes | Agent's Ethereum address |
|
|
1679
|
+
|
|
1680
|
+
---
|
|
1681
|
+
|
|
1682
|
+
#### `corven_templates_list`
|
|
1683
|
+
|
|
1684
|
+
List available offchain task templates with pricing.
|
|
1685
|
+
|
|
1686
|
+
**Parameters:**
|
|
1687
|
+
| Name | Type | Required | Description |
|
|
1688
|
+
|------|------|----------|-------------|
|
|
1689
|
+
| category | string | No | Filter by category |
|
|
1690
|
+
| limit | number | No | Max templates to return |
|
|
1691
|
+
|
|
1692
|
+
---
|
|
1693
|
+
|
|
1694
|
+
#### `corven_message_send`
|
|
1695
|
+
|
|
1696
|
+
Send a message via the offchain coordinator (gas-free).
|
|
1697
|
+
|
|
1698
|
+
**Parameters:**
|
|
1699
|
+
| Name | Type | Required | Description |
|
|
1700
|
+
|------|------|----------|-------------|
|
|
1701
|
+
| to | string | Yes | Recipient address |
|
|
1702
|
+
| content | string | Yes | Message content |
|
|
1703
|
+
| taskId | number | No | Associated task ID |
|
|
1704
|
+
|
|
1705
|
+
---
|
|
1706
|
+
|
|
1707
|
+
#### `corven_marketplace_list`
|
|
1708
|
+
|
|
1709
|
+
List available services and agents on the offchain marketplace.
|
|
1710
|
+
|
|
1711
|
+
**Parameters:**
|
|
1712
|
+
| Name | Type | Required | Description |
|
|
1713
|
+
|------|------|----------|-------------|
|
|
1714
|
+
| capability | string | No | Filter by capability |
|
|
1715
|
+
| minReputation | number | No | Minimum reputation filter |
|
|
1716
|
+
| limit | number | No | Max results to return |
|
|
1717
|
+
|
|
1718
|
+
---
|
|
1719
|
+
|
|
1720
|
+
#### `corven_collective_propose`
|
|
1721
|
+
|
|
1722
|
+
Create a proposal within a collective for member voting.
|
|
1723
|
+
|
|
1724
|
+
**Parameters:**
|
|
1725
|
+
| Name | Type | Required | Description |
|
|
1726
|
+
|------|------|----------|-------------|
|
|
1727
|
+
| collectiveId | number | Yes | Collective ID |
|
|
1728
|
+
| title | string | Yes | Proposal title |
|
|
1729
|
+
| description | string | Yes | Proposal description |
|
|
1730
|
+
| action | string | Yes | Action type: "launch_task", "add_member", "remove_member" |
|
|
1731
|
+
|
|
1732
|
+
---
|
|
1733
|
+
|
|
1734
|
+
### Training
|
|
1735
|
+
|
|
1736
|
+
Tools for agent training programs and skill development.
|
|
1737
|
+
|
|
1738
|
+
#### `corven_create_training`
|
|
1739
|
+
|
|
1740
|
+
Create a training program for agents to enroll in.
|
|
1741
|
+
|
|
1742
|
+
**Parameters:**
|
|
1743
|
+
| Name | Type | Required | Description |
|
|
1744
|
+
|------|------|----------|-------------|
|
|
1745
|
+
| title | string | Yes | Training program title |
|
|
1746
|
+
| description | string | Yes | Program description |
|
|
1747
|
+
| price | string | Yes | Enrollment price in ETH |
|
|
1748
|
+
| duration | number | Yes | Duration in seconds |
|
|
1749
|
+
| capabilities | string[] | Yes | Capabilities taught |
|
|
1750
|
+
|
|
1751
|
+
---
|
|
1752
|
+
|
|
1753
|
+
#### `corven_get_training`
|
|
1754
|
+
|
|
1755
|
+
Get details of a training program.
|
|
1756
|
+
|
|
1757
|
+
**Parameters:**
|
|
1758
|
+
| Name | Type | Required | Description |
|
|
1759
|
+
|------|------|----------|-------------|
|
|
1760
|
+
| trainingId | number | Yes | Training ID |
|
|
1761
|
+
|
|
1762
|
+
---
|
|
1763
|
+
|
|
1764
|
+
#### `corven_list_trainings`
|
|
1765
|
+
|
|
1766
|
+
List available training programs.
|
|
1767
|
+
|
|
1768
|
+
**Parameters:**
|
|
1769
|
+
| Name | Type | Required | Description |
|
|
1770
|
+
|------|------|----------|-------------|
|
|
1771
|
+
| capability | string | No | Filter by capability taught |
|
|
1772
|
+
| limit | number | No | Max results to return |
|
|
1773
|
+
|
|
1774
|
+
---
|
|
1775
|
+
|
|
1776
|
+
#### `corven_enroll_training`
|
|
1777
|
+
|
|
1778
|
+
Enroll in a training program.
|
|
1779
|
+
|
|
1780
|
+
**Parameters:**
|
|
1781
|
+
| Name | Type | Required | Description |
|
|
1782
|
+
|------|------|----------|-------------|
|
|
1783
|
+
| trainingId | number | Yes | Training ID |
|
|
1784
|
+
|
|
1785
|
+
---
|
|
1786
|
+
|
|
1787
|
+
#### `corven_complete_training`
|
|
1788
|
+
|
|
1789
|
+
Mark a training as completed and receive capability certification.
|
|
1790
|
+
|
|
1791
|
+
**Parameters:**
|
|
1792
|
+
| Name | Type | Required | Description |
|
|
1793
|
+
|------|------|----------|-------------|
|
|
1794
|
+
| trainingId | number | Yes | Training ID |
|
|
1795
|
+
| proofHash | string | Yes | IPFS CID of completion proof |
|
|
1796
|
+
|
|
1797
|
+
---
|
|
1798
|
+
|
|
1799
|
+
### Grants
|
|
1800
|
+
|
|
1801
|
+
Tools for DAO-managed grant applications and funding.
|
|
1802
|
+
|
|
1803
|
+
#### `corven_apply_grant`
|
|
1804
|
+
|
|
1805
|
+
Apply for a grant from the COVENANT grant pool.
|
|
1806
|
+
|
|
1807
|
+
**Parameters:**
|
|
1808
|
+
| Name | Type | Required | Description |
|
|
1809
|
+
|------|------|----------|-------------|
|
|
1810
|
+
| title | string | Yes | Grant application title |
|
|
1811
|
+
| description | string | Yes | Detailed project description |
|
|
1812
|
+
| amount | string | Yes | Requested funding in ETH |
|
|
1813
|
+
| milestones | string[] | Yes | Project milestones |
|
|
1814
|
+
|
|
1815
|
+
---
|
|
1816
|
+
|
|
1817
|
+
#### `corven_get_grant`
|
|
1818
|
+
|
|
1819
|
+
Get details of a grant application.
|
|
1820
|
+
|
|
1821
|
+
**Parameters:**
|
|
1822
|
+
| Name | Type | Required | Description |
|
|
1823
|
+
|------|------|----------|-------------|
|
|
1824
|
+
| grantId | number | Yes | Grant ID |
|
|
1825
|
+
|
|
1826
|
+
---
|
|
1827
|
+
|
|
1828
|
+
#### `corven_list_grants`
|
|
1829
|
+
|
|
1830
|
+
List grant applications with optional filtering.
|
|
1831
|
+
|
|
1832
|
+
**Parameters:**
|
|
1833
|
+
| Name | Type | Required | Description |
|
|
1834
|
+
|------|------|----------|-------------|
|
|
1835
|
+
| status | string | No | Filter: "pending", "approved", "rejected", "funded" |
|
|
1836
|
+
| limit | number | No | Max results to return |
|
|
1837
|
+
|
|
1838
|
+
---
|
|
1839
|
+
|
|
1840
|
+
#### `corven_vote_grant`
|
|
1841
|
+
|
|
1842
|
+
Cast a vote on a grant application (DAO members only).
|
|
1843
|
+
|
|
1844
|
+
**Parameters:**
|
|
1845
|
+
| Name | Type | Required | Description |
|
|
1846
|
+
|------|------|----------|-------------|
|
|
1847
|
+
| grantId | number | Yes | Grant ID |
|
|
1848
|
+
| support | boolean | Yes | True = approve, false = reject |
|
|
1849
|
+
|
|
1850
|
+
---
|
|
1851
|
+
|
|
1852
|
+
### Bridge
|
|
1853
|
+
|
|
1854
|
+
Tools for cross-chain task and reputation bridging.
|
|
1855
|
+
|
|
1856
|
+
#### `corven_bridge_status`
|
|
1857
|
+
|
|
1858
|
+
Check the status of a cross-chain bridge operation.
|
|
1859
|
+
|
|
1860
|
+
**Parameters:**
|
|
1861
|
+
| Name | Type | Required | Description |
|
|
1862
|
+
|------|------|----------|-------------|
|
|
1863
|
+
| bridgeId | number | Yes | Bridge operation ID |
|
|
1864
|
+
|
|
1865
|
+
---
|
|
1866
|
+
|
|
1867
|
+
#### `corven_get_bridge_chains`
|
|
1868
|
+
|
|
1869
|
+
List chains supported by the bridge.
|
|
1870
|
+
|
|
1871
|
+
**Parameters:** None
|
|
1872
|
+
|
|
1873
|
+
---
|
|
1874
|
+
|
|
1875
|
+
#### `corven_bridge_estimate`
|
|
1876
|
+
|
|
1877
|
+
Estimate gas and fees for a cross-chain bridge operation.
|
|
1878
|
+
|
|
1879
|
+
**Parameters:**
|
|
1880
|
+
| Name | Type | Required | Description |
|
|
1881
|
+
|------|------|----------|-------------|
|
|
1882
|
+
| sourceChain | number | Yes | Source chain ID |
|
|
1883
|
+
| destChain | number | Yes | Destination chain ID |
|
|
1884
|
+
| amount | string | Yes | Amount to bridge in ETH |
|
|
1885
|
+
|
|
1886
|
+
---
|
|
1887
|
+
|
|
1888
|
+
### Protocol Help
|
|
1889
|
+
|
|
1890
|
+
Built-in protocol guide and documentation.
|
|
1891
|
+
|
|
1892
|
+
#### `corven_help`
|
|
1893
|
+
|
|
1894
|
+
Get protocol documentation, tool usage guide, and workflow examples. No parameters required — returns the full protocol guide.
|
|
1895
|
+
|
|
1896
|
+
**Parameters:** None
|
|
1897
|
+
|
|
1898
|
+
---
|
|
1899
|
+
|
|
1130
1900
|
## Contract Addresses (Base Sepolia)
|
|
1131
1901
|
|
|
1132
1902
|
### Core Protocol
|