JSON RPC Documentation
For an end user or application to interact with MOI Network, either to submit Interactions or read state information, it must connect to MOI Node that exposes its JSON-RPC endpoint. The JSON-RPC API of MOI is transport agnostic and uses JSON for data exchange. Interactions are serialized with POLO before signing.
Client Libraries
While it is acceptable to directly communicate with MOI Nodes with the JSON-RPC API, an easier option is to use a client library or wrapper SDK to handle the heavy lifting. Some available SDKs are:
JS-MOI-SDK(Javascript & Typescript SDK)
Conventions
TesseractOptions Parameter
Some JSON-RPC methods have an additional parameter to specify some TesseractOptions to define the default Tesseract.
It is represented as an object with the following fields for either a Tesseract Number or Hash:
| Field Name | Type | Description |
|---|---|---|
| tesseract_number | NUMBER | Tesseract Number |
| tesseract_hash | HEX | Tesseract Hash |
If both tesseract_number and tesseract_hash are provided, an error is returned.
To indicate the earliest or latest Tesseract, use the following values for tesseract_number:
- 0 for the earliest Tesseract
- -1 for the latest Tesseract
Hex Value Encoding
There are two main types of data that are passed over JSON:
- Unformatted byte arrays
- Quantities (like NUMBERs and numbers)
These are both passed with a hex encoding, but they have different formatting requirements.
Quantities Formatting Rules
When we encode quantities such as NUMBERs and numbers, we use the following rules:
- Encode as hex.
- Prefix with "0x".
- Use the most compact representation.
- Zero should be represented as "0x0" (slight exception to rule 3).
Examples
| Hex Value | Decimal Equivalent | Is it Correct? |
|---|---|---|
| 0x41 | 65 | Yes |
| 0x400 | 1024 | Yes |
| 0x | N/A | No (should always have at least one digit - zero is "0x0") |
| 0x0400 | 1024 | No (no leading zeroes allowed) |
| ff | 255 | No (must be prefixed with 0x) |
Interactions
A Interaction enable you to submit a group of Operations
to the network as a single Interaction. When you submit an Interaction using the endpoints listed below, you'll receive an Interaction Hash.
This hash can be used to query the interaction's receipt via the moi.InteractionReceipt API.
The interactions receipt has the result of operation stored within the ix_operations field along with operation type and status.
MOI Core APIs
moi.Call
The moi.Call method enables users to perform a stateless simulation of submitting an interaction. This means that
it executes the interaction without permanently recording it on the blockchain. It operates similarly to
moi.SendInteractions, but with the key difference that the user is not required to sign the interaction.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| sender | Sender | Object containing details of the interaction sender |
| payer | HEX (32 bytes) | Unique identifier of the payer [optional] |
| fuel_price | HEX | Fuel price |
| fuel_limit | HEX | Fuel limit |
| ix_operations | Array | List containing one or more participant create, account configure, account inherit, asset create, asset action, logic deploy or logic invoke operations. |
| participants | Array | List of participants involved in the interaction, each defining an participants’s role, locking behavior, and notary status |
| preferences | IxPreferences | Defines the compute and consensus preferences for the interaction [optional] |
| perception | Bytes | Encoded representation of the perceived asset value at the time of interaction (e.g., 1 KMOI token = 1 USD) [optional] |
| options | MAP [ [ParticipantID] -> TesseractOptions ] | Options for querying the tesseract. |
Returns:
| Return | Type | Description |
|---|---|---|
| ix_hash | HEX (32 Bytes) | The interaction hash. |
| ts_hash | HEX (32 Bytes) | The tesseract hash. |
| from | HEX (32 Bytes) | The id of the sender who sent the interaction. |
| status | NUMBER | The status of the interaction. |
| fuel_used | HEX | The amount of fuel used by this specific interaction alone. |
| ix_operations | ARRAY | The list of operation containing type, status and output |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "moi.Call",
"params": [
"ix_args": {
"sender": {
"id": "0x000000001ec28dabfc3e4ac4dfc2084b45785b5e9cf1287b63a4f46900000000",
"sequence": 8,
"key_id": 0
},
"fuel_price": 1,
"fuel_limit": 10000,
"ix_operations": [
{
"type": 5,
"payload": {
"asset_id": "0x10030000d9f12d13c0347a737430cdbcca174164f0823ccc39bedbe800000000",
"callsite": "Mint",
"calldata": "0d6f06659601c502616d6f756e7403138862656e656669636961727906000000001ec28dabfc3e4ac4dfc2084b45785b5e9cf1287b63a4f46900000000"
}
}
],
"participants": [
{
"id": "0x10030000d9f12d13c0347a737430cdbcca174164f0823ccc39bedbe800000000",
"lock_type": 0
},
{
"id": "0x000000001ec28dabfc3e4ac4dfc2084b45785b5e9cf1287b63a4f46900000000",
"lock_type": 0
}
]
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"ix_hash": "0x38b4d744aeaa7b343f1c2db410befdebd608b183a2ce0f8d93a8c7388639808e",
"status": 0,
"fuel_used": "0x22c",
"ix_operations": [
{
"tx_type": "0x5",
"status": 0,
"data": {
"outputs": "0x0d0f",
"error": "0x"
}
}
],
"from": "0x000000001ec28dabfc3e4ac4dfc2084b45785b5e9cf1287b63a4f46900000000",
"ts_hash": "0x0000000000000000000000000000000000000000000000000000000000000000"
}
moi.SendInteractions
The moi.SendInteractions method is employed to send an interaction to the network. This involves the ix_args
field, which holds the encoded interaction object, and the signature field, which represents the user's signature of
the interaction using their private key.
In simple terms, it's a way for the user to securely transmit and validate interactions on the blockchain.
- Request
- Response
{
"ix_args": "0e9f020ef604f3088309a009ae09ee17f026f0265f0683049304000000001ec28dabfc3e4ac4dfc2084b45785b5e9cf1287b63a4f469000000000700000000000000000000000000000000000000000000000000000000000000000127101f0e2f0316050e7f0686048605d00c10030000d9f12d13c0347a737430cdbcca174164f0823ccc39bedbe8000000005472616e736665720d6f06659601c502616d6f756e7403138862656e65666963696172790600000000ed434a2ab138e69295e134686d57d80a9aa3325dbbde9bbf000000005f0eee04de095f0683048104000000001ec28dabfc3e4ac4dfc2084b45785b5e9cf1287b63a4f469000000005f068304910410030000d9f12d13c0347a737430cdbcca174164f0823ccc39bedbe800000000025f068304810400000000ed434a2ab138e69295e134686d57d80a9aa3325dbbde9bbf00000000",
"signatures": "0e1f0e5f0683048604000000001ec28dabfc3e4ac4dfc2084b45785b5e9cf1287b63a4f46900000000014730450221008e0bb1066dd6f9a5cd06fc3e8b28245d26a9ade7e58f6662eac49c14454cb87e02203428233739f4727b1add08d31231025d39edf453d1de56249c678244bab4518403"
}
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xc63135e38e9edfd68107f8efccbedcc4c8141984b383b941fe42070b867f2a85"
}
moi.Tesseract
This method retrieves the tesseract by the provided options. The tesseract details can be fetched by either providing the id along with the tesseract number or by providing the tesseract hash alone.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| id | HEX (32 Bytes) | The id of the sender requesting the tesseract. |
| with_interactions | BOOLEAN | If true, it returns the interactions list as part of the tesseract. |
| options | TesseractOptions | Options for querying the tesseract. |
Returns:
| Return | Type | Description |
|---|---|---|
| participants | ARRAY | An array of participants involved in the interaction and their details. |
| interactions_hash | HEX (32 Bytes) | The hash of all the interactions in the tesseract. |
| receipts_hash | HEX (32 Bytes) | The hash of all the receipts. |
| hash | HEX (32 Bytes) | The hash of the tesseract. |
| seal | HEX | The signature of node which executed the tesseract. |
| epoch | HEX | Epoch denotes the fixed time slot. |
| time_stamp | HEX | The ICS request time. |
| operator | STRING | The krama ID of the operator node. |
| consensus_info | OBJECT | An object containing consensus related information. |
| fuel_used | HEX | The amount of fuel used until the tesseract formation. |
| fuel_limit | HEX | Fuel limit. |
| ixns | ARRAY | If with_interactions is set to true, an array of interactions is returned. |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "moi.Tesseract",
"params": [
{
"id": "0x45b9906e65c9bdf4703918aa2c78fe139ba8e32c5e0dcda585dac4c584651f08",
"with_interactions": true,
"options": {
"tesseract_number": -1
}
}
],
"jsonrpc": "2.0",
"id": 1
}'
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "moi.Tesseract",
"params": [
{
"with_interactions": true,
"options": {
"tesseract_hash": "0x4f9991aabeb642ef4b45033038e9be2cd864c6b6ac8666d3b66818a7d76b50cc"
}
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"participants": [
{
"id": "0x45b9906e65c9bdf4703918aa2c78fe139ba8e32c5e0dcda585dac4c584651f08",
"height": "0x6",
"transitive_link": "0x2903382eae792369ae1c491b4a51b67ccc340f1e711156bd2b9aa1c7de229528",
"prev_context": "0x637104288d0eb688bc7e8332f06db6e68a27b6427ed4458a6649ac2410f891ec",
"latest_context": "0x637104288d0eb688bc7e8332f06db6e68a27b6427ed4458a6649ac2410f891ec",
"context_delta": null,
"state_hash": "0x2f6568f9e5a69b2ad46e63064f4283e48512bd735a0121740f62d8fecc29bbce"
},
{
"id": "0x7634b2eab0905f319a82616ccdffc89850a54a669f34672e9f35284fc26973da",
"height": "0x5",
"transitive_link": "0x2903382eae792369ae1c491b4a51b67ccc340f1e711156bd2b9aa1c7de229528",
"prev_context": "0xdd9e555a8c0cb5ded9972597da0a5171bbd0cf601fd7e8e7bfa13741fa13496b",
"latest_context": "0xdd9e555a8c0cb5ded9972597da0a5171bbd0cf601fd7e8e7bfa13741fa13496b",
"context_delta": null,
"state_hash": "0xe65ae3a28069235a53f267b7e0408c10824161356293d36067cc6aeb4600a046"
},
{
"id": "0xb9a9d618867bec092db71c06c368a6d7f78dc01cf36f86a35991fee11303c3d9",
"height": "0x5",
"transitive_link": "0x2903382eae792369ae1c491b4a51b67ccc340f1e711156bd2b9aa1c7de229528",
"prev_context": "0x91df95b9aa08ae9ef151f888372c939db590c18ef2c4531036f2c81f2eba5098",
"latest_context": "0x91df95b9aa08ae9ef151f888372c939db590c18ef2c4531036f2c81f2eba5098",
"context_delta": null,
"state_hash": "0x67b5663ba1be8336e1fbbc90db1e827c549bc7d6df088ea1a87d7f19504c56a8"
}
],
"interactions_hash": "0x0b1445fc6916ae887d5b18637122a3ff6f06f05c922d36068bced96572c78254",
"receipts_hash": "0x92c24ebf6cdd667574cd0d488f4062848542dfef70f1aacf3b404c11701a30fb",
"epoch": "0x0",
"time_stamp": "0x66c1c0fc",
"operator": "3WxXsrZtEK5MXHBiR97PjgEqmzWXUBt3p1wuiRguhcC88yJEPZmh.16Uiu2HAm1rQXnxAYFffGEyVPTTe9FwfVWtUC2mTwBtA7UAU7MLxq",
"fuel_used": "0x12c",
"fuel_limit": "0x3e8",
"consensus_info": {
"evidence_hash": "0xdbe7d2f985c9fa4e2664edee5a1126134ef4553deefe07f93bf6ad0d3aeb08cf",
"binary_hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"identity_hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"ics_hash": "0xfb39102235e235bf89872809d052b952ab6dd486db89b3cd236ee49cbc93bc54",
"cluster_id": "6tVjnFo4yN7mjAHPC8Lt7q8z7wgq4tmcNZxn26tJKUxA",
"ics_signature": "0x",
"ics_vote_set": "BA{18:xxxxxxxxxxxxxxxxxx}",
"round": "0x0",
"commit_signature": "0x907680521848a2daf59eddf0ced029377c306c2048b3893e62a74d1882d1aeef41bd150087b0f2700eeaf125b8b15b0f1866d2714c4f072ef2e7e2db0f9954193588a6566c40dd3d9015f9398187aefe45204ade50554b0b3629512b07d3f821",
"bft_vote_set": "BA{18:xxxx___xxxx_xxx___}"
},
"seal": "0x0460a8d7c7f678792c61497726c822bfa4e582e2abc1f0397e3197f5b010390296535a623d2cc1782b4c85466f0cd55ec1ec0a9cb016bc69419432f45d039c3b286e411b894768cfd4ebc41fe0379ce61e5806003371903a5fd331e5cdeeb83b486f",
"hash": "0x4f9991aabeb642ef4b45033038e9be2cd864c6b6ac8666d3b66818a7d76b50cc",
"ixns": [
{
"nonce": "0x5",
"sender": "0x45b9906e65c9bdf4703918aa2c78fe139ba8e32c5e0dcda585dac4c584651f08",
"payer": "0x0000000000000000000000000000000000000000000000000000000000000000",
"fuel_price": "0x1",
"fuel_limit": "0x1f4",
"ix_operations": [
{
"type": 6,
"payload": {
"asset_id": "0x00000000b9a9d618867bec092db71c06c368a6d7f78dc01cf36f86a35991fee11303c3d9",
"amount": "0xc350"
}
},
{
"type": 7,
"payload": {
"asset_id": "0x00000000b9a9d618867bec092db71c06c368a6d7f78dc01cf36f86a35991fee11303c3d9",
"amount": "0x1388"
}
},
{
"type": 1,
"payload": {
"benefactor": "0x7634b2eab0905f319a82616ccdffc89850a54a669f34672e9f35284fc26973da",
"beneficiary": "0x7634b2eab0905f319a82616ccdffc89850a54a669f34672e9f35284fc26973da",
"asset_id": "0x00000000b9a9d618867bec092db71c06c368a6d7f78dc01cf36f86a35991fee11303c3d9",
"amount": "0x1f4"
}
}
],
"hash": "0xf4220d4caa3cfa0ee9ded4d01e43bc2890ab9152a789955fae4a45707f90fa0b",
"signature": "0x01473045022100b20f6bdd48deef6d77e539d49bec2bd13cdf2ec78837586254ada01f63b0a05902203aaef05a8fc68d233e28a6b2f4decf9c0ff7b4a9b8b9ae64304fd8a41890142403",
"ts_hash": "0x4f9991aabeb642ef4b45033038e9be2cd864c6b6ac8666d3b66818a7d76b50cc",
"participants": null,
"ix_index": "0x0"
}
]
}
}
moi.InteractionByTesseract
This method allows users to retrieve an interaction based on a given tesseract hash and interaction index. If the interaction index is not found, the function will throw an error.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| id | HEX (32 Bytes) | The id of the sender. |
| options | TesseractOptions | Options for querying the tesseract. |
| ix_index | HEX | Represents the index of the interaction within the tesseract. |
Returns:
| Return | Type | Description |
|---|---|---|
| nonce | HEX | The nonce of the tesseract. |
| sender | Sender | Object containing details of the interaction sender. |
| payer | HEX (32 Bytes) | Payer id. |
| fuel_price | HEX | The fuel price for the interaction. |
| fuel_limit | HEX | The fuel limit of the interaction. |
| operations | HEX | The list of operations. |
| hash | HEX (32 Bytes) | The hash of the interaction. |
| ts_hash | HEX (32 Bytes) | The hash of the tesseract. |
| signature | ARRAY | An array of signature bytes associated with the interaction. |
| participants | ARRAY | An array of participants involved in the interaction and their details. |
| ix_index | HEX | An NUMBER representing the interaction index in the tesseract. |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "moi.InteractionByTesseract",
"params": [
{
"id": "0x45b9906e65c9bdf4703918aa2c78fe139ba8e32c5e0dcda585dac4c584651f08",
"options": {
"tesseract_number": -1
},
"ix_index": "0x0"
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"nonce": "0x5",
"sender": "0x45b9906e65c9bdf4703918aa2c78fe139ba8e32c5e0dcda585dac4c584651f08",
"payer": "0x0000000000000000000000000000000000000000000000000000000000000000",
"fuel_price": "0x1",
"fuel_limit": "0x1f4",
"ix_operations": [
{
"type": 6,
"payload": {
"asset_id": "0x00000000b9a9d618867bec092db71c06c368a6d7f78dc01cf36f86a35991fee11303c3d9",
"amount": "0xc350"
}
},
{
"type": 7,
"payload": {
"asset_id": "0x00000000b9a9d618867bec092db71c06c368a6d7f78dc01cf36f86a35991fee11303c3d9",
"amount": "0x1388"
}
},
{
"type": 1,
"payload": {
"benefactor": "0x7634b2eab0905f319a82616ccdffc89850a54a669f34672e9f35284fc26973da",
"beneficiary": "0x7634b2eab0905f319a82616ccdffc89850a54a669f34672e9f35284fc26973da",
"asset_id": "0x00000000b9a9d618867bec092db71c06c368a6d7f78dc01cf36f86a35991fee11303c3d9",
"amount": "0x1f4"
}
}
],
"hash": "0xf4220d4caa3cfa0ee9ded4d01e43bc2890ab9152a789955fae4a45707f90fa0b",
"signature": "0x01473045022100b20f6bdd48deef6d77e539d49bec2bd13cdf2ec78837586254ada01f63b0a05902203aaef05a8fc68d233e28a6b2f4decf9c0ff7b4a9b8b9ae64304fd8a41890142403",
"ts_hash": "0x4f9991aabeb642ef4b45033038e9be2cd864c6b6ac8666d3b66818a7d76b50cc",
"participants": [
{
"id": "0x45b9906e65c9bdf4703918aa2c78fe139ba8e32c5e0dcda585dac4c584651f08",
"height": "0x6",
"transitive_link": "0x2903382eae792369ae1c491b4a51b67ccc340f1e711156bd2b9aa1c7de229528",
"prev_context": "0x637104288d0eb688bc7e8332f06db6e68a27b6427ed4458a6649ac2410f891ec",
"latest_context": "0x637104288d0eb688bc7e8332f06db6e68a27b6427ed4458a6649ac2410f891ec",
"context_delta": null,
"state_hash": "0x2f6568f9e5a69b2ad46e63064f4283e48512bd735a0121740f62d8fecc29bbce"
},
{
"id": "0x7634b2eab0905f319a82616ccdffc89850a54a669f34672e9f35284fc26973da",
"height": "0x5",
"transitive_link": "0x2903382eae792369ae1c491b4a51b67ccc340f1e711156bd2b9aa1c7de229528",
"prev_context": "0xdd9e555a8c0cb5ded9972597da0a5171bbd0cf601fd7e8e7bfa13741fa13496b",
"latest_context": "0xdd9e555a8c0cb5ded9972597da0a5171bbd0cf601fd7e8e7bfa13741fa13496b",
"context_delta": null,
"state_hash": "0xe65ae3a28069235a53f267b7e0408c10824161356293d36067cc6aeb4600a046"
},
{
"id": "0xb9a9d618867bec092db71c06c368a6d7f78dc01cf36f86a35991fee11303c3d9",
"height": "0x5",
"transitive_link": "0x2903382eae792369ae1c491b4a51b67ccc340f1e711156bd2b9aa1c7de229528",
"prev_context": "0x91df95b9aa08ae9ef151f888372c939db590c18ef2c4531036f2c81f2eba5098",
"latest_context": "0x91df95b9aa08ae9ef151f888372c939db590c18ef2c4531036f2c81f2eba5098",
"context_delta": null,
"state_hash": "0x67b5663ba1be8336e1fbbc90db1e827c549bc7d6df088ea1a87d7f19504c56a8"
}
],
"ix_index": "0x0"
}
}
moi.InteractionByHash
This method retrieves the interaction details for a given interaction hash.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| hash | HEX (32 Bytes) | Interaction hash for which you want to fetch interaction details. |
Returns:
| Return | Type | Description |
|---|---|---|
| type | NUMBER | Type of the interaction. |
| nonce | HEX | The nonce of the tesseract. |
| sender | HEX (32 Bytes) | Sender id. |
| fuel_price | HEX | The fuel price for the interaction. |
| fuel_limit | HEX | The fuel limit of the interaction. |
| operations | HEX | The list of operations. |
| hash | HEX (32 Bytes) | The hash of the interaction. |
| ts_hash | HEX (32 Bytes) | The hash of the tesseract. |
| signature | ARRAY | An array of signature bytes associated with the interaction. |
| participants | ARRAY | An array of participants involved in the interaction and their details. |
| ix_index | HEX | An NUMBER representing the interaction index in the tesseract. |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "moi.InteractionByHash",
"params": [
{
"hash": "0xf4220d4caa3cfa0ee9ded4d01e43bc2890ab9152a789955fae4a45707f90fa0b"
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"nonce": "0x5",
"sender": "0x45b9906e65c9bdf4703918aa2c78fe139ba8e32c5e0dcda585dac4c584651f08",
"payer": "0x0000000000000000000000000000000000000000000000000000000000000000",
"fuel_price": "0x1",
"fuel_limit": "0x1f4",
"ix_operations": [
{
"type": 6,
"payload": {
"asset_id": "0x00000000b9a9d618867bec092db71c06c368a6d7f78dc01cf36f86a35991fee11303c3d9",
"amount": "0xc350"
}
},
{
"type": 7,
"payload": {
"asset_id": "0x00000000b9a9d618867bec092db71c06c368a6d7f78dc01cf36f86a35991fee11303c3d9",
"amount": "0x1388"
}
},
{
"type": 1,
"payload": {
"benefactor": "0x7634b2eab0905f319a82616ccdffc89850a54a669f34672e9f35284fc26973da",
"beneficiary": "0x7634b2eab0905f319a82616ccdffc89850a54a669f34672e9f35284fc26973da",
"asset_id": "0x00000000b9a9d618867bec092db71c06c368a6d7f78dc01cf36f86a35991fee11303c3d9",
"amount": "0x1f4"
}
}
],
"hash": "0xf4220d4caa3cfa0ee9ded4d01e43bc2890ab9152a789955fae4a45707f90fa0b",
"signature": "0x01473045022100b20f6bdd48deef6d77e539d49bec2bd13cdf2ec78837586254ada01f63b0a05902203aaef05a8fc68d233e28a6b2f4decf9c0ff7b4a9b8b9ae64304fd8a41890142403",
"ts_hash": "0x4f9991aabeb642ef4b45033038e9be2cd864c6b6ac8666d3b66818a7d76b50cc",
"participants": [
{
"id": "0x45b9906e65c9bdf4703918aa2c78fe139ba8e32c5e0dcda585dac4c584651f08",
"height": "0x6",
"transitive_link": "0x2903382eae792369ae1c491b4a51b67ccc340f1e711156bd2b9aa1c7de229528",
"prev_context": "0x637104288d0eb688bc7e8332f06db6e68a27b6427ed4458a6649ac2410f891ec",
"latest_context": "0x637104288d0eb688bc7e8332f06db6e68a27b6427ed4458a6649ac2410f891ec",
"context_delta": null,
"state_hash": "0x2f6568f9e5a69b2ad46e63064f4283e48512bd735a0121740f62d8fecc29bbce"
},
{
"id": "0x7634b2eab0905f319a82616ccdffc89850a54a669f34672e9f35284fc26973da",
"height": "0x5",
"transitive_link": "0x2903382eae792369ae1c491b4a51b67ccc340f1e711156bd2b9aa1c7de229528",
"prev_context": "0xdd9e555a8c0cb5ded9972597da0a5171bbd0cf601fd7e8e7bfa13741fa13496b",
"latest_context": "0xdd9e555a8c0cb5ded9972597da0a5171bbd0cf601fd7e8e7bfa13741fa13496b",
"context_delta": null,
"state_hash": "0xe65ae3a28069235a53f267b7e0408c10824161356293d36067cc6aeb4600a046"
},
{
"id": "0xb9a9d618867bec092db71c06c368a6d7f78dc01cf36f86a35991fee11303c3d9",
"height": "0x5",
"transitive_link": "0x2903382eae792369ae1c491b4a51b67ccc340f1e711156bd2b9aa1c7de229528",
"prev_context": "0x91df95b9aa08ae9ef151f888372c939db590c18ef2c4531036f2c81f2eba5098",
"latest_context": "0x91df95b9aa08ae9ef151f888372c939db590c18ef2c4531036f2c81f2eba5098",
"context_delta": null,
"state_hash": "0x67b5663ba1be8336e1fbbc90db1e827c549bc7d6df088ea1a87d7f19504c56a8"
}
],
"ix_index": "0x0"
}
}
This is an example response for a AssetTransfer interaction.
moi.InteractionReceipt
This method retrieves the receipt of a specific interaction in the system. The interaction is identified by its unique hash. The receipt provides detailed information about the interaction.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| hash | HEX (32 Bytes) | The unique hash that identifies the interaction. |
Returns:
| Return | Type | Description |
|---|---|---|
| ix_type | HEX | The type of the interaction in hex. |
| ix_hash | HEX (32 Bytes) | The unique hash of the interaction. |
| status | NUMBER | The status of the interaction. |
| fuel_used | HEX | The amount of fuel used by this specific interaction alone. |
| from | HEX (32 Bytes) | The id of the sender. |
| ts_hash | HEX (32 Bytes) | The hash of the tesseract. |
| ix_index | HEX | The NUMBER representing the interaction index in the tesseract. |
| participants | ARRAY | An array of participants involved in the interaction and their details. |
| operations | ARRAY | A list of operations |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "moi.InteractionReceipt",
"params": [
{
"hash": "0xc63135e38e9edfd68107f8efccbedcc4c8141984b383b941fe42070b867f2a85"
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"ix_hash": "0xc63135e38e9edfd68107f8efccbedcc4c8141984b383b941fe42070b867f2a85",
"status": 0,
"fuel_used": "0x12c",
"ix_operations": [
{
"tx_type": "0x6",
"status": 0,
"data": {
"total_supply": "0x186a0"
}
},
{
"tx_type": "0x7",
"status": 0,
"data": {
"total_supply": "0x17318"
}
},
{
"tx_type": "0x1",
"status": 0,
"data": null
}
],
"from": "0x45b9906e65c9bdf4703918aa2c78fe139ba8e32c5e0dcda585dac4c584651f08",
"ts_hash": "0x188b038826f4db41187c51079951ca14d840776381b0278c7d7299875176d045",
"participants": [
{
"id": "0x45b9906e65c9bdf4703918aa2c78fe139ba8e32c5e0dcda585dac4c584651f08",
"height": "0x2",
"transitive_link": "0x0732f20c7eb4f8ae51466f78805c52c25f8907edc43619deeb07dfff432e4109",
"prev_context": "0x637104288d0eb688bc7e8332f06db6e68a27b6427ed4458a6649ac2410f891ec",
"latest_context": "0x637104288d0eb688bc7e8332f06db6e68a27b6427ed4458a6649ac2410f891ec",
"context_delta": null,
"state_hash": "0x16ed8031e088ce4b6f17def88f1a74cf65d4940834c057c0609ca91df6acb45a"
},
{
"id": "0x7634b2eab0905f319a82616ccdffc89850a54a669f34672e9f35284fc26973da",
"height": "0x1",
"transitive_link": "0x56201a458d6cdde73ee32725ad3b6e53303b90838c23e693dc87bf1922533e45",
"prev_context": "0xdd9e555a8c0cb5ded9972597da0a5171bbd0cf601fd7e8e7bfa13741fa13496b",
"latest_context": "0xdd9e555a8c0cb5ded9972597da0a5171bbd0cf601fd7e8e7bfa13741fa13496b",
"context_delta": null,
"state_hash": "0xe98ee47478f59257dc59ccde873e9ce6af3ee79e1e47dd5f0c6245ffd961bfe7"
},
{
"id": "0xb9a9d618867bec092db71c06c368a6d7f78dc01cf36f86a35991fee11303c3d9",
"height": "0x1",
"transitive_link": "0x0732f20c7eb4f8ae51466f78805c52c25f8907edc43619deeb07dfff432e4109",
"prev_context": "0x91df95b9aa08ae9ef151f888372c939db590c18ef2c4531036f2c81f2eba5098",
"latest_context": "0x91df95b9aa08ae9ef151f888372c939db590c18ef2c4531036f2c81f2eba5098",
"context_delta": null,
"state_hash": "0x25f7fe54fc2c275d00a81d69f3e258fbe81cda3532c9bfebde699c83e0f06fa4"
}
]
}
}
moi.InteractionCount
This method helps to fetch the total number of interactions performed by a particular account.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| id | HEX (32 Bytes) | The id of the account for which the total interaction count is queried. |
| options | TesseractOptions | Options for querying the tesseract. |
Returns:
| Return Type | Description |
|---|---|
| HEX | The total number of interactions that have been made by the queried account. |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "moi.InteractionCount",
"params": [
{
"id": "0x52fdfc072182654f163f5f0f9a621d729566c74d10037c4d7bbb0407d1e2c649",
"options": {
"tesseract_number": -1
}
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": "0x9",
"id": 1
}
moi.PendingInteractionCount
This method provides the total number of interactions for a given id, inclusive of both the completed and pending interactions in IxPool.
Parameters:
| Name | Type | Description |
|---|---|---|
| id | HEX (32 Bytes) | The id of the account for which the total number interaction count is queried. |
Returns:
| Returns Type | Description |
|---|---|
| HEX | The total number of interactions made by the queried account, including the pending interactions in IxPool. |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "moi.PendingInteractionCount",
"params": [
{
"id": "0x81855ad8681d0d86d1e91e00167939cb6694d2c422acd208a0072939487f6999"
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": "0xb",
"id": 1
}
moi.AccountMetaInfo
This method provides metadata information about a specific account based on the provided account's id.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| id | HEX (32 Bytes) | The account id for which metadata information is to be retrieved. |
Returns:
| Return Type | Description |
|---|---|
| OBJECT | The object contains meta information about the queried account. |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "moi.AccountMetaInfo",
"params": [
{
"id": "0x52fdfc072182654f163f5f0f9a621d729566c74d10037c4d7bbb0407d1e2c649",
"options": {
"tesseract_number": -1
}
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": {
"id": "0x52fdfc072182654f163f5f0f9a621d729566c74d10037c4d7bbb0407d1e2c649",
"height": "0x0",
"tesseract_hash": "0x5f36d19cacd10252d33ae25f733f723f39977091ef57a5ce679393cebeb6b466",
"type": 2
},
"id": 1
}
moi.AccountState
This method returns the account for a provided id.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| id | HEX (32 Bytes) | The id of the sender whose account state is to be retrieved. |
| options | TesseractOptions | Options for querying the tesseract. |
Returns:
| Return Type | Description |
|---|---|
| OBJECT | The object contains detailed information about the queried account. |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "moi.AccountState",
"params": [
{
"id": "0x52fdfc072182654f163f5f0f9a621d729566c74d10037c4d7bbb0407d1e2c649",
"options": {
"tesseract_number": -1
}
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": {
"acc_type": 2,
"asset_approvals": "0x0000000000000000000000000000000000000000000000000000000000000000",
"asset_registry": "0x599856e7ce05c9c0795fe618c87d10c801089b1e3bf016707681196de8516194",
"balance": "0xb5f803c58a2ede73fb3c9936960adb8670096a2b90923f2561176fad7665ab0a",
"context_hash": "0xe7d696a5b60b56b32a74523234e4bb5fa524d10bbd97866ab8ff6fefcd8c122d",
"file_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"logic_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0xc",
"storage_root": "0x0000000000000000000000000000000000000000000000000000000000000000"
},
"id": 1
}
moi.ContextInfo
This method provides information the context information that is associated with the provided id. It includes the krama id's of the behaviour nodes, random nodes, and storage nodes that are part of this interaction.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| id | HEX (32 Bytes) | The id of the sender. |
| options | TesseractOptions | Options for querying the tesseract. |
Returns:
| Returns | Type | Description |
|---|---|---|
| behaviour_nodes | ARRAY | A list of the krama id's of behaviour nodes that are part of the latest interaction. |
| random_nodes | ARRAY | A list of the krama id's of random nodes that are part of the latest interaction. |
| storage_nodes | ARRAY | A list of the krama id's of storage nodes that are part of the latest interaction. |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "moi.ContextInfo",
"params": [
{
"id": "0x52fdfc072182654f163f5f0f9a621d729566c74d10037c4d7bbb0407d1e2c649",
"options": {
"tesseract_number": -1
}
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": {
"behaviour_nodes": [
"a56xbUXW93f2GejhX32zsnnsZkLa9pSWqvmRUjzxiv21mqxUWB.16Uiu2HAkwyrvnP7od6MckftNM17zPeLo91szGCFAJE7TYGZfUsDj",
"a5FcWy5pXHCsEUCmqnahasSTa2dsuEvvHm7VurSZ6bJ192bTeP.16Uiu2HAmRy8FGHVroUxPkSWgVWLdjtuoy4MptEf44aXgX8gokYKJ"
],
"random_nodes": [
"a4uo7WJQ1xkUL2Pkh7JAEXhuH7EZiHd2QV1cZ6716t4Kuyskmm.16Uiu2HAm229LrCmyc7pNSL42HEx5bY1niZtoB49TuEpgvzqvmmKc",
"a4hBovGgNw69ovshkNyTf4wLQonnFppzNSvFgzPqt1Aasg5yTm.16Uiu2HAm1FUJvGqBvtHoW4HZRQJszjDsewaqkZJbftahtmQk2W9u"
],
"storage_nodes": []
},
"id": 1
}
moi.TDU
This method is used to retrieve the Total Digital Utility (TDU) of a specific id. It is a method to get a list of all asset IDs associated with a given id and their total supply.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| id | HEX (32 Bytes) | the id of the sender for which TDU is required. |
| options | TesseractOptions | Options for querying the tesseract. |
Returns:
| Return Type | Description |
|---|---|
| ARRAY | A list of asset IDs and their respective total supply. |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "moi.TDU",
"params": [
{
"id": "0x52fdfc072182654f163f5f0f9a621d729566c74d10037c4d7bbb0407d1e2c649",
"options": {
"tesseract_number": -1
}
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": [
{
"asset_id": "0x000000000dbea6ee1ef4adf740671f48e3960fcc267aff7cfb647371ea286a71c1be6797",
"amount": "0x130d41"
},
{
"asset_id": "0x000000004cd973c4eb83cdb8870c0de209736270491b7acc99873da1eddced5826c3b548",
"amount": "0xb54"
}
],
"id": 1
}
moi.Balance
This method is used to retrieve the current balance of a specified asset associated with a given account.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| id | HEX (32 Bytes) | The id for which the balance needs to be retrieved. |
| asset_id | AssetID | The ID of the asset for which the balance is to be retrieved. |
| options | TesseractOptions | Options for querying the tesseract. |
Returns:
| Return Type | Description |
|---|---|
| NUMBER | An NUMBER representing the current balance of the queried asset. |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "moi.Balance",
"params": [
{
"id": "0x81855ad8681d0d86d1e91e00167939cb6694d2c422acd208a0072939487f6999",
"asset_id": "0000ed517b0e68a54bf19fa0a1f88130a0503b18b258f7f7042e03f1518e4ab015bc",
"options": {
"tesseract_number": -1
}
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": "0x5",
"id": 1
}
moi.Registry
This method is used to obtain a list of registries that store asset IDs and their corresponding asset descriptions.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| id | HEX (32 Bytes) | The id for which the registries need to be retrieved. |
| options | TesseractOptions | Options for querying the tesseract. |
Returns:
| Return Type | Description |
|---|---|
| ARRAY | A list of registries that store asset IDs and their corresponding asset descriptions. |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "moi.Registry",
"params": [
{
"id": "0x81855ad8681d0d86d1e91e00167939cb6694d2c422acd208a0072939487f6999",
"options": {
"tesseract_number": -1
}
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": [
{
"asset_id": "0x0000000022e8182dd11b0527dc2d617e7badc99af8427521c304301806cb289159853c8f",
"asset_info": {
"symbol": "MOI",
"operator": "0x60bcc16b9340b112664ca4f9bd69faaaa8013e7f2a4d13044cd3f9a35ac1ecbb",
"supply": "0x130d41",
"dimension": "0x0",
"standard": "0x0",
"is_logical": false,
"is_stateful": false
}
}
],
"id": 1
}
moi.Syncing
This method returns the sync status of an account if id is given else returns the node sync status. If the pending accounts variable is set to true, it returns the node sync status with a list of accounts awaiting synchronization.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| id | HEX (32 Bytes) | The id of the account for which the sync status is to be determined |
| pending_accounts | BOOLEAN | If true, it provides a list of accounts awaiting synchronization as part of the node sync status. |
Returns:
| Return | Type | Description |
|---|---|---|
| account_sync_status | OBJECT | The sync status of the account for which id is given |
| node_sync_status | OBJECT | The sync status of the node |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "moi.Syncing",
"params": [
{
"id": "0xa6ba9853f131679d00da0f033516a2efe9cd53c3d54e1f9a6e60e9077e9f9384"
}
],
"jsonrpc": "2.0",
"id": 1
}'
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "moi.Syncing",
"params": [
{
"pending_accounts": true
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": {
"acc_sync_status": {
"current_height": "0x1",
"expected_height": "0x2",
"is_primary_sync_done": true
},
"node_sync_status": null
},
"id": 1
}
{
"jsonrpc": "2.0",
"result": {
"acc_sync_status": null,
"node_sync_status": {
"total_pending_accounts": "0x0",
"pending_accounts": [
"0x9c6cc5cccfe2a3dc447bce25f88cb28ce142459057e6c04b59911b6d3f10930a",
"0x52fdfc072182654f163f5f0f9a621d729566c74d10037c4d7bbb0407d1e2c649"
],
"is_principal_sync_done": true,
"principal_sync_done_time": "0x177960df641368b8",
"is_initial_sync_done": true
}
},
"id": 1
}
moi.FuelEstimate
This method returns an estimate of the fuel that is required for executing an interaction.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| sender | Sender | Object containing details of the interaction sender |
| payer | HEX (32 bytes) | Unique identifier of the payer [optional] |
| fuel_price | HEX | Fuel price |
| fuel_limit | HEX | Fuel limit |
| ix_operations | Array | List containing one or more participant create, account configure, account inherit, asset create, asset action, logic deploy or logic invoke operations. |
| participants | Array | List of participants involved in the interaction, each defining an participants’s role, locking behavior, and notary status |
| preferences | IxPreferences | Defines the compute and consensus preferences for the interaction [optional] |
| perception | Bytes | Encoded representation of the perceived asset value at the time of interaction (e.g., 1 KMOI token = 1 USD) [optional] |
| options | MAP [ [ParticipantID] -> TesseractOptions ] | Options for querying the tesseract. |
Returns:
| Return Type | Description |
|---|---|
| fuel_used | An estimate of the amount of fuel used by this specific interaction alone. |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "moi.FuelEstimate",
"params": [
{
"ix_args": {
"sender": {
"id": "0x000000001ec28dabfc3e4ac4dfc2084b45785b5e9cf1287b63a4f46900000000",
"sequence": 8,
"key_id": 0
},
"fuel_price": 1,
"fuel_limit": 10000,
"ix_operations": [
{
"type": 5,
"payload": {
"asset_id": "0x10030000d9f12d13c0347a737430cdbcca174164f0823ccc39bedbe800000000",
"callsite": "Mint",
"calldata": "0d6f06659601c502616d6f756e7403138862656e656669636961727906000000001ec28dabfc3e4ac4dfc2084b45785b5e9cf1287b63a4f46900000000"
}
}
],
"participants": [
{
"id": "0x10030000d9f12d13c0347a737430cdbcca174164f0823ccc39bedbe800000000",
"lock_type": 0
},
{
"id": "0x000000001ec28dabfc3e4ac4dfc2084b45785b5e9cf1287b63a4f46900000000",
"lock_type": 0
}
]
}
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x12c"
}
moi.AssetInfoByAssetID
This method provides detailed information about a specific asset identified by the provided asset ID.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| asset_id | AssetID | The asset ID for which the information is to be retrieved. |
| options | TesseractOptions | Options for querying the tesseract. |
Returns:
| Return | Type | Description |
|---|---|---|
| symbol | STRING | The symbolic representation of the asset. |
| operator | HEX (32 Bytes) | The id of the operator of the asset. |
| supply | HEX | The total supply of the asset. |
| dimension | HEX | The dimensions of the asset. |
| standard | HEX | Indicates the asset standard. |
| is_logical | BOOLEAN | Indicates whether the asset is logical or not. |
| is_stateful | BOOLEAN | Indicates whether the asset is stateful or not. |
| logic_id | LogicID | The logic id associated with the asset. |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "moi.AssetInfoByAssetID",
"params": [
{
"asset_id":"0x000000009d8810a510ec135b73848a9de05ed747fbbeedfbf689583f59e50dca0089b7c4",
"options":{
"tesseract_number":-1
}
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": {
"dimension": "0x0",
"is_logical": false,
"is_stateful": false,
"operator": "0x52fdfc072182654f163f5f0f9a621d729566c74d10037c4d7bbb0407d1e2c649",
"standard": "0x0",
"supply": "0x130d41",
"symbol": "MOI"
},
"id": 1
}
moi.LogicIDs
This method is used to retrieve a list of all the logic IDs associated with a specific logic id.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| id | HEX (32 Bytes) | The id of the sender for which the logic IDs are required. |
| options | TesseractOptions | Options for querying the tesseract. |
Returns:
| Return Type | Description |
|---|---|
| ARRAY | A list of logic IDs. |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "moi.LogicIDs",
"params": [
{
"id": "0x52fdfc072182654f163f5f0f9a621d729566c74d10037c4d7bbb0407d1e2c649",
"options": {
"tesseract_number": -1
}
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": [
"0x080000292209adefa5347bae0a3397563e1eda4aea6a28f3b67a3d9892c2fdda9464d0"
],
"id": 1
}
moi.LogicManifest
This method retrieves the manifest associated with a specific logicID.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| logic_id | LogicID | The unique identifier of the logic for which the manifest is to be returned. |
| encoding | STRING | Specifies the encoding type of the manifest. It should be JSON, POLO, or YAML. |
| options | TesseractOptions | Options for querying the tesseract. |
Returns:
| Return Type | Description |
|---|---|
| HEX | Contains the manifest associated with the given logic ID, encoded in the requested format. |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "moi.LogicManifest",
"params": [
{
"logic_id": "0800009259ee349d92e578e7ae0150d8f8ffa1aa73535baecf3ae18c3e7ea8e305b3f5",
"encoding": "JSON",
"options": {
"tesseract_number": -1
}
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": "0x7b2273796e746178223a22302e312e30222c22656e67696e65223a7b226b696e64223a2250495341222c22666c616773223a5b5d7d2c22656c656d656e7473223a5b7b22707472223a302c2264657073223a6e756c6c2c226b696e64223a227374617465222c2264617461223a7b226b696e64223a2270657273697374656e74222c226669656c6473223a5b7b22736c6f74223a302c226c6162656c223a226e616d65222c2274797065223a22737472696e67227d2c7b22736c6f74223a312c226c6162656c223a2273796d626f6c222c2274797065223a22737472696e67227d2c7b22736c6f74223a322c226c6162656c223a22737570706c79222c2274797065223a22753634227d2c7b22736c6f74223a332c226c6162656c223a2262616c616e636573222c2274797065223a226d61705b616464726573735d753634227d2c7b22736c6f74223a342c226c6162656c223a22616c6c6f77616e636573222c2274797065223a226d61705b616464726573735d6d61705b616464726573735d753634227d5d7d7d2c7b22707472223a312c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a2253656564657221222c226b696e64223a226465706c6f796572222c2261636365707473223a5b7b22736c6f74223a302c226c6162656c223a226e616d65222c2274797065223a22737472696e67227d2c7b22736c6f74223a312c226c6162656c223a2273796d626f6c222c2274797065223a22737472696e67227d2c7b22736c6f74223a322c226c6162656c223a22737570706c79222c2274797065223a22753634227d2c7b22736c6f74223a332c226c6162656c223a22736565646572222c2274797065223a2261646472657373227d5d2c2272657475726e73223a6e756c6c2c226578656375746573223a7b2262696e223a5b342c302c302c3132392c302c302c342c302c312c3132392c302c312c342c302c322c3132392c302c322c3132382c312c332c342c322c332c38342c312c322c302c3132392c312c335d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a322c2264657073223a6e756c6c2c226b696e64223a22636f6e7374616e74222c2264617461223a7b2274797065223a22753634222c2276616c7565223a22307830333061227d7d2c7b22707472223a332c2264657073223a6e756c6c2c226b696e64223a2274797065646566222c2264617461223a226d61705b616464726573735d753634227d2c7b22707472223a342c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a224e616d65222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a6e756c6c2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a226e616d65222c2274797065223a22737472696e67227d5d2c226578656375746573223a7b2262696e223a5b3132382c302c302c352c302c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a352c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a2253796d626f6c222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a6e756c6c2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a2273796d626f6c222c2274797065223a22737472696e67227d5d2c226578656375746573223a7b2262696e223a5b3132382c302c312c352c302c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a362c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a22446563696d616c73222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a6e756c6c2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a22646563696d616c73222c2274797065223a22753634227d5d2c226578656375746573223a7b2262696e223a5b31372c302c322c31362c302c302c352c302c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a372c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a22546f74616c537570706c79222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a6e756c6c2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a22737570706c79222c2274797065223a22753634227d5d2c226578656375746573223a7b2262696e223a5b3132382c302c322c352c302c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a382c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a2242616c616e63654f66222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a5b7b22736c6f74223a302c226c6162656c223a2261646472222c2274797065223a2261646472657373227d5d2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a2262616c616e6365222c2274797065223a22753634227d5d2c226578656375746573223a7b2262696e223a5b3132382c302c332c342c312c302c38332c322c302c312c352c322c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a392c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a22416c6c6f77616e6365222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a5b7b22736c6f74223a302c226c6162656c223a226f776e6572222c2274797065223a2261646472657373227d2c7b22736c6f74223a312c226c6162656c223a227370656e646572222c2274797065223a2261646472657373227d5d2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a22616c6c6f77616e6365222c2274797065223a22753634227d5d2c226578656375746573223a7b2262696e223a5b3132382c302c342c342c312c302c38332c322c302c312c342c332c312c38332c342c322c332c352c342c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a31302c2264657073223a5b302c335d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a22417070726f766521222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a5b7b22736c6f74223a302c226c6162656c223a226f776e6572222c2274797065223a2261646472657373227d2c7b22736c6f74223a312c226c6162656c223a227370656e646572222c2274797065223a2261646472657373227d2c7b22736c6f74223a322c226c6162656c223a22616d6f756e74222c2274797065223a22753634227d5d2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a226f6b222c2274797065223a22626f6f6c227d5d2c226578656375746573223a7b2262696e223a5b3132382c302c342c342c312c302c38332c322c302c312c33322c332c322c39382c332c332c31372c342c31302c332c342c332c31372c342c302c34302c342c342c33362c322c342c312c342c332c312c342c342c322c38342c322c332c342c38342c302c312c322c3132392c302c342c34312c302c312c39382c302c302c352c302c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a31312c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a225472616e7366657221222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a5b7b22736c6f74223a302c226c6162656c223a2266726f6d222c2274797065223a2261646472657373227d2c7b22736c6f74223a312c226c6162656c223a22746f222c2274797065223a2261646472657373227d2c7b22736c6f74223a322c226c6162656c223a22616d6f756e74222c2274797065223a22753634227d5d2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a226f6b222c2274797065223a22626f6f6c227d5d2c226578656375746573223a7b2262696e223a5b3132382c302c332c342c312c302c38332c322c302c312c342c332c322c36382c342c332c322c31372c352c31302c332c352c342c34312c302c312c352c302c302c302c312c3130322c342c322c332c38342c302c312c342c342c352c312c38332c342c302c352c3130312c362c342c332c38342c302c352c362c3132392c302c332c34312c302c312c39382c302c302c352c302c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a31322c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a224d696e7421222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a5b7b22736c6f74223a302c226c6162656c223a22616d6f756e74222c2274797065223a22753634227d2c7b22736c6f74223a312c226c6162656c223a2261646472222c2274797065223a2261646472657373227d5d2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a226f6b222c2274797065223a22626f6f6c227d5d2c226578656375746573223a7b2262696e223a5b3132382c302c322c342c312c302c3130312c302c302c312c3132392c302c322c3132382c302c332c342c322c312c38332c332c302c322c3130312c332c332c312c38342c302c322c332c3132392c302c332c34312c302c312c39382c302c302c352c302c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a31332c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a224275726e21222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a5b7b22736c6f74223a302c226c6162656c223a22616d6f756e74222c2274797065223a22753634227d2c7b22736c6f74223a312c226c6162656c223a2261646472222c2274797065223a2261646472657373227d5d2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a226f6b222c2274797065223a22626f6f6c227d5d2c226578656375746573223a7b2262696e223a5b3132382c302c332c342c312c312c38332c322c302c312c342c332c302c36382c342c332c322c31372c352c31302c332c352c342c34312c302c312c352c302c302c302c312c3130322c342c322c332c38342c302c312c342c3132392c302c332c3132382c302c322c3130322c302c302c332c3132392c302c322c34312c302c312c39382c302c302c352c302c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d5d7d",
"id": 1
}
moi.LogicStorage
This method is used to retrieve the data associated with a particular storage slot and Logic ID. This can be useful when you want to inspect or read the data that is stored in a specific slot of a logic entity.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| logic_id | LogicID | The id of the logic whose associated data is to be accessed. |
| storage-key | StorageKey | The key of the storage slot hash whose data is to be accessed. It's represented as hexadecimal of 32 bytes long. |
| options | TesseractOptions | Options for querying the tesseract. |
Returns:
| Return Type | Description |
|---|---|
| HEX | The data associated with the given logic id and storage slot within the tesseract. |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "moi.LogicStorage",
"params": [
{
"logic_id": "0800009259ee349d92e578e7ae0150d8f8ffa1aa73535baecf3ae18c3e7ea8e305b3f5",
"storage_key": "03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c111314",
"options": {
"tesseract_number": -1
}
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": "0x064d4f49",
"id": 1
}
moi.GetLogs
This method is used to get all the tesseract logs for an account within a given tesseract range.
Note: Difference between start height and end height should be less than or equal to 10 tesseracts
Parameters:
| Parameter | Type | Description |
|---|---|---|
| id | HEX (32 Bytes) | The account id for which you are requesting logs |
| start_height | NUMBER | The start height of the tesseract |
| end_height | NUMBER | The end height of the tesseract |
| topics | ARRAY | An array of topic hashes in order |
Type of topic queries:
| Parameter | Description |
|---|---|
| [] or nil | matches any topic list |
| [[A]] | matches topic A in first position |
| [[], [B]] | matches any topic in first position AND B in second position |
| [[A], [B]] | matches topic A in first position AND B in second position |
| [[A], [B]], [[C], [D]] | matches topic (A OR B) in first position AND (C OR D) in second position |
Returns:
| Return | Type | Description |
|---|---|---|
| id | HEX (32 Bytes) | The id of the sender |
| logic_id | LogicID | The unique identifier of the logic for which the manifest is to be returned. |
| topics | ARRAY | An array of hashes representing the indexed parameters in an event, where the first topic corresponds to the event signature. |
| data | ARRAY | An array of bytes representing the data in the event. |
| ix_hash | HEX (32 Bytes) | The hash of all the interactions in the tesseract. |
| ts_hash | HEX (32 Bytes) | The hash of the tesseract. |
| participants | ARRAY | An array of participants involved in the interaction and their details. |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "moi.GetLogs",
"params": [
{
"id": "0x5fc0247c18448e91d15542ffb7a0956b6d5f1a19bdd11a36e6a1f7369288f886",
"start_height": 0,
"end_height": 9,
"topics": [
["0x223c39e29dff6467fedda09758d91781c5372e091ff86b3af9e310e386562bef"],
[
"0x91f07c7f1215b122f8ac96a1f841293a2a0796395b4e46d2174b4d16f89de12c",
"0x0000000000000000000000000aff3454fce5edbc8cca8697c15331677e6ebccc"
]
]
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": [
{
"id": "0x5fc0247c18448e91d15542ffb7a0956b6d5f1a19bdd11a36e6a1f7369288f886",
"logic_id": "0x08000012798f8199d5560560fab9673b86cf548e4095affd74f2e8b93095a7c61babec",
"topics": [
"0x223c39e29dff6467fedda09758d91781c5372e091ff86b3af9e310e386562bef",
"0x91f07c7f1215b122f8ac96a1f841293a2a0796395b4e46d2174b4d16f89de12c",
"0x7874d880f84228b8de1435beb3d9c4dd616e61f95e6545bae0f1d0f2eeccffc6"
],
"data": "Da8BBmWWAZUCpgaFB2Ftb3VudAMD6HJlY2VpdmVyBmd0V1wCZa3k/jFAHugyYW99+LUXCXKzeUsXCGOx6Qv2c2VuZGVyBl/AJHwYRI6R0VVC/7eglWttXxoZvdEaNuah9zaSiPiG",
"ix_hash": "0x145bb1f08e294ff8f762831bf738c325a5e88d054f059d5387e635287ebd8174",
"ts_hash": "0x47af60ba438d8db67b86972d57a3a4aa6d5bf37463f45e43a46398342883daf6",
"participants": [
{
"id": "0x12798f8199d5560560fab9673b86cf548e4095affd74f2e8b93095a7c61babec",
"height": "0x1",
"transitive_link": "0xce6a4d7cdaa85a7449fec5d1121b96a07d5bdbfe44b050dda4b6248e750182aa",
"prev_context": "0x35497ba630c49134776da125cc51d8e367ee9d922363335a8e4c59009c3365a0",
"latest_context": "0x2085620122de8640adeac67ab4617dd4fe70da496fdc442d618bb2f063c770d1",
"context_delta": {
"role": 1,
"behavioural_nodes": [
"3Wxw5LbF5Pp5zUcoH918UX5JZb2daYhFuVLT72rXqjMZugVsnNCf.16Uiu2HAm7Ww5HJ8u1QF98TYbBtWGJ1uyjYpd8H6WYcT82dsN6Sim"
],
"random_nodes": [
"3WzRphh11EWiE45mbDm5bumaByfkkUu9iZ41QSrhxM2HMrJFgopB.16Uiu2HAm2ENyMrr1Hn31fJJAUc1YRZbmgp48FooUW5oXcfWSjnM4"
],
"replaced_nodes": null
},
"state_hash": "0x3b519c4a5a1a0dcf327100a76f9fc51268112fc0b70aaa252b78b8b79592cabb"
},
{
"id": "0x5fc0247c18448e91d15542ffb7a0956b6d5f1a19bdd11a36e6a1f7369288f886",
"height": "0x2",
"transitive_link": "0xce6a4d7cdaa85a7449fec5d1121b96a07d5bdbfe44b050dda4b6248e750182aa",
"prev_context": "0xadcf3cd90bbae34b3cccac65983b225fb09377285f490441afa956f4ca3b3d23",
"latest_context": "0x37ae7bf9a9d2c63266bfa0665a2187c6cecd56cbb15ea2ccce70985b82028668",
"context_delta": {
"role": 0,
"behavioural_nodes": [
"3Wxw5LbF5Pp5zUcoH918UX5JZb2daYhFuVLT72rXqjMZugVsnNCf.16Uiu2HAm7Ww5HJ8u1QF98TYbBtWGJ1uyjYpd8H6WYcT82dsN6Sim"
],
"random_nodes": [
"3WzRphh11EWiE45mbDm5bumaByfkkUu9iZ41QSrhxM2HMrJFgopB.16Uiu2HAm2ENyMrr1Hn31fJJAUc1YRZbmgp48FooUW5oXcfWSjnM4"
],
"replaced_nodes": null
},
"state_hash": "0x08c1f38b7b4fa077d0fbe0774d066fd0dbbcc1b2c9f8b99a81626f9512973db9"
}
]
}
],
"id": 1
}
moi.NewTesseractFilter
This method is used to set up a filter to get all new terreracts since filter is set up. The method has a timeout period of 1 minute. Each time we query, the timeout is reset to 1 minute.
Parameters:
This method does not require any parameters.
Returns:
| Return | Type | Description |
|---|---|---|
| id | STRING | The object containing the Filter ID for NewTesseractFilter |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method":"moi.NewTesseractFilter",
"jsonrpc":"2.0",
"id":1
}'
{
"jsonrpc": "2.0",
"result": {
"id": "4155a053-7b74-46ac-98b6-9f440e27e2e5"
},
"id": 1
}
moi.NewTesseractsByAccountFilter
This method is used to set up a filter to get all new terreracts for the given account since filter is set up. The method has a timeout period of 1 minute. Each time we query, the timeout is reset to 1 minute.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| id | HEX (32 Bytes) | The id of the account you want to get new tesseracts for |
Returns:
| Return | Type | Description |
|---|---|---|
| id | STRING | The object containing the Filter ID for NewTesseractsByAccountFilter |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method":"moi.NewTesseractsByAccountFilter",
"params":[
{
"id":"0x9673f1882112b218e5be9f2e0c8a65ce2b3f35ecd4e056dde4d9084229ddaa4e"
}
],
"jsonrpc":"2.0",
"id":1
}'
{
"jsonrpc": "2.0",
"result": {
"id": "4155a053-7b74-46ac-98b6-9f440e27e2e5"
},
"id": 1
}
moi.NewLogFilter
This method is used to set up a filter to get all new tesseract logs for the given account since filter is set up. The method has a timeout period of 1 minute. Each time we query, the timeout is reset to 1 minute.
Note: Difference between start height and end height should be less than or equal to 10 tesseracts
Parameters:
| Parameter | Type | Description |
|---|---|---|
| id | HEX (32 Bytes) | The account id for which you are requesting logs |
| start_height | NUMBER | The start height of the tesseract |
| end_height | NUMBER | The end height of the tesseract |
| topics | ARRAY | An array of topic hashes in order |
Type of topic queries:
| Parameter | Description |
|---|---|
| [] or nil | matches any topic list |
| [[A]] | matches topic A in first position |
| [[], [B]] | matches any topic in first position AND B in second position |
| [[A], [B]] | matches topic A in first position AND B in second position |
| [[A], [B]], [[C], [D]] | matches topic (A OR B) in first position AND (C OR D) in second position |
Returns:
| Return | Type | Description |
|---|---|---|
| id | STRING | The object containing the Filter ID for NewLogFilter |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "moi.NewLogFilter",
"params": [
{
"id": "0x5fc0247c18448e91d15542ffb7a0956b6d5f1a19bdd11a36e6a1f7369288f886",
"start_height": 0,
"end_height": 2,
"topics": [
["0x000000000000000000000000a94f5374fce5edbc8e2a8697c15331677e6ebf0b"],
[
"0x000000000000000000000000a94f5374fce5edbc8e2a8697c15331677e6ebf0b",
"0x0000000000000000000000000aff3454fce5edbc8cca8697c15331677e6ebccc"
]
]
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": {
"id": "4155a053-7b74-46ac-98b6-9f440e27e2e5"
},
"id": 1
}
moi.PendingIxnsFilter
This method is used to set up a filter to get all new interactions in ixpool since filter is set up. The method has a timeout period of 1 minute. Each time we query, the timeout is reset to 1 minute.
Parameters:
This method does not require any parameters.
Returns:
| Return | Type | Description |
|---|---|---|
| id | STRING | The object containing the Filter ID for PendingIxnsFilter |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method":"moi.PendingIxnsFilter",
"jsonrpc":"2.0",
"id":1
}'
{
"jsonrpc": "2.0",
"result": {
"id": "4155a053-7b74-46ac-98b6-9f440e27e2e5"
},
"id": 1
}
moi.RemoveFilter
This method is used to remove a filter.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| id | STRING | The object containing the Filter ID of the filter you want to remove |
Returns:
| Return | Type | Description |
|---|---|---|
| status | BOOL | Returns true on successful removal of filter, else false |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method":"moi.RemoveFilter",
"params":[
{
"id": "4155a053-7b74-46ac-98b6-9f440e27e2e5"
}
],
"jsonrpc":"2.0",
"id":1
}'
{
"jsonrpc": "2.0",
"result": {
"status": true
},
"id": 1
}
moi.GetFilterChanges
This method is used to get all filter changes since the last poll. The result varies based on filter.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| id | STRING | The object containing the Filter ID of the filter you want changes for |
Returns:
| Return | Type | Description |
|---|---|---|
| data | JSON | The object data varies based on filter. Example used: moi.NewTesseractFilter |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method":"moi.GetFilterChanges",
"params":[
{
"id": "4ef7b0b7-6a21-4522-a8d6-78296cc2d028"
}
],
"jsonrpc":"2.0",
"id":1
}'
{
"jsonrpc": "2.0",
"result": [
{
"participants": [
{
"id": "0x0dbea6ee1ef4adf740671f48e3960fcc267aff7cfb647371ea286a71c1be6797",
"height": "0x0",
"transitive_link": "0x0000000000000000000000000000000000000000000000000000000000000000",
"prev_context": "0x0000000000000000000000000000000000000000000000000000000000000000",
"latest_context": "0x7db76efe6cd36e2d86023d9c5a238e12e5ac1851b30464fe8ceba01089a8d293",
"context_delta": {
"role": 1,
"behavioural_nodes": [
"3WvrsmWXyWAarhhVK7EgPE2UQRf6rYdqDmUfbTFSMQgDzTkfbUoy.16Uiu2HAmCZ6eL1dhcfs1HupvWL7ocs5qkeeLBMEPYXi8tcN5HkmQ"
],
"random_nodes": [
"3WzAkVmPP2Zwytuk8MH3WRJiTD2cy6ZRRW2GAGpDMwgCEhzrwzBR.16Uiu2HAm4tKY3sy6GCh715eDL2tQnBy5t61h53ndHCPPoxUqz9nL"
],
"replaced_nodes": null
},
"state_hash": "0x5d568f15b60b2d1ccf5a17d147280c195ceee250169d1e94f46956f6ce9bfc3a"
},
{
"id": "0x62b8342797343fd95a2b5abe65dd74034bedd6248d91098f759d3d8408004fc3",
"height": "0x1",
"transitive_link": "0xad1e527a51ee016e46ae225c14afc12a3d6f7097aaa0f7877545ea49494d943f",
"prev_context": "0x236901e48bf2b2befcef156cbcf2e073d841658afe6965d4cb88485b93a429ce",
"latest_context": "0x0ef6acf998d9e89818302c18275dc1e151725c8f34a9c22e0986d6396c074f0d",
"context_delta": {
"role": 0,
"behavioural_nodes": null,
"random_nodes": [
"3WvrsmWXyWAarhhVK7EgPE2UQRf6rYdqDmUfbTFSMQgDzTkfbUoy.16Uiu2HAmCZ6eL1dhcfs1HupvWL7ocs5qkeeLBMEPYXi8tcN5HkmQ"
],
"replaced_nodes": null
},
"state_hash": "0xe83b6d2f59d8e8f59422ab8bec49ea0ef221741f9d8673d7516700dd484e2d2a"
},
{
"id": "0xa6ba9853f131679d00da0f033516a2efe9cd53c3d54e1f9a6e60e9077e9f9384",
"height": "0x1",
"transitive_link": "0xad1e527a51ee016e46ae225c14afc12a3d6f7097aaa0f7877545ea49494d943f",
"prev_context": "0x236901e48bf2b2befcef156cbcf2e073d841658afe6965d4cb88485b93a429ce",
"latest_context": "0x0ef6acf998d9e89818302c18275dc1e151725c8f34a9c22e0986d6396c074f0d",
"context_delta": {
"role": 2,
"behavioural_nodes": null,
"random_nodes": [
"3WvrsmWXyWAarhhVK7EgPE2UQRf6rYdqDmUfbTFSMQgDzTkfbUoy.16Uiu2HAmCZ6eL1dhcfs1HupvWL7ocs5qkeeLBMEPYXi8tcN5HkmQ"
],
"replaced_nodes": null
},
"state_hash": "0x2f682a747fceff83164309c5cb030708eead580b923283906e31b4db1eb42e7f"
}
],
"interactions_hash": "0x00e1cddb06f6e02b3c98afec2d9398a9d0e4dbf32ee0971c159be531e2906c12",
"receipts_hash": "0x2360e5cdedb23d2d1705b5e4450e3720de7af436c1eb5e68bcf1f6973c218370",
"epoch": "0x0",
"time_stamp": "0x65c0d2ed",
"operator": "3WzTzaNPQrTGQoUpBVscNX3KkMdEUU4St1PogzAq9TWpkHSJCchV.16Uiu2HAmJ9LenctGU8qP9uu6XhDqjR8jdRFn2YYg951vmVWV4VAv",
"fuel_used": "0x64",
"fuel_limit": "0x3e8",
"consensus_info": {
"evidence_hash": "0xd3f5e997541d7fa793b83ea88b9949b0e781d878381a3b63df905a4a88c9692b",
"binary_hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"identity_hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"ics_hash": "0xc54f5de532d710047bf5567f40626cfedd402390097f8d085ab055155ff9b674",
"cluster_id": "82sCm7Yv9yok7bHESanjQJvnZhdbu3H9q8aX1M2doakc",
"ics_signature": "0x",
"ics_vote_set": "BA{11:xxxxxxxxxxx}",
"round": "0x0",
"commit_signature": "0x88f95c8110406f8ac505524e40ad031db9f7d2bc2a4eb4ac05e3f69efafb612db4068bb8a69e6898f5df76fee76f44d7155f03e463f199687553549eceb82b7419edf32952b41caa9a3653687849ee8edfd3a1328167d166f24aa253579ecffa",
"bft_vote_set": "BA{11:x_x_x_x_x__}"
},
"seal": "0x0460855f95e75005814b8f02e2ca8cf520d253bd6c6db96a71a5fa934875a8d038821e1b59b55b1de61316548148557ba73a064f6a1c2d639b83e93d97ba2535d51c69db67dc25f34f3748499b107598f7a85d509f6840004bc1792010b2608d1651",
"hash": "0x32697b9b1c135cadf4f187346c94564356faf324a4e24f08dfa16894bc3e166b",
"id": "0x0dbea6ee1ef4adf740671f48e3960fcc267aff7cfb647371ea286a71c1be6797",
"ixns": [
{
"type": 3,
"nonce": "0x0",
"sender": "0x9673f1882112b218e5be9f2e0c8a65ce2b3f35ecd4e056dde4d9084229ddaa4e",
"receiver": "0x0000000000000000000000000000000000000000000000000000000000000000",
"payer": "0x0000000000000000000000000000000000000000000000000000000000000000",
"transfer_values": null,
"perceived_values": null,
"perceived_proofs": "0x",
"fuel_price": "0x1",
"fuel_limit": "0xc8",
"payload": {
"symbol": "TEST",
"supply": "0x130d41",
"dimension": "0x0",
"standard": "0x0",
"is_logical": false,
"is_stateful": false
},
"mode": "0x0",
"compute_hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"compute_nodes": null,
"mtq": "0x0",
"trust_nodes": null,
"hash": "0xd1ab9752b0034be600cb12b3d513b6f9c3c382deb8a3f9844228623117fa22f3",
"signature": "0x01473045022100d07d62fe13e71ed19b32ba79fd1a995d53ea3488c2a801b0f965c5b416cdec04022061ed562171647ff80774bd6481aa7a6ae14d8487380026698c93f3f62805043c02",
"ts_hash": "0x32697b9b1c135cadf4f187346c94564356faf324a4e24f08dfa16894bc3e166b",
"participants": null,
"ix_index": "0x0"
}
]
}
],
"id": 1
}
IxPool APIs
ixpool.ContentFrom
This method is used to fetch detailed information about the interactions that are pending for inclusion in the next Tesseract(s) or are scheduled for future execution. This information is fetched based on the id provided as a parameter.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| id | HEX (32 Bytes) | The id of the sender. |
Returns:
| Return | Type | Description |
|---|---|---|
| pending | OBJECT | The object containing details of pending interactions for the given id. |
| queued | OBJECT | The object containing details of queued interactions for the given id. |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "ixpool.ContentFrom",
"params": [
{
"id": "0x52fdfc072182654f163f5f0f9a621d729566c74d10037c4d7bbb0407d1e2c649"
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": {
"pending": {
"0x9": {
"nonce": "0x9",
"type": "0x8",
"sender": "0x52fdfc072182654f163f5f0f9a621d729566c74d10037c4d7bbb0407d1e2c649",
"receiver": "0x218f8132003f2b5c940d5b517d153c86602d46fe171623f65c413f703f2ee055",
"cost": "0x16af855aa81",
"fuel_price": "0x130d41",
"fuel_limit": "0x130d41",
"input": "0e5f000676960b536565646572210def0106458601e501f605d506f606d5076e616d650673756973656564657206eb9d18a44784045d87f3c67cf22746e995af5a25367951baa2ff6cd471c483f1737570706c79036473796d626f6c067375690e4f065ede01302e312e302f064e504953410fef030e9e14be279e2b9e2fce37be40ee4abe549e618e72fe8801ee9f019eb1014f0000065e73746174653f06ae0170657273697374656e749f010eee01fe038e068e0a3f0006466e616d65737472696e673f0316760173796d626f6c737472696e673f03167602737570706c7975696e7436344f031696010362616c616e6365736d61705b616464726573735d75696e7436344f0316b60104616c6c6f77616e6365736d61705b616464726573735d6d61705b616464726573735d75696e7436345f031e36ae01011f00726f7574696e65af010676fe01900b900b9e0b536565646572216465706c6f7965727f0eee01fe038e063f0006466e616d65737472696e673f0316760173796d626f6c737472696e673f03167602737570706c7975696e7436343f03167603736565646572616464726573735f06f603f003040000810000040001810001040002810002800103040203540102008101035f0310169e0102636f6e7374616e742f066675696e7436343078303330615f031016860103747970656465666d61705b616464726573735d75696e7436345f031e36ae01041f00726f7574696e65af010646d001de01d003de034e616d65696e766f6b61626c651f0e3f0006466e616d65737472696e673f0666608000000500005f031e36ae01051f00726f7574696e65af010666f001fe0190049e0453796d626f6c696e766f6b61626c651f0e3f00066673796d626f6c737472696e673f0666608000010500005f031e46be01061f0302726f7574696e65bf0106860190029e02e004ee04446563696d616c73696e766f6b61626c651f0e4f00068601646563696d616c7375696e7436345f06960190011100021000000500005f031e36ae01071f00726f7574696e65bf0106b601c002ce02e004ee04546f74616c537570706c79696e766f6b61626c651f0e3f000666737570706c7975696e7436343f0666608000020500005f031e36ae01081f00726f7574696e65bf01069601ae02be04e006ee0642616c616e63654f66696e766f6b61626c651f0e3f00064661646472616464726573731f0e3f00067662616c616e636575696e7436345f06d601d001800003040100530200010502005f031e36ae01091f00726f7574696e65bf01069601ae02ae07800a8e0a416c6c6f77616e6365696e766f6b61626c653f0e8e023f0006566f776e6572616464726573734f03168601017370656e646572616464726573731f0e4f00069601616c6c6f77616e636575696e7436345f06c602c00280000404010053020001040301530402030504005f031e56ce010a2f000303726f7574696e65bf010686019e02ce09800b8e0b417070726f766521696e766f6b61626c655f0e8e02ce043f0006566f776e6572616464726573734f03168601017370656e646572616464726573733f03167602616d6f756e7475696e7436341f0e3f0006266f6b626f6f6c5f06a607a0078000040401005302000120030262030311040a0304031104002804042402040104030104040254020304540001028100042900016200000500005f031e36ae010b1f00726f7574696e65bf01069601ae02ee08a00aae0a5472616e7366657221696e766f6b61626c655f0efe01de033f00064666726f6d616464726573733f03163601746f616464726573733f03167602616d6f756e7475696e7436341f0e3f0006266f6b626f6f6c5f06a608a008800003040100530200010403024404030211050a030504290001050000000166040203540001040405015304000565060403540005068100032900016200000500005f031e36ae010c1f00726f7574696e65af010656ee01ae06e007ee074d696e7421696e766f6b61626c653f0e8e023f000666616d6f756e7475696e7436343f0316560161646472616464726573731f0e3f0006266f6b626f6f6c5f06b605b005800002040100650000018100028000030402015303000265030301540002038100032900016200000500005f031e36ae010d1f00726f7574696e65af010656ee01ae06e007ee074275726e21696e766f6b61626c653f0e8e023f000666616d6f756e7475696e7436343f0316560161646472616464726573731f0e3f0006266f6b626f6f6c5f06d607d007800003040101530200010403004404030211050a0305042900010500000001660402035400010481000380000266000003810002290001620000050000",
"hash": "0xec00c62d39282f00be53d17b30dae6eeaecb21276b75ed9acbe225c70d634cd1"
}
},
"queued": {}
},
"id": 1
}
ixpool.WaitTime
This method is used to retrieve the waiting time for an account in ixpool. It's a way to check how long an account has to wait in the queue to get processed.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| id | HEX (32 Bytes) | The id of the account for which the wait time has to be retrieved. |
Returns:
| Return | Type | Description |
|---|---|---|
| expired | BOOLEAN | Indicates whether if it has exceeded the wait time |
| time | DURATION | The amount of time the account will have to wait in the queue to get processed (expressed in milliseconds) |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "ixpool.WaitTime",
"params": [
{
"id": "0x52fdfc072182654f163f5f0f9a621d729566c74d10037c4d7bbb0407d1e2c649"
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": {
"expired": true,
"time": "0x996e3"
},
"id": 1
}
ixpool.Content
This method is used to retrieve a comprehensive list of all interactions that are awaiting inclusion in the upcoming Tesseract(s). It also retrieves all the interactions that are scheduled for execution in the future.
Parameters:
This method does not require any parameters.
Returns:
| Return Type | Description |
|---|---|
| OBJECT | The object contains a list of all pending and queued interactions |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "ixpool.Content",
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": {
"pending": {},
"queued": {
"0x006f28295d7d39069f01a239c4365854c3af7f6b41d631f92b9a8d12f4125732": {
"0x10": {
"nonce": "0x10",
"type": "0x3",
"sender": "0x006f28295d7d39069f01a239c4365854c3af7f6b41d631f92b9a8d12f4125732",
"receiver": "0x0000000000000000000000000000000000000000000000000000000000000000",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "0e5f0ec003c0038f0200068301a001a001a101a101a101a6013034613635643436afc8",
"hash": "0x5a9725662bbb138a5f200a1175e1d5730a067e8d5562d7dfee57066aaf61fb5d"
},
"0x11": {
"nonce": "0x11",
"type": "0x1",
"sender": "0x006f28295d7d39069f01a239c4365854c3af7f6b41d631f92b9a8d12f4125732",
"receiver": "0x24ba9c9b14678a274f01a910ae295f6efbfe5f5abf44ccde263b5606633e2bf0",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "",
"hash": "0x6f857ee9069fcc5fe311371ff57cec1a542110e28501650d7b8c60df4485c8c0"
},
"0x12": {
"nonce": "0x12",
"type": "0x1",
"sender": "0x006f28295d7d39069f01a239c4365854c3af7f6b41d631f92b9a8d12f4125732",
"receiver": "0x0b4b373970115e82ed6f4125c8fa7311e4d7defa922daae7786667f7e936cd4f",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "",
"hash": "0x5af1fd9a60c0f9f12840260ba84b4af7a33c58063c4db43709c4d6ea5910ebf9"
},
"0x13": {
"nonce": "0x13",
"type": "0x3",
"sender": "0x006f28295d7d39069f01a239c4365854c3af7f6b41d631f92b9a8d12f4125732",
"receiver": "0x0000000000000000000000000000000000000000000000000000000000000000",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "0e5f0ec003c0038f0200068301a001a001a101a101a101a6013563656266643561afc8",
"hash": "0x5c0deb567d99d45ca22620a68c40e584ec6eb546af19cfbc5c2ce5c960adf922"
},
"0x14": {
"nonce": "0x14",
"type": "0x1",
"sender": "0x006f28295d7d39069f01a239c4365854c3af7f6b41d631f92b9a8d12f4125732",
"receiver": "0x81855ad8681d0d86d1e91e00167939cb6694d2c422acd208a0072939487f6999",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "",
"hash": "0xa06d0dae79b96c4379a4f657bbec90c207d1bfd3369bf1740a514da965731abb"
},
"0x15": {
"nonce": "0x15",
"type": "0x1",
"sender": "0x006f28295d7d39069f01a239c4365854c3af7f6b41d631f92b9a8d12f4125732",
"receiver": "0x175debae70a5b686fef34fa3e12503fe62e63bee5beb697bd836e36c1dc65d04",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "",
"hash": "0x71569da0a86b875c6c6f09abb9e469d1c8890146e57fabb2ab437d9819a14bd1"
},
"0x16": {
"nonce": "0x16",
"type": "0x1",
"sender": "0x006f28295d7d39069f01a239c4365854c3af7f6b41d631f92b9a8d12f4125732",
"receiver": "0x4c7215a3b539eb1e5849c6077dbb5722f5717a289a266f97647981998ebea89c",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "",
"hash": "0xc27aa0ca35837d7ca3c07ef8471275cada0cc04d5ba23601c4cf1156e7a66ebb"
},
"0x17": {
"nonce": "0x17",
"type": "0x1",
"sender": "0x006f28295d7d39069f01a239c4365854c3af7f6b41d631f92b9a8d12f4125732",
"receiver": "0x5fff332f7576b0620556304a3e3eae14c28d0cea39d2901a52720da85ca1e4b3",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "",
"hash": "0x749031cd149faed814a5a40ffbd64eba8393b0969cb2dc5d0be41f82a112a97f"
},
"0x18": {
"nonce": "0x18",
"type": "0x3",
"sender": "0x006f28295d7d39069f01a239c4365854c3af7f6b41d631f92b9a8d12f4125732",
"receiver": "0x0000000000000000000000000000000000000000000000000000000000000000",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "0e5f0ec003c0038f0200068301a001a001a101a101a101a6013033363839613030afc8",
"hash": "0x82ba304eb4160e5124499011476d39c887b035c33eb82ee49a9a805edeb4659b"
},
"0x19": {
"nonce": "0x19",
"type": "0x3",
"sender": "0x006f28295d7d39069f01a239c4365854c3af7f6b41d631f92b9a8d12f4125732",
"receiver": "0x0000000000000000000000000000000000000000000000000000000000000000",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "0e5f0ec003c0038f0200068301a001a001a101a101a101a6013434656634643330afc8",
"hash": "0x75f74ebcb4feb1f60f35375b261ae32c8499cc8a08240416c62ac6af2b5f785f"
},
"0x1a": {
"nonce": "0x1a",
"type": "0x1",
"sender": "0x006f28295d7d39069f01a239c4365854c3af7f6b41d631f92b9a8d12f4125732",
"receiver": "0x5a1a713b1f441936fc2a6cafcfcb0917ab9a9e9ae940c50f98b3eebf7cf86270",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "",
"hash": "0xc9323d9235752ce38358171e721196a9eb147579cc6042ab3719e2dede54fe1a"
},
"0x1b": {
"nonce": "0x1b",
"type": "0x1",
"sender": "0x006f28295d7d39069f01a239c4365854c3af7f6b41d631f92b9a8d12f4125732",
"receiver": "0x0b4b373970115e82ed6f4125c8fa7311e4d7defa922daae7786667f7e936cd4f",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "",
"hash": "0xa466c02be792521a1dac8fa6b9c8605c993c873d15ce8cd78cf448b7f5a5f693"
},
"0x1c": {
"nonce": "0x1c",
"type": "0x3",
"sender": "0x006f28295d7d39069f01a239c4365854c3af7f6b41d631f92b9a8d12f4125732",
"receiver": "0x0000000000000000000000000000000000000000000000000000000000000000",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "0e5f0ec003c0038f0200068301a001a001a101a101a101a6016233613030643634afc8",
"hash": "0x6fe039e528a25af0b750516339f8ea4924054c5091ac58912deb4f54702c8985"
},
"0x1d": {
"nonce": "0x1d",
"type": "0x3",
"sender": "0x006f28295d7d39069f01a239c4365854c3af7f6b41d631f92b9a8d12f4125732",
"receiver": "0x0000000000000000000000000000000000000000000000000000000000000000",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "0e5f0ec003c0038f0200068301a001a001a101a101a101a6013962336237363037afc8",
"hash": "0xd6affee104b7867b3e1baa1faf6d02809a31fe4d352f4c1978b75510dcf19023"
},
"0x1e": {
"nonce": "0x1e",
"type": "0x3",
"sender": "0x006f28295d7d39069f01a239c4365854c3af7f6b41d631f92b9a8d12f4125732",
"receiver": "0x0000000000000000000000000000000000000000000000000000000000000000",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "0e5f0ec003c0038f0200068301a001a001a101a101a101a6016635333334373637afc8",
"hash": "0xefe8b1a697c5be03259bb6c4daedce5dcc6a6f65d471bf14f0ba10ea2782b0df"
},
"0x1f": {
"nonce": "0x1f",
"type": "0x1",
"sender": "0x006f28295d7d39069f01a239c4365854c3af7f6b41d631f92b9a8d12f4125732",
"receiver": "0x7f5818526f1814be823350eab13935f31d84484517e924aef78ae151c0075592",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "",
"hash": "0xbfab8108de57f257d3fa034e1cb6c9fd4df7125c699ca89830caa203fac278ab"
},
"0xc": {
"nonce": "0xc",
"type": "0x3",
"sender": "0x006f28295d7d39069f01a239c4365854c3af7f6b41d631f92b9a8d12f4125732",
"receiver": "0x0000000000000000000000000000000000000000000000000000000000000000",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "0e5f0ec003c0038f0200068301a001a001a101a101a101a6016534656134353633afc8",
"hash": "0x8e66219af2595d7f417d2584771f86d1f5d3d2cddc8deb184de9a22d8bdc127b"
},
"0xd": {
"nonce": "0xd",
"type": "0x1",
"sender": "0x006f28295d7d39069f01a239c4365854c3af7f6b41d631f92b9a8d12f4125732",
"receiver": "0x08aa244779a78bc18ba335e8a9f215abc2a6fa0f2bdb2f0359f02160dbb79556",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "",
"hash": "0x9190009ab2d80629e6f5215d3b86bb352f469537a11c1c4f4b606445d38f217d"
},
"0xe": {
"nonce": "0xe",
"type": "0x3",
"sender": "0x006f28295d7d39069f01a239c4365854c3af7f6b41d631f92b9a8d12f4125732",
"receiver": "0x0000000000000000000000000000000000000000000000000000000000000000",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "0e5f0ec003c0038f0200068301a001a001a101a101a101a6016365386239343562afc8",
"hash": "0x8b2a7f6986def508e7156f4703a47b2dcfcf78df5985599e92bc494df92d03b5"
},
"0xf": {
"nonce": "0xf",
"type": "0x1",
"sender": "0x006f28295d7d39069f01a239c4365854c3af7f6b41d631f92b9a8d12f4125732",
"receiver": "0x0bf5059875921e668a5bdf2c7fc4844592d2572bcd0668d2d6c52f5054e2d083",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "",
"hash": "0x66cf11eef00cd2b417fc3c12ce12462c1baaf1e400980e32c5a18ea7087d57bf"
}
},
"0x3bea6f5b3af6de0374366c4719e43a1b067d89bc7f01f1f573981659a44ff17a": {
"0x10": {
"nonce": "0x10",
"type": "0x3",
"sender": "0x3bea6f5b3af6de0374366c4719e43a1b067d89bc7f01f1f573981659a44ff17a",
"receiver": "0x0000000000000000000000000000000000000000000000000000000000000000",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "0e5f0ec003c0038f0200068301a001a001a101a101a101a6016532393966326363afc8",
"hash": "0xabd555cfc61584c27c4e895ae2fb3f9c276867ab565aca54ab1e18402fa43816"
},
"0x11": {
"nonce": "0x11",
"type": "0x3",
"sender": "0x3bea6f5b3af6de0374366c4719e43a1b067d89bc7f01f1f573981659a44ff17a",
"receiver": "0x0000000000000000000000000000000000000000000000000000000000000000",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "0e5f0ec003c0038f0200068301a001a001a101a101a101a6013838386661616434afc8",
"hash": "0xc962e06f181b6601c8889cdb61271dd472c0e2f0ce222b09cef6a98210d52c05"
},
"0x12": {
"nonce": "0x12",
"type": "0x3",
"sender": "0x3bea6f5b3af6de0374366c4719e43a1b067d89bc7f01f1f573981659a44ff17a",
"receiver": "0x0000000000000000000000000000000000000000000000000000000000000000",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "0e5f0ec003c0038f0200068301a001a001a101a101a101a6013532613962623934afc8",
"hash": "0xdbd5cc8259d9c7bbf0182e482e04fa7af2791a8ac065a745b0f40b47ec64ccdf"
},
"0x13": {
"nonce": "0x13",
"type": "0x3",
"sender": "0x3bea6f5b3af6de0374366c4719e43a1b067d89bc7f01f1f573981659a44ff17a",
"receiver": "0x0000000000000000000000000000000000000000000000000000000000000000",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "0e5f0ec003c0038f0200068301a001a001a101a101a101a6013631663536373139afc8",
"hash": "0x0cf2e1f28481dd4d4a4378e0bd27a9f4d1c6a0f782a63f38ea51c0d9dacf80da"
},
"0x14": {
"nonce": "0x14",
"type": "0x3",
"sender": "0x3bea6f5b3af6de0374366c4719e43a1b067d89bc7f01f1f573981659a44ff17a",
"receiver": "0x0000000000000000000000000000000000000000000000000000000000000000",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "0e5f0ec003c0038f0200068301a001a001a101a101a101a6013036633238396134afc8",
"hash": "0x3496131c274d2666f939d1578053ca94e22056b9d82083bf216edbd77ea296c5"
},
"0xa": {
"nonce": "0xa",
"type": "0x1",
"sender": "0x3bea6f5b3af6de0374366c4719e43a1b067d89bc7f01f1f573981659a44ff17a",
"receiver": "0xaf6059acbc9fef8aa0e2dd22d26fb526a7d7971f85b1a384fbfb8728a4e6870f",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "",
"hash": "0xe70f0c74a4041397978498a9d18419d816b007e8e978302c477ac08a3b92ca69"
},
"0xb": {
"nonce": "0xb",
"type": "0x3",
"sender": "0x3bea6f5b3af6de0374366c4719e43a1b067d89bc7f01f1f573981659a44ff17a",
"receiver": "0x0000000000000000000000000000000000000000000000000000000000000000",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "0e5f0ec003c0038f0200068301a001a001a101a101a101a6013930386632356536afc8",
"hash": "0x3e52e12147acbf2a02f3a4b78865780601f198c528d2dfa161481a3634f04896"
},
"0xc": {
"nonce": "0xc",
"type": "0x3",
"sender": "0x3bea6f5b3af6de0374366c4719e43a1b067d89bc7f01f1f573981659a44ff17a",
"receiver": "0x0000000000000000000000000000000000000000000000000000000000000000",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "0e5f0ec003c0038f0200068301a001a001a101a101a101a6013535643564316262afc8",
"hash": "0x5c391785e3633ccdadf209104ec3a166c493da081f0f28eff8844f19ea49059f"
},
"0xd": {
"nonce": "0xd",
"type": "0x1",
"sender": "0x3bea6f5b3af6de0374366c4719e43a1b067d89bc7f01f1f573981659a44ff17a",
"receiver": "0xbf2054109aa069e80cd5a609d7c8460e48dbfe391a35b78413da935829ca5e60",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "",
"hash": "0xc3df77afdd61a141c6a0f7fed555c65503912c121b5669b5cae4268478f4e68a"
},
"0xe": {
"nonce": "0xe",
"type": "0x3",
"sender": "0x3bea6f5b3af6de0374366c4719e43a1b067d89bc7f01f1f573981659a44ff17a",
"receiver": "0x0000000000000000000000000000000000000000000000000000000000000000",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "0e5f0ec003c0038f0200068301a001a001a101a101a101a6013761336464613136afc8",
"hash": "0x3eafbd8e2899bc2c99631699fa37cde4bc83bf62805cddb5bf57b308320f6625"
},
"0xf": {
"nonce": "0xf",
"type": "0x1",
"sender": "0x3bea6f5b3af6de0374366c4719e43a1b067d89bc7f01f1f573981659a44ff17a",
"receiver": "0x4136abf752b3b8271d03e944b3c9db366b75045f8efd69d22ae5411947cb553d",
"cost": "0x0",
"fuel_price": "0x3e8",
"fuel_limit": "0x0",
"input": "",
"hash": "0xd24bce941476d3f16132a11e003bae819838677e8a3481fdb2ebf1e91f0130c3"
}
}
}
},
"id": 1
}
ixpool.Inspect
This method provides a summary of all the interactions that are currently waiting to be included in the next Tesseract(s), as well as interactions scheduled for future execution. Additionally, it provides a list of all the accounts in the ixpool with their respective wait times. This method is particularly useful for developers, as it can help them quickly review interactions in the pool and identify any potential issues.
Parameters:
This method does not require any parameters.
Returns:
| Return Type | Description |
|---|---|
| OBJECT | The object contains a simplified, readable list of all interactions that are waiting for inclusion in the next Tesseract and are scheduled for future execution. It also includes a list of accounts with their respective wait times. |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "ixpool.Inspect",
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": {
"pending": {
"0x62b8342797343fd95a2b5abe65dd74034bedd6248d91098f759d3d8408004fc3": {
"2": "0x0dbea6ee1ef4adf740671f48e3960fcc267aff7cfb647371ea286a71c1be6797: 200 kmoi + 200 fuel × 1 kmoi"
}
},
"queued": {},
"wait_time": {
"0x62b8342797343fd95a2b5abe65dd74034bedd6248d91098f759d3d8408004fc3": {
"expired": false,
"time": "0x5da4"
}
}
},
"id": 1
}
ixpool.Status
This method provides a summary of all the interactions that are currently pending for inclusion in the next Tesseract(s) and interactions that are scheduled for future execution. This method is particularly useful for developers, as it can help them quickly review interactions and identify any potential issues.
Parameters:
This method does not require any parameters.
Returns:
| Return Type | Description |
|---|---|
| OBJECT | An object containing the number of pending and queued interactions. |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/ \
--header 'Content-Type: application/json' \
--data '{
"method": "ixpool.Status",
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": {
"pending": "0x0",
"queued": "0x1f"
},
"id": 1
}
Net APIs
net.Peers
This method allows you to retrieve a list of peers in the network. Peers are represented by their unique Krama IDs.
Parameters:
This method doesn't require any parameters.
Returns:
| Return Type | Description |
|---|---|
| ARRAY | A list of Krama IDs, each representing a unique peer in the network. |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "net.Peers",
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": [
"a4yaWoMUYAeFez5b18cuBM9nyFWescVGyDN6Zr55bSGGYGWxvj.16Uiu2HAmBvK2xNH9ZSLGoQyzcYx2T5Vxo8bBXEP2LMhaoY4PHsRd",
"a5CNS1R1USJzPsGvsfmCbFzmFLu8Mgp9Yzq1XNJo14BaTzvXVR.16Uiu2HAmM6X6SFsUYM3XAGZrScraDQ5RsgTHJGiYdHQmuKHRCoPj",
"a5HettSYmAJEebE53mLYBKrCGMkqDrdDmq6TzU2pQiTX8SaRcT.16Uiu2HAkwcM7N5JS6GuzUFVeYA7K8zmh8UrSdiTDebA5kLQekysa",
"a52iedWR7mFCCQuTkyNAUfoaMYEHgkWYx5fwLet7JxvsRCBGf9.16Uiu2HAm2vutTKfZNrwno1DDu4DLfgnuNNJgdH34Pjc6kcrx1Fni",
"a4uLZM15KLdG722ZjsQb6Dfbe5dk7fT1Jh5dXtjo8T5nb245Qs.16Uiu2HAkwqjBvVKZuC7aS1QhQnRLKf7qShBTkcHvxPmujXaATsGf",
"a5MoVqP9mGqv9GKrgGXBUDPcD3Y4ZRArim7rTM8uB8VNp3iDEw.16Uiu2HAm9YDaM9jnFVVuLhWQ3X8ZBKW8Rag6EwKBmAYjaLcVeuFi",
"a5683FVETqJsZt7DTYqbAsbaFTEyucN2pcB6UUrDYAKG7hDPY3.16Uiu2HAmGAs3Tz9Y4t2FzrxpumDeitoL2ACeW8ubYG5KWSsb2UXc",
"a5KZnt3oEFBgJM6Rw8PwQiXcScA8mru6nz9vttWAre8unJkUHm.16Uiu2HAmUUUpSrVmXafr2gmjdZy4kzwrBd7zjpkYjXFTi1f4skA8",
"a5NVPkSD6auvLFvGNCw46xZaYVXvBJgSnaX8zu2YABRziVjaYf.16Uiu2HAmSMNEV9rnTRrxssdpREigQWhPaStoJDRDFVrQGvjFMfb3",
"a4hBovGgNw69ovshkNyTf4wLQonnFppzNSvFgzPqt1Aasg5yTm.16Uiu2HAm1FUJvGqBvtHoW4HZRQJszjDsewaqkZJbftahtmQk2W9u",
"a5LanYgKH47NtSsAFbBPhDGc54f7BY9FQ8fvMmYD7RJKFUL5v7.16Uiu2HAm7D8qRxnsC8dEFTg5VhqiXeGgBkDzgFQbCMHHUbRGwPrY",
"a5JjjKMzfykcYt2gy2SWTqca11nm9vJKNRe51FQGPJeDSa5nuM.16Uiu2HAm3DmJtiqVg8cCLPGw4AxFXaYqyAL7Najv7GQVn8jrm8wj",
"a5147yKe6uQc42GzdaCK6ug2TWSwWPd8YhK72TNZqEJN3doksq.16Uiu2HAmVr287V9hCHJ4cPZ9wxF373F4XDev4t7zfiJiGzCrr2qL",
"a4pZ7xiq9BwEMK74mu5qnFWs4bbF2rFLCF7i2dZB5fVxF9BEMM.16Uiu2HAkyJVoWzgQpf4AEkpHV4FMCHFTz9Vvs5db7p8jz57k7Kfa",
"a5HJR39sUnwN4Np58PXvcSWhXMZKft5cJX8dK2eF8hUZsMhNSb.16Uiu2HAmGrLtt5PKyFNQeiUcuW1eD6zSGvVdozndwkXk4nTEHZKz",
"a4zmwACuFHYq6GvABLTXK5Hpf52P3pwK3YayXrxaazLJ522EWb.16Uiu2HAmRnVGfZC7LsTuXqzZboxcvVCkb35b4DAAWhgMarTkhwrN",
"a4r3TRdr9RiGMSLHXpEmjVGTg9ry8tZG9Cf8rvz3DWwMVd328w.16Uiu2HAmT9kDdNRGeViZmCb4rPYs8J9KiUbbSBfevdc8SXSAMNem",
"a53twsnejiCyjjA5fAcY1ZruGK8c7YoAKYTwEPnRsCg1X81Hh1.16Uiu2HAmJkS2tU5UyCtQbb7WM641aUuXRhZkgZ2atMURDURLcWGK",
"a4nKD6x7jj3mu4SVRP4ppUL9CfyNcQfeg8TXmQvRDioptjap9m.16Uiu2HAmBSDsJX3N4hJqDsvbxJJhz3Z9BT78MCTXkYQfcWKbmofy",
"a5MraRxPN7omSZyZ9Qii3BeJJfkY5wHMiU9Wsx9ifg7ZdFLrtw.16Uiu2HAm2Q5m6ftd3y8LzWpkggDBD8fcUunUGXQqT861dUMpbfht",
"a57JDEDuUeXSmnFwAB1dWpTJLbiVFpiXvkgijjumAwwd6BURtT.16Uiu2HAkyHZZ1KTooGP3UyQkJe5dTEAJeiiLfJU5BXkoxYgSdrVq",
"a527etVZvePB7nyhM78xxrK2UiXdMnYoubuhdk6VCRa2eDseBR.16Uiu2HAmEnDeCivHhEAo598hCCJcW7RxihMgGBaw4USZYLL8675o",
"a517GzAtp1So4sKHKrQ2DqbVL6wSPqrYsdw5uvkuZPg7E344kX.16Uiu2HAm9jVKSWGxTQmNDnmKH5Z99Q4xWrWamPDLynmxtP3Ugcgg",
"a4ZAkHRt2YdHYBCGPSNBaRPd14Jj8rg4AEapVJ8jHgcjH9ELDM.16Uiu2HAmF57P1QinkizvhQ8zvQhQR4p7zT76NKFBPdyiGzfoctpX",
"a54Wk21ZPWatjkuMPXJq2wanwwbN2mmSTrHFtCwUfSXZKSzR9R.16Uiu2HAmQdxi2XVHQ9L3zUdK9BsHjpwhjNJw54XjCgu6ZRvKhthL",
"a5HvL8KZexmsHMUmhgcFxEgBztFHukMAQm7XeiCrcS3uNLmfBu.16Uiu2HAkwgT9dF4XsVt9dfvFVytV3Kd8naNok5WzxKRZLprPvAmk",
"a4awp4ju5zcUn24bzRX8vhpAnnRbEEMofQnH4BZZ9VCJkcQ2Lf.16Uiu2HAm8gQk2b1AwvbfPWe9F1svwNsUHpaGwAoGT257ffTp8jL5",
"a5LCz3MVGkQL42992uvZTDtp4B6gsVJCw6dGMbNSVtoqs9PF4j.16Uiu2HAkvBwLWmFCHdXQf5ebRAg4Y8avMUw1PGjBchs7YCzrtiAu",
"a5MrQfCWMW3eymB61RwRcwmPUFwawq73hy5RQudGNd37YAFLb1.16Uiu2HAkyh4E7HN9KKMEoRngT4ntH1pRSyWHNEaiGhChmRe2VvS4",
"a4iYt4kPtHridHXg9FRAGRStkPdzBwbahz7fjLyeBwbjPt7gEs.16Uiu2HAkxUuX9PVVUEnniziNkgWpig2kyBSfpWDk8KymQCVYAyDB",
"a53CUac26gDThKekKKxWKnZxFsKHt7koTrjjT5gtVWD4x9FCjZ.16Uiu2HAmHqV5uK997Yo3FiusZbp8iX1BbDGttgAJFzqqy5qVFj9T",
"a4mFxsdL5hbvDJb6Ku79EaapNTs4SgC8HVR5CJnChvJXUSUHTu.16Uiu2HAmAjz5pPKcFvCh5LJ7bEqorjDH9ck8sH8hWd6v7Qbdzu3w",
"a4zoxKe3Zfz6TCzUGoUmHABn51tTWkoGJD9YmJ4qwx6AfpHhwu.16Uiu2HAmGqyHJekq1qqQ7vSpxB5qfd741gyZA2tmTNJGoP3Vhqrd",
"a4af3mQRY9qNHir84UncD8b4CiqAMJ42vrN5qqNsmEC63xZhuh.16Uiu2HAm1EkE17yajd3PR6zYwdk4dBXxHZrtKno3vWCXQShFxRub",
"a4ZQNLppKeUKYnD2H39tFW8BsUAExKvzK3Z7WHeybQ1iStVHZH.16Uiu2HAm5sF9pgSdoRUeLsX6WTSE8rGCbDYys6TpZNFmBwTpNAFy"
],
"id": 1
}
net.Version
This method is used to get the version of the software running.
Parameters:
This method does not require any parameters.
Returns:
| Return Type | Description |
|---|---|
| STRING | The version of the software running. |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "net.Version",
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": "0.0.1",
"id": 1
}
net.Info
This method is used to get the Krama ID of the node.
Parameters:
This method does not require any parameters.
Returns:
| Return Type | Description |
|---|---|
| OBJECT | Krama ID of the node. |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "net.Info",
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": {
"krama_id": "3WxU6hiAbngjrev2JbFjK1TwBupC6SJh3VDdYtZXLv21ewcNm5iP.16Uiu2HAmSM37rihu2qxFdaeoqXw32xJiTKbW7MbiMhGnYkF2JRmh"
},
"id": 1
}
Debug APIs
debug.DBGet
This method is used to retrieve raw value of a particular key stored in the database.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| storage_key | DBkey | This is the unique identifier for the stored data you want to retrieve. This is represented as hexadecimal of 65 bytes long. |
Returns:
| Return Type | Description |
|---|---|
| OBJECT | This is the raw value that is stored in the database corresponding to the provided storage key. |
- Request
- Response
curl --location --request POST 'http://localhost:1600/' \
--header 'Content-Type: application/json' \
--data-raw '{
"method": "debug.DBGet",
"params": [
{
"storage_key":"6275636b657400000384a6ba9853f131679d00da0f033516a2efe9cd53c3d54e1f9a6e60e9077e9f9384"
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"value": "your_requested_data_here"
}
}
debug.NodeMetaInfo
This method retrieves the metadata for a specific peer based on the provided parameters. If no parameters are provided, it returns metadata for all peers available in the database.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| peer_id | STRING | The peer id of the node for which metadata is requested (optional). |
| krama_id | STRING | The krama id of the node for which metadata is requested (optional). |
Returns:
| Return Type | Description |
|---|---|
| OBJECT | The object contains node meta info for the specific node or all nodes in the database. |
- Request
- Response
curl --location --request POST 'http://localhost:1600/' \
--header 'Content-Type: application/json' \
--data-raw '{
"method": "debug.NodeMetaInfo",
"params": [{}],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"16Uiu2HAkvFNxdeJaef7m15N4bmU2eG9EivUvoeJAW1ngas94FUU3": {
"addrs": [
"/ip4/127.0.0.1/tcp/6005",
"/ip4/192.168.6.101/tcp/6005"
],
"krama_id": "3WxLCFHCy6vDDmYjY56aptfaA8FTioj1rE4LsyfX3FoBhrCDZkYF.16Uiu2HAkvFNxdeJaef7m15N4bmU2eG9EivUvoeJAW1ngas94FUU3",
"rtt": "0x2",
"wallet_count": "0x0"
},
"16Uiu2HAkvesi9B7DNnf7PRVPGysuvfhiUjum6nxxrscAmQ5iGYWv": {
"addrs": [
"/ip4/127.0.0.1/tcp/6008",
"/ip4/192.168.6.101/tcp/6008"
],
"krama_id": "3Wxe82vBYPc8RqdBkXMVrRuT8Sj2yU26jUbjCm8UMQw49D8RwoKd.16Uiu2HAkvesi9B7DNnf7PRVPGysuvfhiUjum6nxxrscAmQ5iGYWv",
"rtt": "0x0",
"wallet_count": "0x0"
}
}
}
debug.Accounts
This method is used to fetch a list of all registered account addresses.
Parameters:
This method does not require any parameters.
Returns:
| Return Type | Description |
|---|---|
| ARRAY | This contains a list of addresses of all registered accounts. |
- Request
- Response
curl --location 'http://localhost:1600/' \
--header 'Content-Type: application/json' \
--data '{
"method": "debug.Accounts",
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": [
"0xff094279db1944ebd7a19d0f7bbacbe0255aa5b7d44bec40f84c892b9bffd436",
"0x0bf5059875921e668a5bdf2c7fc4844592d2572bcd0668d2d6c52f5054e2d083",
"0xee294b39f32b7c7822ba64f84ab43ca0c6e6b91c1fd3be8990434179d3af4491",
"0x4c7215a3b539eb1e5849c6077dbb5722f5717a289a266f97647981998ebea89c",
"0x8f58dd4b11a92a5d845259a96f760f6eb6d7918c1b01fe015ad12c3170c1cc9d",
"0x5fff332f7576b0620556304a3e3eae14c28d0cea39d2901a52720da85ca1e4b3",
"0x6325253fec738dd7a9e28bf921119c160f0702448615bbda08313f6a8eb668d2",
"0x4136abf752b3b8271d03e944b3c9db366b75045f8efd69d22ae5411947cb553d",
"0x0b4b373970115e82ed6f4125c8fa7311e4d7defa922daae7786667f7e936cd4f",
"0x24abf7df866baa56038367ad6145de1ee8f4a8b0993ebdf8883a0ad8be9c3978",
"0x3bea6f5b3af6de0374366c4719e43a1b067d89bc7f01f1f573981659a44ff17a",
"0x29b0223beea5f4f74391f445d15afd4294040374f6924b98cbf8713f8d962d7c",
"0xa369012db92d184fc39d1734ff5716428953bb6865fcf92b0c3a17c9028be991",
"0x7f5818526f1814be823350eab13935f31d84484517e924aef78ae151c0075592",
"0x81855ad8681d0d86d1e91e00167939cb6694d2c422acd208a0072939487f6999",
"0x5836b7075885650c30ec29a3703934bf50a28da102975deda77e758579ea3dfe",
"0x65f606f6a63b7f3dfd2567c18979e4d60f26686d9bf2fb26c901ff354cde1607",
"0xb699b3bf459d769ec8ef1087d73d25d41f2cc033f402801b5d6733e6a7ca1212",
"0x5fb90badb37c5821b6d95526a41a9504680b4e7c8b763a1b1d49d4955c848621",
"0x8eaf3f44c6c6ef8362f2f54fc00e09d6fc25640854c15dfcacaa8a2cecce5a3a",
"0xba53ab705b18db94b4d338a5143e63408d8724b0cf3fae17a3f79be1072fb63c",
"0x52fdfc072182654f163f5f0f9a621d729566c74d10037c4d7bbb0407d1e2c649",
"0xa9cd379131b5e88432e18fafadaafa004570db34d2ed58b3ee2e3b0dd0ca725a",
"0x85e974d4942af723f9045276149c1b1ad102884ba25a2dcc3c9eba7719d4027e",
"0xb04883e56a156a8de563afa467d49dec6a40e9a1d007f033c2823061bdd0eaa5",
"0x006f28295d7d39069f01a239c4365854c3af7f6b41d631f92b9a8d12f4125732",
"0x7694267aef4ebcea406b32d6108bd68584f57e37caac6e33feaa3263a3994370",
"0x64f0c6925f3b2681ec095d2c8b196ba69996dae28f9ade8dcb6899b813bba778",
"0xa6ba9853f131679d00da0f033516a2efe9cd53c3d54e1f9a6e60e9077e9f9384",
"0x8d019192c24224e2cafccae3a61fb586b14323a6bc8f9e7df1d929333ff99393",
"0x6bf84c7174cb7476364cc3dbd968b0f7172ed85794bb358b0c3b525da1786f9f",
"0x9f8e4da6430105220d0b29688b734b8ea0f3ca9936e8461f10d77c96ea80a7a6",
"0x4eb7649c6c9347800979d1830356f2a54c3deab2a4b4475d63afbe8fb56987c7",
"0x24ba9c9b14678a274f01a910ae295f6efbfe5f5abf44ccde263b5606633e2bf0",
"0xeb9d18a44784045d87f3c67cf22746e995af5a25367951baa2ff6cd471c483f1"
],
"id": 1
}
debug.Connections
This method is used to fetch a list of active connections and connection stats.
Parameters:
This method does not require any parameters.
Returns:
| Return | Type | Description |
|---|---|---|
| conns | ARRAY | An array of active connections. |
| inbound_conn_count | INT | The number of in-bound connections. |
| outbound_conn_count | INT | The number of out-bound connections. |
| active_pub_sub_topics | MAP [ [STRING] -> INT ] | Active pub-sub topics. |
- Request
- Response
curl --location 'http://localhost:1601/' \
--header 'Content-Type: application/json' \
--data '{
"method": "debug.Connections",
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": {
"connections": [
{
"peer_id": "16Uiu2HAmAvNNaxVFqn8wCAouNfBMLTG3NN7tTB3s1tqSb6HyF1wY",
"streams": [
{
"protocol": "moi/sync/rpc/0.0.1",
"direction": 2
},
{
"protocol": "/meshsub/1.1.0",
"direction": 2
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 2
},
{
"protocol": "moi/core/stream/0.0.1",
"direction": 2
},
{
"protocol": "/meshsub/1.1.0",
"direction": 1
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 1
},
{
"protocol": "moi/sync/rpc/0.0.1",
"direction": 1
}
]
},
{
"peer_id": "16Uiu2HAm14CK2mxXfsesAeLgrpvVcTHGx9m2TEmDDMaUfBZLvqov",
"streams": [
{
"protocol": "moi/core/stream/0.0.1",
"direction": 2
},
{
"protocol": "/meshsub/1.1.0",
"direction": 1
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 1
},
{
"protocol": "moi/sync/rpc/0.0.1",
"direction": 2
},
{
"protocol": "moi/sync/rpc/0.0.1",
"direction": 1
},
{
"protocol": "/meshsub/1.1.0",
"direction": 2
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 2
}
]
},
{
"peer_id": "16Uiu2HAmE6oroUJWJ1UzThyfXMpWHDz3vtxK4rW7Q8SF54ibSzuU",
"streams": [
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 2
}
]
},
{
"peer_id": "16Uiu2HAm1cESpyEzQxdngmizotAhugAoQiWjJBffmW5QMe3vqHZs",
"streams": [
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 2
},
{
"protocol": "/meshsub/1.1.0",
"direction": 2
},
{
"protocol": "moi/sync/rpc/0.0.1",
"direction": 2
},
{
"protocol": "moi/sync/rpc/0.0.1",
"direction": 1
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 1
},
{
"protocol": "/meshsub/1.1.0",
"direction": 1
},
{
"protocol": "moi/core/stream/0.0.1",
"direction": 2
}
]
},
{
"peer_id": "16Uiu2HAmJFn4z17t1Rrk8nYxY2815pGFuAxS5SrxdS4V6TeGDGDy",
"streams": [
{
"protocol": "moi/sync/rpc/0.0.1",
"direction": 2
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 1
},
{
"protocol": "/meshsub/1.1.0",
"direction": 2
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 2
},
{
"protocol": "moi/core/stream/0.0.1",
"direction": 2
},
{
"protocol": "/meshsub/1.1.0",
"direction": 1
}
]
},
{
"peer_id": "16Uiu2HAmJFn4z17t1Rrk8nYxY2815pGFuAxS5SrxdS4V6TeGDGDy",
"streams": []
},
{
"peer_id": "16Uiu2HAm53wqLrEF8jcmJG4UkPeDNP8G6vDaZGPEpg7ync2oWx3p",
"streams": [
{
"protocol": "/meshsub/1.1.0",
"direction": 1
},
{
"protocol": "moi/sync/rpc/0.0.1",
"direction": 2
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 2
},
{
"protocol": "/meshsub/1.1.0",
"direction": 2
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 1
},
{
"protocol": "moi/core/stream/0.0.1",
"direction": 2
}
]
},
{
"peer_id": "16Uiu2HAmQqnJTpS7nwn64Wu1kqyUWaPtw7gw44FCcV89hraP7Lns",
"streams": [
{
"protocol": "/meshsub/1.1.0",
"direction": 2
},
{
"protocol": "/meshsub/1.1.0",
"direction": 1
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 2
},
{
"protocol": "moi/sync/rpc/0.0.1",
"direction": 2
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 1
},
{
"protocol": "moi/core/stream/0.0.1",
"direction": 2
}
]
},
{
"peer_id": "16Uiu2HAmMhinhrKcaV9E25JMYiiyDSpXh3MSBLJiiZ6hEvZnR3GC",
"streams": [
{
"protocol": "/meshsub/1.1.0",
"direction": 2
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 1
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 2
},
{
"protocol": "moi/core/stream/0.0.1",
"direction": 1
},
{
"protocol": "/meshsub/1.1.0",
"direction": 1
}
]
},
{
"peer_id": "16Uiu2HAm5aKGy1PXv18eYRRW8mt2gN6uMjSx3k1UmiyV89diy6Ei",
"streams": [
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 2
},
{
"protocol": "/meshsub/1.1.0",
"direction": 2
},
{
"protocol": "moi/core/stream/0.0.1",
"direction": 2
},
{
"protocol": "moi/sync/rpc/0.0.1",
"direction": 1
},
{
"protocol": "/meshsub/1.1.0",
"direction": 1
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 1
},
{
"protocol": "moi/sync/rpc/0.0.1",
"direction": 2
}
]
},
{
"peer_id": "16Uiu2HAmBgdSAYEDJj1PqeWQBYqs1bBZ9ZEBDke2GiKQhYdUmbsK",
"streams": [
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 2
},
{
"protocol": "/meshsub/1.1.0",
"direction": 1
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 1
},
{
"protocol": "moi/core/stream/0.0.1",
"direction": 2
},
{
"protocol": "moi/sync/rpc/0.0.1",
"direction": 2
},
{
"protocol": "moi/sync/rpc/0.0.1",
"direction": 1
},
{
"protocol": "/meshsub/1.1.0",
"direction": 2
}
]
},
{
"peer_id": "16Uiu2HAmVbXVay7Y3BAG7ssTJFUWUxHLy7zN5qi7J18WNXoeK9rF",
"streams": [
{
"protocol": "moi/sync/rpc/0.0.1",
"direction": 1
},
{
"protocol": "moi/sync/rpc/0.0.1",
"direction": 2
},
{
"protocol": "/meshsub/1.1.0",
"direction": 2
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 2
},
{
"protocol": "/meshsub/1.1.0",
"direction": 1
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 1
},
{
"protocol": "moi/core/stream/0.0.1",
"direction": 2
}
]
},
{
"peer_id": "16Uiu2HAm5b2WSL5wUmQdTiDSpeBHi5NqT3NitnBK4ACCbdPAiVTS",
"streams": [
{
"protocol": "moi/sync/rpc/0.0.1",
"direction": 1
},
{
"protocol": "/meshsub/1.1.0",
"direction": 1
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 2
},
{
"protocol": "moi/core/stream/0.0.1",
"direction": 2
},
{
"protocol": "moi/sync/rpc/0.0.1",
"direction": 2
},
{
"protocol": "/meshsub/1.1.0",
"direction": 2
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 1
}
]
},
{
"peer_id": "16Uiu2HAm2LT1w1zZiusADiqhf7LRSYgnR7HhiVTfUbmaVkf4FNRP",
"streams": [
{
"protocol": "/meshsub/1.1.0",
"direction": 1
},
{
"protocol": "moi/sync/rpc/0.0.1",
"direction": 2
},
{
"protocol": "/meshsub/1.1.0",
"direction": 2
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 1
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 2
},
{
"protocol": "moi/core/stream/0.0.1",
"direction": 2
}
]
},
{
"peer_id": "16Uiu2HAm5WGch46j4BDp85sUYwXxEcqzw11zNh9unSScPxcTqiVx",
"streams": [
{
"protocol": "moi/sync/rpc/0.0.1",
"direction": 1
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 2
},
{
"protocol": "moi/core/stream/0.0.1",
"direction": 2
},
{
"protocol": "/meshsub/1.1.0",
"direction": 1
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 1
},
{
"protocol": "moi/sync/rpc/0.0.1",
"direction": 2
},
{
"protocol": "/meshsub/1.1.0",
"direction": 2
}
]
},
{
"peer_id": "16Uiu2HAmLVfAaN2Qk5CBUjwUeCzTr8dMdEVWZjwPfHQQ7ZpzCuBQ",
"streams": [
{
"protocol": "moi/sync/rpc/0.0.1",
"direction": 2
},
{
"protocol": "/meshsub/1.1.0",
"direction": 1
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 2
},
{
"protocol": "moi/core/stream/0.0.1",
"direction": 2
},
{
"protocol": "moi/sync/rpc/0.0.1",
"direction": 1
},
{
"protocol": "/meshsub/1.1.0",
"direction": 2
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 1
}
]
},
{
"peer_id": "16Uiu2HAmLVfAaN2Qk5CBUjwUeCzTr8dMdEVWZjwPfHQQ7ZpzCuBQ",
"streams": []
},
{
"peer_id": "16Uiu2HAmU9881JfDXs5N3jDR4P4EJ1U4agNX134Gx8Q3CngMxw87",
"streams": [
{
"protocol": "moi/core/stream/0.0.1",
"direction": 1
},
{
"protocol": "/meshsub/1.1.0",
"direction": 2
},
{
"protocol": "moi/sync/rpc/0.0.1",
"direction": 1
},
{
"protocol": "/meshsub/1.1.0",
"direction": 1
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 2
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 1
}
]
},
{
"peer_id": "16Uiu2HAmCYgtyqsTSmSn73w1NQ2mHcT2P21asgSn3hQZCCQgxVRj",
"streams": [
{
"protocol": "moi/core/stream/0.0.1",
"direction": 1
},
{
"protocol": "/meshsub/1.1.0",
"direction": 1
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 2
},
{
"protocol": "/meshsub/1.1.0",
"direction": 2
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 1
}
]
},
{
"peer_id": "16Uiu2HAmVTRmDmkFYCbRvnoZ24Mk2rpGvRrGwx4kcfbe3W49ma2s",
"streams": [
{
"protocol": "moi/sync/rpc/0.0.1",
"direction": 1
},
{
"protocol": "/meshsub/1.1.0",
"direction": 2
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 1
},
{
"protocol": "/meshsub/1.1.0",
"direction": 1
},
{
"protocol": "moi/core/stream/0.0.1",
"direction": 1
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 2
}
]
},
{
"peer_id": "16Uiu2HAmCnNSqKrjhjptXnGodesUQugtku2waQrYoTbRt9bWHPng",
"streams": [
{
"protocol": "moi/core/stream/0.0.1",
"direction": 2
},
{
"protocol": "moi/sync/rpc/0.0.1",
"direction": 2
},
{
"protocol": "/meshsub/1.1.0",
"direction": 1
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 2
},
{
"protocol": "/meshsub/1.1.0",
"direction": 2
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 1
}
]
},
{
"peer_id": "16Uiu2HAkx3J4EZsALj6nVEebfCFBPCVd9Ph7N4BkkZEzaZbRAHPU",
"streams": [
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 2
},
{
"protocol": "moi/core/stream/0.0.1",
"direction": 2
},
{
"protocol": "moi/sync/rpc/0.0.1",
"direction": 2
},
{
"protocol": "moi/sync/rpc/0.0.1",
"direction": 1
},
{
"protocol": "/meshsub/1.1.0",
"direction": 1
},
{
"protocol": "/meshsub/1.1.0",
"direction": 2
},
{
"protocol": "moi/core/stream/0.0.1/kad/1.0.0",
"direction": 1
}
]
}
],
"inbound_conn_count": 4,
"outbound_conn_count": 15,
"active_pub_sub_topics": {
"5L314dtk8PvkJmZjGsa3iXdN7XvWbGqyGUcKg2S4n4rk": 2,
"MOI_PUBSUB_SENATUS": 19,
"MOI_PUBSUB_TESSERACT": 19,
"jufdi0oUqNdAjBEJQdi0QNlpKEdxe19zZshvv1tRL390MpjfXeAwC4TgabQOAAhM": 0
}
},
"id": 1
}
debug.Diagnosis
This method initiates a diagnosis process with the provided parameters, collects various diagnostic information for the moipod.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| output_path | STRING | The path where diagnostic information will be stored. |
| collectors | STRING | An array of specific diagnostic data collectors to include in the diagnosis. Options include: goroutines-stack, goroutines-pprof, version, heap, allocs, cpu, mutex, block. |
| profile_time | STRING | The duration for which profiling data should be collected (e.g., "2m" for 2 minutes). |
| mutex_profile_fraction | NUMBER | Fractional sampling rate for mutex profiling. |
| block_profile_rate | STRING | The rate at which block (contention) profiling data should be collected (e.g., "5s" for every 5 seconds). |
Returns:
| Return Type | Description |
|---|---|
| OBJECT | An empty object. |
- Request
- Response
curl --location --request POST 'http://localhost:1600/' \
--header 'Content-Type: application/json' \
--data-raw '{
"method": "debug.Diagnosis",
"params": [
{
"output_path": "/path/go-moi",
"collectors": [],
"profile_time": "2m",
"mutex_profile_fraction": 4,
"block_profile_rate": "5s"
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": null
}
debug.SyncJob
This method returns the sync job meta info for a given id.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| id | HEX (32 Bytes) | The id of the account for which the sync job meta info has to be retrieved. |
Returns:
| Return Type | Description |
|---|---|
| OBJECT | The object contains the sync job meta info for given id |
- Request
- Response
curl --location 'http://localhost:1600/' \
--header 'Content-Type: application/json' \
--data '{
"method": "debug.SyncJob",
"params": [
{
"id": "0x52fdfc072182654f163f5f0f9a621d729566c74d10037c4d7bbb0407d1e2c649"
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": {
"sync_mode": "LatestSync",
"snap_downloaded": false,
"expected_height": 2,
"current_height": 1,
"job_state": "SLEEP",
"last_modified_at": "2023-12-01T14:38:29.042796+05:30",
"tesseract_queue": 1,
"best_peers": [
"3Wxumm8bTij86MomK4CjQKyegGnCGpDkUzDv2ka92iSxKhi6yMLs.16Uiu2HAkvQMfvpt3vmKy4hoJ6iGPGAc63nW9qt7BfUNNpWssQ33s",
"3WwZNXop17byLqePHzjzmXE76qFSAbQms89i368JGFpRPHrYehgs.16Uiu2HAkvuffR9c2QkiC1JdZZggbzFZSPaWMXfZ6V9WqRVXiVHPz",
"3WzAkVmPP2Zwytuk8MH3WRJiTD2cy6ZRRW2GAGpDMwgCEhzrwzBR.16Uiu2HAm4tKY3sy6GCh715eDL2tQnBy5t61h53ndHCPPoxUqz9nL",
"3WxtkeymmDqX6478vC4cG2gsZicat7oH9DvT72BFJWHxQpAXUmXD.16Uiu2HAmEx1JYw9mUHSMH5f4wdHSE5DehRJd2mWEa54qxBtBXDvA",
"3WvxtBZFQtvpvycenNbBARC7Su7WTnNE9QXeeYJvJctpGu6jEKrP.16Uiu2HAmJGg3zPBAR3TAx7pQ81MxK4g2uqJmQt3GfhAdamWWTH2x",
"3WvsrXnXkN3DKWrtW4VH3zitPUrxDebKyfoR4LBVAFBNEyV3bzCF.16Uiu2HAm2LGCRYPgNLEkUnNza1ZjAjM7yKnVvfCY8HtyrVraagvA",
"3WvdAMoLkDZxTpp7RSfvdnLw8tjQf7T2jj36RRRMAh9sPADftUmd.16Uiu2HAm7SvyDAbYfzNBqaPRp4LZDtwNp7eVSj5XRSFcfhZX1f4q",
"3WwCiWUEfJ2vkBxRrSzbStP7wA2JSsjqr3TsQW86UkhBS3Vemt63.16Uiu2HAmRT1goV3U4rCnxxhvwrEwpqNtPW4gWKZGrG1BKqrxSxTg"
],
"lattice_sync_in_progress": false
},
"id": 1
}