Basic Query API
URL
This URL is the default node URL. To operate on other nodes, simply replace it.
https://hymatrix.ai
Each process has fixed nodes. Transactions must be sent on these fixed nodes to succeed. You can obtain the corresponding nodes via getNodesByProcess.
info
Retrieve basic information about the HyMatrix network, such as Protocol (name), Variant (version), and Node (default node information).
Parameters
GET https://hymatrix.ai/info
Response Fields
| Field | Description |
|---|---|
Protocol | Protocol name, "hymx" represents the HyMatrix protocol. |
Variant | Protocol version, e.g., "v0.1.1", used to identify the specification version. |
Join-Network | Boolean indicating whether joined the network, true means participating in the Hymx network. |
Token | ProcessId of the Token. |
Registry | Identifier or address of the registry, used for node registration. |
Node | Default Node information, including node details. |
Node Field Descriptions
| Field | Description |
|---|---|
Node.Acc-Id | Node account address. |
Node.Name | Node name. |
Node.Role | Node role. |
Node.Desc | Node description. |
Node.URL | Accessible URL of the node. Use this URL for queries or to send transactions. |
Example
curl --location --request GET "https://hymatrix.ai/info"
Return
{
"Protocol": "hymx",
"Variant": "v0.1.1",
"Join-Network": true,
"Token": "fHQbzw6acg2nqmCqzdr2GFaeoGzcRd0paVTD2kMGyU4",
"Registry": "O-0_O4TgYYnA4VHw2EtHR6NafN_ZRRlX0uxkbUMto6g",
"Node": {
"Acc-Id": "0x18b4bA4c118279b3eB60a2DB1E794Bc41AFC1D37",
"Name": "testMainNode",
"Role": "main",
"Desc": "first test node",
"URL": "https://hymatrix.ai"
}
}
getResult
Retrieve the corresponding result using the known messageId,processId.
Parameters
GET https://hymatrix.ai/result/{{processId}}/{{messageId}}
| Field | Required | Description |
|---|---|---|
| processId | YES | processId: The process address |
| messageId | YES | messageId: The id obtained after initiating the transaction |
Field Descriptions
| Field | Description |
|---|---|
Nonce | Random number generated for the transaction. Transactions can be queried using Token processId and Nonce. |
Timestamp | Timestamp when the transaction occurred. |
Item-Id | Unique identifier generated for the current transaction. |
From-Process | Source process of the transaction. |
Pushed-For | Target process or account the transaction is pushed for. |
Messages | Contains Sequence (message sequence), Target (wallet address sending the transaction), Data (text message), and Tags (a set of tag labels). |
Spawns | Spawned processes or transactions. |
Assignments | Assignment information related to the transaction. |
Output | Output data of the transaction. |
Data | Text data of the transaction. |
Error | Error information, if any. |
Example
curl --location --request GET "https://hymatrix.ai/result/MCPViI-PoApCqRfjHtxAiryq9pM_7zk1MkbjSSCZSqI"
Return
{
"Nonce": "334",
"Timestamp": "1757506515032",
"Item-Id": "MCPViI-PoApCqRfjHtxAiryq9pM_7zk1MkbjSSCZSqI",
"From-Process": "fHQbzw6acg2nqmCqzdr2GFaeoGzcRd0paVTD2kMGyU4",
"Pushed-For": "MCPViI-PoApCqRfjHtxAiryq9pM_7zk1MkbjSSCZSqI",
"Messages": [
{
"Sequence": "659",
"Target": "0xf043cCE8C500Aaa3EA348c0B6025CEb6D336882F",
"Data": "You staked 1000000000000",
"Tags": [
{
"name": "Ticker",
"value": "tAX"
},
{
"name": "Action",
"value": "Stake-Notice"
},
{
"name": "Quantity",
"value": "1000000000000"
}
]
},
{
"Sequence": "660",
"Target": "O-0_O4TgYYnA4VHw2EtHR6NafN_ZRRlX0uxkbUMto6g",
"Tags": [
{
"name": "Action",
"value": "Register"
},
{
"name": "Acc-Id",
"value": "0xf043cCE8C500Aaa3EA348c0B6025CEb6D336882F"
},
{
"name": "Name",
"value": "test1"
},
{
"name": "Role",
"value": "follower"
},
{
"name": "Desc",
"value": "first test node"
},
{
"name": "URL",
"value": "http://101.32.221.225:8080"
}
]
}
],
"Spawns": null,
"Assignmengts": null,
"Output": null,
"Data": "",
"Error": ""
}
getResults
Retrieve the corresponding list of result information using the known processId.
Parameters
GET https://hymatrix.ai/results/{{processId}}?limit={{limit}}
| Query Field | Required | Description |
|---|---|---|
| processId | YES | processId: The process address |
| limit | NO | Number of results to query |
Field Descriptions
| Field | Description |
|---|---|
edges | List of transaction records, containing cursor (pagination cursor) and node (transaction information, including Nonce, Item-Id, Messages, etc.) |
Example
curl --location --request GET "https://hymatrix.ai/results/fHQbzw6acg2nqmCqzdr2GFaeoGzcRd0paVTD2kMGyU4?limit=1"
Return
{
"edges": [
{
"cursor": "eyJ0aW1lc3RhbXAiOjE3NTc1MDY1MTUwMzIsIm9yZGluYXRlIjozMzQsImNyb24iOiIxLTEwLW1pbnV0ZXMiLCJzb3J0IjoiQVNDIn0",
"node": {
"Nonce": "334",
"Timestamp": "1757506515032",
"Item-Id": "MCPViI-PoApCqRfjHtxAiryq9pM_7zk1MkbjSSCZSqI",
"From-Process": "fHQbzw6acg2nqmCqzdr2GFaeoGzcRd0paVTD2kMGyU4",
"Pushed-For": "MCPViI-PoApCqRfjHtxAiryq9pM_7zk1MkbjSSCZSqI",
"Messages": [
{
"Sequence": "659",
"Target": "0xf043cCE8C500Aaa3EA348c0B6025CEb6D336882F",
"Data": "You staked 1000000000000",
"Tags": [
{
"name": "Ticker",
"value": "tAX"
},
{
"name": "Action",
"value": "Stake-Notice"
},
{
"name": "Quantity",
"value": "1000000000000"
}
]
},
{
"Sequence": "660",
"Target": "O-0_O4TgYYnA4VHw2EtHR6NafN_ZRRlX0uxkbUMto6g",
"Tags": [
{
"name": "Action",
"value": "Register"
},
{
"name": "Acc-Id",
"value": "0xf043cCE8C500Aaa3EA348c0B6025CEb6D336882F"
},
{
"name": "Name",
"value": "test1"
},
{
"name": "Role",
"value": "follower"
},
{
"name": "Desc",
"value": "first test node"
},
{
"name": "URL",
"value": "http://101.32.221.225:8080"
}
]
}
],
"Spawns": null,
"Assignmengts": null,
"Output": null,
"Data": "",
"Error": ""
}
},
// ...
]
}
getMessage
Retrieve the corresponding Messages information using the known messageId.
Parameters
GET https://hymatrix.ai/message/{{messageId}}
| Field | Required | Description |
|---|---|---|
| messageId | YES | messageId: The id obtained after initiating the transaction |
Field Descriptions
| Field | Description |
|---|---|
signatureType | Type of signature algorithm, here 3 represents RSA-PSS (Arweave default signing scheme). |
signature | Signature string of the transaction initiator, used to verify the message source. |
owner | Encoded information of the wallet initiating the transaction. |
target | processId of the target. |
anchor | '' |
tags | A set of tag labels. |
data | Signed data. |
id | Identifier of the Messages. |
tagsBy | Encoded tag information. |
Example
curl --location --request GET "https://hymatrix.ai/message/1GEJIJ2uxWZQU4quOnswDOKE9eMHmfLd25ouRvAnYX0"
Return
{
"signatureType": 3,
"signature": "aBg4BXyxsKIaaNs_cJ5XsLuLbtW772EV8XCaxcDdSypIOJR38IuU-XYn8Xp4Sw4UOe3RHHTL3Q4VINBj_LtfLRs",
"owner": "BCELKi--SONX-yQEKBsip4rFtfrkvXA92fty79n4BrpVTraktwCBPhZOlQC_jukezZ3kO1qZcdNnpfIGZVd7V-Y",
"target": "fHQbzw6acg2nqmCqzdr2GFaeoGzcRd0paVTD2kMGyU4",
"anchor": "",
"tags": [
{
"name": "SDK-Timestamp",
"value": "1757506904708315269"
},
{
"name": "Data-Protocol",
"value": "hymx"
},
{
"name": "Variant",
"value": "v0.1.0"
},
{
"name": "Type",
"value": "Message"
},
{
"name": "Action",
"value": "Stake"
},
{
"name": "Quantity",
"value": "1000000000000"
},
{
"name": "Registry",
"value": "O-0_O4TgYYnA4VHw2EtHR6NafN_ZRRlX0uxkbUMto6g"
},
{
"name": "Acc-Id",
"value": "0xf043cCE8C500Aaa3EA348c0B6025CEb6D336882F"
},
{
"name": "Name",
"value": "test1"
},
{
"name": "Desc",
"value": "first test node"
},
{
"name": "URL",
"value": "http://101.32.221.225:8080"
}
],
"data": "",
"id": "1GEJIJ2uxWZQU4quOnswDOKE9eMHmfLd25ouRvAnYX0",
"tagsBy": "FhpTREstVGltZXN0YW1wJjE3NTc1MDY5MDQ3MDgzMTUyNjkaRGF0YS1Qcm90b2NvbAhoeW14DlZhcmlhbnQMdjAuMS4wCFR5cGUOTWVzc2FnZQxBY3Rpb24KU3Rha2UQUXVhbnRpdHkaMTAwMDAwMDAwMDAwMBBSZWdpc3RyeVZPLTBfTzRUZ1lZbkE0Vkh3MkV0SFI2TmFmTl9aUlJsWDB1eGtiVU10bzZnDEFjYy1JZFQweGYwNDNjQ0U4QzUwMEFhYTNFQTM0OGMwQjYwMjVDRWI2RDMzNjg4MkYITmFtZQp0ZXN0MQhEZXNjHmZpcnN0IHRlc3Qgbm9kZQZVUkw0aHR0cDovLzEwMS4zMi4yMjEuMjI1OjgwODAA"
}
getMessageByNonce
Retrieve the corresponding Messages information using the known processId and nonce.
Parameters
GET https://hymatrix.ai/messageByNonce/{{processId}}/{{nonce}}
| Field | Required | Description |
|---|---|---|
| processId | YES | processId: The process address |
| nonce | YES | Random number from the transaction |
Field Descriptions
| Field | Description |
|---|---|
signatureType | Signature algorithm type; here 3 represents RSA-PSS (Arweave default signing scheme). |
signature | Signature string from the transaction initiator, used to verify the message source. |
owner | Encoded information of the wallet initiating the transaction. |
target | processId of the target. |
anchor | '' |
tags | A set of tag labels. |
data | Signed data. |
id | Identifier of the Messages. |
tagsBy | Encoded tag information. |
Example
curl --location --request GET "https://hymatrix.ai/messageByNonce/fHQbzw6acg2nqmCqzdr2GFaeoGzcRd0paVTD2kMGyU4/338"
Return
{
"signatureType": 3,
"signature": "aBg4BXyxsKIaaNs_cJ5XsLuLbtW772EV8XCaxcDdSypIOJR38IuU-XYn8Xp4Sw4UOe3RHHTL3Q4VINBj_LtfLRs",
"owner": "BCELKi--SONX-yQEKBsip4rFtfrkvXA92fty79n4BrpVTraktwCBPhZOlQC_jukezZ3kO1qZcdNnpfIGZVd7V-Y",
"target": "fHQbzw6acg2nqmCqzdr2GFaeoGzcRd0paVTD2kMGyU4",
"anchor": "",
"tags": [
{
"name": "SDK-Timestamp",
"value": "1757506904708315269"
},
{
"name": "Data-Protocol",
"value": "hymx"
},
{
"name": "Variant",
"value": "v0.1.0"
},
{
"name": "Type",
"value": "Message"
},
{
"name": "Action",
"value": "Stake"
},
{
"name": "Quantity",
"value": "1000000000000"
},
{
"name": "Registry",
"value": "O-0_O4TgYYnA4VHw2EtHR6NafN_ZRRlX0uxkbUMto6g"
},
{
"name": "Acc-Id",
"value": "0xf043cCE8C500Aaa3EA348c0B6025CEb6D336882F"
},
{
"name": "Name",
"value": "test1"
},
{
"name": "Desc",
"value": "first test node"
},
{
"name": "URL",
"value": "http://101.32.221.225:8080"
}
],
"data": "",
"id": "1GEJIJ2uxWZQU4quOnswDOKE9eMHmfLd25ouRvAnYX0",
"tagsBy": "FhpTREstVGltZXN0YW1wJjE3NTc1MDY5MDQ3MDgzMTUyNjkaRGF0YS1Qcm90b2NvbAhoeW14DlZhcmlhbnQMdjAuMS4wCFR5cGUOTWVzc2FnZQxBY3Rpb24KU3Rha2UQUXVhbnRpdHkaMTAwMDAwMDAwMDAwMBBSZWdpc3RyeVZPLTBfTzRUZ1lZbkE0Vkh3MkV0SFI2TmFmTl9aUlJsWDB1eGtiVU10bzZnDEFjYy1JZFQweGYwNDNjQ0U4QzUwMEFhYTNFQTM0OGMwQjYwMjVDRWI2RDMzNjg4MkYITmFtZQp0ZXN0MQhEZXNjHmZpcnN0IHRlc3Qgbm9kZQZVUkw0aHR0cDovLzEwMS4zMi4yMjEuMjI1OjgwODAA"
}
getAssignByNonce
Retrieve the corresponding Assign list information using the known processId and nonce.
Parameters
GET https://hymatrix.ai/assignmentByNonce/{{processId}}/{{nonce}}
| Field | Required | Description |
|---|---|---|
| processId | YES | processId: The process address |
| nonce | YES | Random number from the transaction |
Field Descriptions
| Field | Description |
|---|---|
signatureType | Signature algorithm type; here 3 represents RSA-PSS (Arweave default signing scheme). |
signature | Signature string from the transaction initiator. |
owner | Encoded information of the wallet initiating the transaction. |
target | '' |
anchor | '' |
tags | A set of tag labels. |
data | Signed data. |
id | Identifier of the Assign. |
tagsBy | Encoded tag information. |
Example
curl --location --request GET "https://hymatrix.ai/assignmentByNonce/fHQbzw6acg2nqmCqzdr2GFaeoGzcRd0paVTD2kMGyU4/338"
Return
{
"signatureType": 3,
"signature": "1TzKoJzunGG38kurXqvSIjbpQr1h5GWfXrjglhn9h7Qn2vxx9iGG2pkANvV1UgdPfhQs_XdLoooGkx2PisPT5hw",
"owner": "BEJ4yO_ZafTwXM5YzYXS_L6kCIzPJpyn1OR89jI7dRIWcSiBxRMYGM-wFdXqJW4Nla05cr6lxHLZrlIBMZxkwH0",
"target": "",
"anchor": "",
"tags": [
{
"name": "Data-Protocol",
"value": "hymx"
},
{
"name": "Variant",
"value": "v0.1.2"
},
{
"name": "Type",
"value": "Assignment"
},
{
"name": "Process",
"value": "fHQbzw6acg2nqmCqzdr2GFaeoGzcRd0paVTD2kMGyU4"
},
{
"name": "Message",
"value": "1GEJIJ2uxWZQU4quOnswDOKE9eMHmfLd25ouRvAnYX0"
},
{
"name": "Nonce",
"value": "338"
},
{
"name": "Timestamp",
"value": "1757506904731"
}
],
"data": "",
"id": "DcJcM96JgSRLhgPEpWmVGidtPjbnN4xwUe28wVDxA2A",
"tagsBy": "DhpEYXRhLVByb3RvY29sCGh5bXgOVmFyaWFudAx2MC4xLjIIVHlwZRRBc3NpZ25tZW50DlByb2Nlc3NWZkhRYnp3NmFjZzJucW1DcXpkcjJHRmFlb0d6Y1JkMHBhVlREMmtNR3lVNA5NZXNzYWdlVjFHRUpJSjJ1eFdaUVU0cXVPbnN3RE9LRTllTUhtZkxkMjVvdVJ2QW5ZWDAKTm9uY2UGMzM4ElRpbWVzdGFtcBoxNzU3NTA2OTA0NzMxAA"
}
getAssignByMessage
Retrieve the corresponding Assign information using the known messageId.
Parameters
GET https://hymatrix.ai/assignmentByMessage/{{messageId}}
| Field | Required | Description |
|---|---|---|
| messageId | YES | messageId: The id obtained after initiating the transaction |
Field Descriptions
| Field | Description |
|---|---|
signatureType | Signature algorithm type; here 3 represents RSA-PSS (Arweave default signing scheme). |
signature | Signature string from the transaction initiator. |
owner | Encoded information of the wallet initiating the transaction. |
target | '' |
anchor | '' |
tags | A set of tag labels. |
data | Signed data. |
id | Identifier of the Assign. |
tagsBy | Encoded tag information. |
Example
curl --location --request GET "https://hymatrix.ai/assignmentByMessage/1GEJIJ2uxWZQU4quOnswDOKE9eMHmfLd25ouRvAnYX0"
Return
{
"signatureType": 3,
"signature": "1TzKoJzunGG38kurXqvSIjbpQr1h5GWfXrjglhn9h7Qn2vxx9iGG2pkANvV1UgdPfhQs_XdLoooGkx2PisPT5hw",
"owner": "BEJ4yO_ZafTwXM5YzYXS_L6kCIzPJpyn1OR89jI7dRIWcSiBxRMYGM-wFdXqJW4Nla05cr6lxHLZrlIBMZxkwH0",
"target": "",
"anchor": "",
"tags": [
{
"name": "Data-Protocol",
"value": "hymx"
},
{
"name": "Variant",
"value": "v0.1.2"
},
{
"name": "Type",
"value": "Assignment"
},
{
"name": "Process",
"value": "fHQbzw6acg2nqmCqzdr2GFaeoGzcRd0paVTD2kMGyU4"
},
{
"name": "Message",
"value": "1GEJIJ2uxWZQU4quOnswDOKE9eMHmfLd25ouRvAnYX0"
},
{
"name": "Nonce",
"value": "338"
},
{
"name": "Timestamp",
"value": "1757506904731"
}
],
"data": "",
"id": "DcJcM96JgSRLhgPEpWmVGidtPjbnN4xwUe28wVDxA2A",
"tagsBy": "DhpEYXRhLVByb3RvY29sCGh5bXgOVmFyaWFudAx2MC4xLjIIVHlwZRRBc3NpZ25tZW50DlByb2Nlc3NWZkhRYnp3NmFjZzJucW1DcXpkcjJHRmFlb0d6Y1JkMHBhVlREMmtNR3lVNA5NZXNzYWdlVjFHRUpJSjJ1eFdaUVU0cXVPbnN3RE9LRTllTUhtZkxkMjVvdVJ2QW5ZWDAKTm9uY2UGMzM4ElRpbWVzdGFtcBoxNzU3NTA2OTA0NzMxAA"
}
getNode
Query node information under an account.
Parameters
GET https://hymatrix.ai/node/{{accid}}
| Field | Required | Description |
|---|---|---|
| accid | YES | accid: User address |
Field Descriptions
| Field | Description |
|---|---|
Acc-Id | Node account address. |
Name | Node name. |
Role | Node role. |
Desc | Node description. |
URL | Accessible URL of the node. Use this URL for queries or to send transactions. |
Example
curl --location --request GET "https://hymatrix.ai/node/0x18b4bA4c118279b3eB60a2DB1E794Bc41AFC1D37"
Return
{
"Acc-Id": "0x18b4bA4c118279b3eB60a2DB1E794Bc41AFC1D37",
"Name": "TestGenesisNode",
"Role": "main",
"Desc": "Test network genesis node",
"URL": "https://hymatrix.ai"
}
getNodes
Retrieve information of all nodes.
Parameters
GET https://hymatrix.ai/nodes
Field Descriptions
| Field | Description |
|---|---|
Acc-Id | Node account address. |
Name | Node name. |
Role | Node role. |
Desc | Node description. |
URL | Accessible URL of the node. Use this URL for queries or to send transactions. |
Example
curl --location --request GET "https://hymatrix.ai/nodes"
Return
{
"0x18b4bA4c118279b3eB60a2DB1E794Bc41AFC1D37": {
"Acc-Id": "0x18b4bA4c118279b3eB60a2DB1E794Bc41AFC1D37",
"Name": "TestGenesisNode",
"Role": "main",
"Desc": "Test network genesis node",
"URL": "https://hymatrix.ai"
},
"0x1dc6e69897A650D28190a28C945B140455315acf": {
"Acc-Id": "0x1dc6e69897A650D28190a28C945B140455315acf",
"Name": "Arecotest",
"Role": "follower",
"Desc": "first test node",
"URL": "https://152.42.221.139:8080"
},
//...
}
getNodesByProcess
Query node information for a specific process.
Parameters
GET https://hymatrix.ai/nodesByProcess/{{processId}}
| Field | Required | Description |
|---|---|---|
| processId | YES | processId: The process address |
Field Descriptions
| Field | Description |
|---|---|
Acc-Id | Node account address. |
Name | Node name. |
Role | Node role. |
Desc | Node description. |
URL | Accessible URL of the node. Use this URL for queries or to send transactions. |
Example
curl --location --request GET "https://hymatrix.ai/nodesByProcess/fHQbzw6acg2nqmCqzdr2GFaeoGzcRd0paVTD2kMGyU4"
Return
[
{
"Acc-Id": "0x18b4bA4c118279b3eB60a2DB1E794Bc41AFC1D37",
"Name": "TestGenesisNode",
"Role": "main",
"Desc": "Test network genesis node",
"URL": "https://hymatrix.ai"
},
//...
]
getProcesses
Query all processes created under an account.
Parameters
GET https://hymatrix.ai/processes/{{accid}}
| Field | Required | Description |
|---|---|---|
| accid | YES | accid: User address |
Return Data
process 数组
Example
curl --location --request GET "https://hymatrix.ai/processes/0x18b4bA4c118279b3eB60a2DB1E794Bc41AFC1D37"
Return
[
"O-0_O4TgYYnA4VHw2EtHR6NafN_ZRRlX0uxkbUMto6g",
"fHQbzw6acg2nqmCqzdr2GFaeoGzcRd0paVTD2kMGyU4",
//...
]
balanceOf
Query the balance under an account.
Parameters
GET https://hymatrix.ai/balanceof/{{accid}}
| Field | Required | Description |
|---|---|---|
| accid | YES | accid: User address |
Example
curl --location --request GET "https://hymatrix.ai/balanceof/0x18b4bA4c118279b3eB60a2DB1E794Bc41AFC1D37"
Return
"0"
stakeOf
查询账号下质押金额
Parameters
GET https://hymatrix.ai/stakeOf/{{accid}}
| Field | Required | Description |
|---|---|---|
| accid | YES | accid: User address |
Example
curl --location --request GET "https://hymatrix.ai/stakeOf/0x18b4bA4c118279b3eB60a2DB1E794Bc41AFC1D37"
Return
"0"