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 integers 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 integers 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
The Interaction methods allow you to submit various Interactions
to the network. A call to these below RPC endpoints returns an Interaction Hash which can be used to query for the receipt of
the interaction using the moi.InteractionReceipt
API. Each Interaction type have
different payload structure held within the extra_data
field of the Interaction Receipt.
The supported interaction types are:
Interaction Type | Type of Interaction | Payload | Receipt |
---|---|---|---|
1 | AssetTransfer | transfer_values field of Interaction | n/a |
3 | AssetCreate | AssetCreatePayload | AssetCreateReceipt |
6 | AssetMint | AssetMintPayload | AssetMintReceipt |
7 | AssetBurn | AsseBurnPayload | AssetBurnReceipt |
8 | LogicDeploy | LogicDeployPayload | LogicDeployReceipt |
9 | LogicInvoke | LogicInvokePayload | LogicInvokeReceipt |
IxAssetTransfer
This type of interaction is used to transfer assets between sender and receiver addresses. It returns an interaction hash, which can be used to retrieve the interaction receipt.
Parameters:
Parameter | Type | Description |
---|---|---|
type | NUMBER | Type of interaction (1 for AssetTransfer) |
sender | HEX (32 Bytes) | Sender's address |
receiver | HEX (32 Bytes) | Receiver's address |
transfer_values | MAP [ AssetID -> HEX ] | ID of the asset and the hex value of the amount intended for transfer |
fuel_price | HEX | Fuel price for the interaction |
fuel_limit | HEX | Fuel limit for the interaction |
Returns:
Type | Description |
---|---|
HEX (32 Bytes) | Interaction hash of the ValueTransfer |
- Payload
- Ix Object
- Receipt
IxAssetTransfer does not require payload. Instead, it conveys transfer values directly
within the "transfer_values" field of the interaction object.
{
"params": [
{
"type": 1,
"sender": "0x9c6cc5cccfe2a3dc447bce25f88cb28ce142459057e6c04b59911b6d3f10930a",
"receiver": "0x6ef7715969a7a99edf06957e94494e40203b4be2b0ffb325196677a82de6fcb6",
"transfer_values": {
"0x00000000778549058becea5d34d6554ace488a9f63707c38f39e3d24b42f43453f3d83b9": "0x2fAf080"
},
"fuel_price": "0x130D41",
"fuel_limit": "0x130D41"
}
]
}
IxAssetTransfer does not return any payload in the extra_data field.
The generation of a receipt indicates a successful transfer of assets.
IxAssetCreate
This type of interaction is used to create a new asset on the Tesseract Lattice. It returns the interaction hash which can be used to retrieve the receipt.
Parameters:
Parameters | Type | Description |
---|---|---|
type | NUMBER | Type of interaction (3 for AssetCreate) |
sender | HEX (32 Bytes) | Sender address |
fuel_price | HEX | Fuel price of the asset |
fuel_limit | HEX | Fuel limit of the asset |
payload | AssetCreatePayload | Contains the information about the asset to be created |
AssetCreatePayload
Parameters | Type | Description |
---|---|---|
symbol | STRING | Symbol of the asset |
supply | HEX | Supply of the asset |
dimension | HEX | Multidimensional value of the asset |
standard | HEX | Standard of the asset |
AssetCreateReceipt
Parameters | Type | Description |
---|---|---|
asset_id | AssetID | Asset ID of created asset |
address | HEX | Account address of asset |
Returns:
Type | Description |
---|---|
HEX (32 Bytes) | Interaction hash of the AssetCreate |
- Payload
- Ix Object
- Receipt
{
"payload": {
"symbol": "RMOI",
"dimension": "0x0",
"standard": "0x0",
"supply": "0x5F5E100"
}
}
{
"params": [
{
"type": 3,
"fuel_price": "0x130D41",
"fuel_limit": "0x130D41",
"sender": "0x9c6cc5cccfe2a3dc447bce25f88cb28ce142459057e6c04b59911b6d3f10930a",
"payload": {
"symbol": "RMOI",
"dimension": "0x0",
"standard": "0x0",
"supply": "0x5F5E100"
}
}
]
}
{
"asset_id": "0x00000000778549058becea5d34d6554ace488a9f63707c38f39e3d24b42f43453f3d83b9",
"address": "0x778549058becea5d34d6554ace488a9f63707c38f39e3d24b42f43453f3d83b9"
}
IxAssetMint
This type of interaction is used to mint additional supply from the already existing total supply of an asset. It returns the interaction hash which can be used to retrieve the receipt.
Parameters | Type | Description |
---|---|---|
type | NUMBER | Type of interaction (6 for AssetMint) |
fuel_price | HEX | Fuel price for the interaction |
fuel_limit | HEX | Fuel limit for the interaction |
sender | HEX (32 Bytes) | Sender address |
payload | AssetMintPayload | Contains the information about the asset to be minted |
AssetMintPayload
Parameters | Type | Description |
---|---|---|
asset_id | AssetID | ID of the asset to be minted |
amount | HEX | supply of the asset to be minted |
AssetMintReceipt
Parameters | Type | Description |
---|---|---|
total_supply | HEX | supply of the asset after minting |
Returns:
Type | Description |
---|---|
HEX (32 Bytes) | Interaction hash of the AssetMint |
- Payload
- Ix Object
- Receipt
{
"payload": {
"asset_id": "0x00000000778549058becea5d34d6554ace488a9f63707c38f39e3d24b42f43453f3d83b9",
"amount": "0x4c4b40"
}
}
{
"params": [
{
"type": 6,
"fuel_price": "0x1",
"fuel_limit": "0xc8",
"sender": "0x9c6cc5cccfe2a3dc447bce25f88cb28ce142459057e6c04b59911b6d3f10930a",
"payload": {
"asset_id": "0x00000000778549058becea5d34d6554ace488a9f63707c38f39e3d24b42f43453f3d83b9",
"amount": "0x4c4b40"
}
}
]
}
{
"total_supply": "0x6422c40"
}
IxAssetBurn
This type of interaction is used to burn a certain amount of supply of an asset on the network. It returns the interaction hash which can be used to retrieve the receipt.
Parameters | Type | Description |
---|---|---|
type | NUMBER | Type of interaction (7 for AssetBurn) |
fuel_price | HEX | Fuel price for the interaction |
fuel_limit | HEX | Fuel limit for the interaction |
sender | HEX (32 Bytes) | Sender address |
payload | AssetBurnPayload | Contains the information about the asset to be burned |
AssetBurnPayload
Parameters | Type | Description |
---|---|---|
asset_id | AssetID | ID of the asset to be burned |
amount | HEX | supply of the asset to be burned |
AssetBurnReceipt
Parameters | Type | Description |
---|---|---|
total_supply | HEX | supply of the asset after burning |
Returns:
Type | Description |
---|---|
HEX (32 Bytes) | Interaction hash of the AssetBurn |
- Payload
- Ix Object
- Receipt
{
"payload": {
"asset_id": "0x00000000778549058becea5d34d6554ace488a9f63707c38f39e3d24b42f43453f3d83b9",
"amount": "0x4c4b40"
}
}
{
"params": [
{
"type": 7,
"fuel_price": "0x1",
"fuel_limit": "0xc8",
"sender": "0x9c6cc5cccfe2a3dc447bce25f88cb28ce142459057e6c04b59911b6d3f10930a",
"payload": {
"asset_id": "0x00000000778549058becea5d34d6554ace488a9f63707c38f39e3d24b42f43453f3d83b9",
"amount": "0x4c4b40"
}
}
]
}
{
"total_supply": "0x5f5e100"
}
IxLogicDeploy
The type of interaction allows users to deploy a new logic on the network. It returns the interaction hash which can be used to retrieve the receipt.
Parameters:
Parameter | Type | Description |
---|---|---|
type | NUMBER | Type of interaction (8 for LogicDeploy) |
sender | HEX (32 Bytes) | Sender address |
fuel_price | HEX | Fuel price for the deployment |
fuel_limit | HEX | Fuel limit for the deployment |
payload | LogicDeployPayload | Contains the information |
LogicDeployPayload
Parameters | Type | Description |
---|---|---|
manifest | HEX | serialized manifest |
callsite | STRING | routine to be executed |
calldata | HEX | serialized input for logic deploy |
LogicDeployReceipt
Parameters | Type | Description |
---|---|---|
logic_id | LogicID | Logic ID of deployed Logic |
error | HEX | serialised error data if deployer execution fails |
Returns:
Type | Description |
---|---|
HEX (32 Bytes) | Interaction hash of the LogicDeploy |
- Payload
- Ix Object
- Receipt
{
"payload": {
"manifest": "0x7b2273796e746178223a22302e312e30222c22656e67696e65223a7b226b696e64223a2250495341222c22666c616773223a5b5d7d2c22656c656d656e7473223a5b7b22707472223a302c2264657073223a6e756c6c2c226b696e64223a227374617465222c2264617461223a7b226b696e64223a2270657273697374656e74222c226669656c6473223a5b7b22736c6f74223a302c226c6162656c223a226e616d65222c2274797065223a22737472696e67227d2c7b22736c6f74223a312c226c6162656c223a2273796d626f6c222c2274797065223a22737472696e67227d2c7b22736c6f74223a322c226c6162656c223a22737570706c79222c2274797065223a22753634227d2c7b22736c6f74223a332c226c6162656c223a2262616c616e636573222c2274797065223a226d61705b616464726573735d753634227d2c7b22736c6f74223a342c226c6162656c223a22616c6c6f77616e636573222c2274797065223a226d61705b616464726573735d6d61705b616464726573735d753634227d5d7d7d2c7b22707472223a312c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a2253656564657221222c226b696e64223a226465706c6f796572222c2261636365707473223a5b7b22736c6f74223a302c226c6162656c223a226e616d65222c2274797065223a22737472696e67227d2c7b22736c6f74223a312c226c6162656c223a2273796d626f6c222c2274797065223a22737472696e67227d2c7b22736c6f74223a322c226c6162656c223a22737570706c79222c2274797065223a22753634227d2c7b22736c6f74223a332c226c6162656c223a22736565646572222c2274797065223a2261646472657373227d5d2c2272657475726e73223a6e756c6c2c226578656375746573223a7b2262696e223a5b342c302c302c3132392c302c302c342c302c312c3132392c302c312c342c302c322c3132392c302c322c3132382c312c332c342c322c332c38342c312c322c302c3132392c312c335d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a322c2264657073223a6e756c6c2c226b696e64223a22636f6e7374616e74222c2264617461223a7b2274797065223a22753634222c2276616c7565223a22307830333061227d7d2c7b22707472223a332c2264657073223a6e756c6c2c226b696e64223a2274797065646566222c2264617461223a226d61705b616464726573735d753634227d2c7b22707472223a342c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a224e616d65222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a6e756c6c2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a226e616d65222c2274797065223a22737472696e67227d5d2c226578656375746573223a7b2262696e223a5b3132382c302c302c352c302c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a352c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a2253796d626f6c222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a6e756c6c2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a2273796d626f6c222c2274797065223a22737472696e67227d5d2c226578656375746573223a7b2262696e223a5b3132382c302c312c352c302c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a362c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a22446563696d616c73222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a6e756c6c2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a22646563696d616c73222c2274797065223a22753634227d5d2c226578656375746573223a7b2262696e223a5b31372c302c322c31362c302c302c352c302c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a372c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a22546f74616c537570706c79222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a6e756c6c2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a22737570706c79222c2274797065223a22753634227d5d2c226578656375746573223a7b2262696e223a5b3132382c302c322c352c302c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a382c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a2242616c616e63654f66222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a5b7b22736c6f74223a302c226c6162656c223a2261646472222c2274797065223a2261646472657373227d5d2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a2262616c616e6365222c2274797065223a22753634227d5d2c226578656375746573223a7b2262696e223a5b3132382c302c332c342c312c302c38332c322c302c312c352c322c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a392c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a22416c6c6f77616e6365222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a5b7b22736c6f74223a302c226c6162656c223a226f776e6572222c2274797065223a2261646472657373227d2c7b22736c6f74223a312c226c6162656c223a227370656e646572222c2274797065223a2261646472657373227d5d2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a22616c6c6f77616e6365222c2274797065223a22753634227d5d2c226578656375746573223a7b2262696e223a5b3132382c302c342c342c312c302c38332c322c302c312c342c332c312c38332c342c322c332c352c342c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a31302c2264657073223a5b302c335d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a22417070726f766521222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a5b7b22736c6f74223a302c226c6162656c223a226f776e6572222c2274797065223a2261646472657373227d2c7b22736c6f74223a312c226c6162656c223a227370656e646572222c2274797065223a2261646472657373227d2c7b22736c6f74223a322c226c6162656c223a22616d6f756e74222c2274797065223a22753634227d5d2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a226f6b222c2274797065223a22626f6f6c227d5d2c226578656375746573223a7b2262696e223a5b3132382c302c342c342c312c302c38332c322c302c312c33322c332c322c39382c332c332c31372c342c31302c332c342c332c31372c342c302c34302c342c342c33362c322c342c312c342c332c312c342c342c322c38342c322c332c342c38342c302c312c322c3132392c302c342c34312c302c312c39382c302c302c352c302c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a31312c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a225472616e7366657221222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a5b7b22736c6f74223a302c226c6162656c223a2266726f6d222c2274797065223a2261646472657373227d2c7b22736c6f74223a312c226c6162656c223a22746f222c2274797065223a2261646472657373227d2c7b22736c6f74223a322c226c6162656c223a22616d6f756e74222c2274797065223a22753634227d5d2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a226f6b222c2274797065223a22626f6f6c227d5d2c226578656375746573223a7b2262696e223a5b3132382c302c332c342c312c302c38332c322c302c312c342c332c322c36382c342c332c322c31372c352c31302c332c352c342c34312c302c312c352c302c302c302c312c3130322c342c322c332c38342c302c312c342c342c352c312c38332c342c302c352c3130312c362c342c332c38342c302c352c362c3132392c302c332c34312c302c312c39382c302c302c352c302c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a31322c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a224d696e7421222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a5b7b22736c6f74223a302c226c6162656c223a22616d6f756e74222c2274797065223a22753634227d2c7b22736c6f74223a312c226c6162656c223a2261646472222c2274797065223a2261646472657373227d5d2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a226f6b222c2274797065223a22626f6f6c227d5d2c226578656375746573223a7b2262696e223a5b3132382c302c322c342c312c302c3130312c302c302c312c3132392c302c322c3132382c302c332c342c322c312c38332c332c302c322c3130312c332c332c312c38342c302c322c332c3132392c302c332c34312c302c312c39382c302c302c352c302c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a31332c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a224275726e21222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a5b7b22736c6f74223a302c226c6162656c223a22616d6f756e74222c2274797065223a22753634227d2c7b22736c6f74223a312c226c6162656c223a2261646472222c2274797065223a2261646472657373227d5d2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a226f6b222c2274797065223a22626f6f6c227d5d2c226578656375746573223a7b2262696e223a5b3132382c302c332c342c312c312c38332c322c302c312c342c332c302c36382c342c332c322c31372c352c31302c332c352c342c34312c302c312c352c302c302c302c312c3130322c342c322c332c38342c302c312c342c3132392c302c332c3132382c302c322c3130322c302c302c332c3132392c302c322c34312c302c312c39382c302c302c352c302c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d5d7d",
"callsite": "Seeder!",
"calldata": "0x0def0106458601e501f605d506a60785086e616d65064d4f497365656465720652fdfc072182654f163f5f0f9a621d729566c74d10037c4d7bbb0407d1e2c649737570706c790301312d0073796d626f6c064d4f49"
}
}
{
"params": [
{
"type": 8,
"fuel_price": "0x130D41",
"fuel_limit": "0x130D41",
"sender": "0x9c6cc5cccfe2a3dc447bce25f88cb28ce142459057e6c04b59911b6d3f10930a",
"payload": {
"manifest": "0x7b2273796e746178223a22302e312e30222c22656e67696e65223a7b226b696e64223a2250495341222c22666c616773223a5b5d7d2c22656c656d656e7473223a5b7b22707472223a302c2264657073223a6e756c6c2c226b696e64223a227374617465222c2264617461223a7b226b696e64223a2270657273697374656e74222c226669656c6473223a5b7b22736c6f74223a302c226c6162656c223a226e616d65222c2274797065223a22737472696e67227d2c7b22736c6f74223a312c226c6162656c223a2273796d626f6c222c2274797065223a22737472696e67227d2c7b22736c6f74223a322c226c6162656c223a22737570706c79222c2274797065223a22753634227d2c7b22736c6f74223a332c226c6162656c223a2262616c616e636573222c2274797065223a226d61705b616464726573735d753634227d2c7b22736c6f74223a342c226c6162656c223a22616c6c6f77616e636573222c2274797065223a226d61705b616464726573735d6d61705b616464726573735d753634227d5d7d7d2c7b22707472223a312c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a2253656564657221222c226b696e64223a226465706c6f796572222c2261636365707473223a5b7b22736c6f74223a302c226c6162656c223a226e616d65222c2274797065223a22737472696e67227d2c7b22736c6f74223a312c226c6162656c223a2273796d626f6c222c2274797065223a22737472696e67227d2c7b22736c6f74223a322c226c6162656c223a22737570706c79222c2274797065223a22753634227d2c7b22736c6f74223a332c226c6162656c223a22736565646572222c2274797065223a2261646472657373227d5d2c2272657475726e73223a6e756c6c2c226578656375746573223a7b2262696e223a5b342c302c302c3132392c302c302c342c302c312c3132392c302c312c342c302c322c3132392c302c322c3132382c312c332c342c322c332c38342c312c322c302c3132392c312c335d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a322c2264657073223a6e756c6c2c226b696e64223a22636f6e7374616e74222c2264617461223a7b2274797065223a22753634222c2276616c7565223a22307830333061227d7d2c7b22707472223a332c2264657073223a6e756c6c2c226b696e64223a2274797065646566222c2264617461223a226d61705b616464726573735d753634227d2c7b22707472223a342c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a224e616d65222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a6e756c6c2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a226e616d65222c2274797065223a22737472696e67227d5d2c226578656375746573223a7b2262696e223a5b3132382c302c302c352c302c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a352c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a2253796d626f6c222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a6e756c6c2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a2273796d626f6c222c2274797065223a22737472696e67227d5d2c226578656375746573223a7b2262696e223a5b3132382c302c312c352c302c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a362c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a22446563696d616c73222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a6e756c6c2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a22646563696d616c73222c2274797065223a22753634227d5d2c226578656375746573223a7b2262696e223a5b31372c302c322c31362c302c302c352c302c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a372c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a22546f74616c537570706c79222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a6e756c6c2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a22737570706c79222c2274797065223a22753634227d5d2c226578656375746573223a7b2262696e223a5b3132382c302c322c352c302c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a382c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a2242616c616e63654f66222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a5b7b22736c6f74223a302c226c6162656c223a2261646472222c2274797065223a2261646472657373227d5d2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a2262616c616e6365222c2274797065223a22753634227d5d2c226578656375746573223a7b2262696e223a5b3132382c302c332c342c312c302c38332c322c302c312c352c322c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a392c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a22416c6c6f77616e6365222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a5b7b22736c6f74223a302c226c6162656c223a226f776e6572222c2274797065223a2261646472657373227d2c7b22736c6f74223a312c226c6162656c223a227370656e646572222c2274797065223a2261646472657373227d5d2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a22616c6c6f77616e6365222c2274797065223a22753634227d5d2c226578656375746573223a7b2262696e223a5b3132382c302c342c342c312c302c38332c322c302c312c342c332c312c38332c342c322c332c352c342c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a31302c2264657073223a5b302c335d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a22417070726f766521222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a5b7b22736c6f74223a302c226c6162656c223a226f776e6572222c2274797065223a2261646472657373227d2c7b22736c6f74223a312c226c6162656c223a227370656e646572222c2274797065223a2261646472657373227d2c7b22736c6f74223a322c226c6162656c223a22616d6f756e74222c2274797065223a22753634227d5d2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a226f6b222c2274797065223a22626f6f6c227d5d2c226578656375746573223a7b2262696e223a5b3132382c302c342c342c312c302c38332c322c302c312c33322c332c322c39382c332c332c31372c342c31302c332c342c332c31372c342c302c34302c342c342c33362c322c342c312c342c332c312c342c342c322c38342c322c332c342c38342c302c312c322c3132392c302c342c34312c302c312c39382c302c302c352c302c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a31312c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a225472616e7366657221222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a5b7b22736c6f74223a302c226c6162656c223a2266726f6d222c2274797065223a2261646472657373227d2c7b22736c6f74223a312c226c6162656c223a22746f222c2274797065223a2261646472657373227d2c7b22736c6f74223a322c226c6162656c223a22616d6f756e74222c2274797065223a22753634227d5d2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a226f6b222c2274797065223a22626f6f6c227d5d2c226578656375746573223a7b2262696e223a5b3132382c302c332c342c312c302c38332c322c302c312c342c332c322c36382c342c332c322c31372c352c31302c332c352c342c34312c302c312c352c302c302c302c312c3130322c342c322c332c38342c302c312c342c342c352c312c38332c342c302c352c3130312c362c342c332c38342c302c352c362c3132392c302c332c34312c302c312c39382c302c302c352c302c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a31322c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a224d696e7421222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a5b7b22736c6f74223a302c226c6162656c223a22616d6f756e74222c2274797065223a22753634227d2c7b22736c6f74223a312c226c6162656c223a2261646472222c2274797065223a2261646472657373227d5d2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a226f6b222c2274797065223a22626f6f6c227d5d2c226578656375746573223a7b2262696e223a5b3132382c302c322c342c312c302c3130312c302c302c312c3132392c302c322c3132382c302c332c342c322c312c38332c332c302c322c3130312c332c332c312c38342c302c322c332c3132392c302c332c34312c302c312c39382c302c302c352c302c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d2c7b22707472223a31332c2264657073223a5b305d2c226b696e64223a22726f7574696e65222c2264617461223a7b226e616d65223a224275726e21222c226b696e64223a22696e766f6b61626c65222c2261636365707473223a5b7b22736c6f74223a302c226c6162656c223a22616d6f756e74222c2274797065223a22753634227d2c7b22736c6f74223a312c226c6162656c223a2261646472222c2274797065223a2261646472657373227d5d2c2272657475726e73223a5b7b22736c6f74223a302c226c6162656c223a226f6b222c2274797065223a22626f6f6c227d5d2c226578656375746573223a7b2262696e223a5b3132382c302c332c342c312c312c38332c322c302c312c342c332c302c36382c342c332c322c31372c352c31302c332c352c342c34312c302c312c352c302c302c302c312c3130322c342c322c332c38342c302c312c342c3132392c302c332c3132382c302c322c3130322c302c302c332c3132392c302c322c34312c302c312c39382c302c302c352c302c305d2c22686578223a22222c2261736d223a6e756c6c7d2c2263617463686573223a6e756c6c7d7d5d7d",
"callsite": "Seeder!",
"calldata": "0x0def0106458601e501f605d506a60785086e616d65064d4f497365656465720652fdfc072182654f163f5f0f9a621d729566c74d10037c4d7bbb0407d1e2c649737570706c790301312d0073796d626f6c064d4f49"
}
}
]
}
{
"logic_id": "0x080000d83e06477de424fc9c8addedbc294a176e301554c5ba76dbacbb97defe4a371c",
"error": "0x"
}
IxLogicInvoke
The type of interaction is responsible for invoking a specific routine within a deployed logic. This returns the interaction hash, which can be used to retrieve the receipt.
Parameters:
Parameter | Type | Description |
---|---|---|
type | NUMBER | Type of interaction (9 for LogicInvoke) |
sender | HEX (32 Bytes) | Sender address |
fuel_price | HEX | Fuel price |
fuel_limit | HEX | Fuel limit |
payload | LogicInvokePayload | Contains the information about the specific routine to be invoked |
LogicInvokePayload
Parameters | Type | Description |
---|---|---|
logic_id | LogicID | The unique identifier of the logic for that needs to be invoked. |
callsite | STRING | routine to be executed |
calldata | HEX | serialised input for logic execution |
LogicInvokeReceipt
Parameters | Type | Description |
---|---|---|
outputs | HEX | serialised output of logic execution |
error | HEX | serialised error data if logic execution failed |
Returns:
Type | Description |
---|---|
HEX (32 Bytes) | Interaction hash of the LogicInvoke |
- Payload
- Ix Object
- Receipt
{
"payload": {
"logic_id": "0x0800008d898ef91ebd8a208855d6d1c98939202cfcb6a067530845993fe6975de1eb84",
"callsite": "BalanceOf",
"calldata": "0x0d2f0645616464720652fdfc072182654f163f5f0f9a621d729566c74d10037c4d7bbb0407d1e2c649"
}
}
{
"params": [
{
"type": 9,
"fuel_price": "0x130D41",
"fuel_limit": "0x130D41",
"sender": "0x9c6cc5cccfe2a3dc447bce25f88cb28ce142459057e6c04b59911b6d3f10930a",
"payload": {
"logic_id": "0x0800008d898ef91ebd8a208855d6d1c98939202cfcb6a067530845993fe6975de1eb84",
"callsite": "BalanceOf",
"calldata": "0x0d2f0645616464720652fdfc072182654f163f5f0f9a621d729566c74d10037c4d7bbb0407d1e2c649"
}
}
]
}
{
"outputs": "0x",
"error": "0x0e5f0696028e136275696c74696e2e496e69744572726f72696e76616c696420696e707574733a206d616c666f726d6564206461746120666f72202761646472273a206461746120646f6573206e6f74206465636f646520746f20616e20616464726573733a20696e636f6d70617469626c6520776972653a206d69736d6174636865642064617461206c656e67746820666f7220627974652061727261791f06726f6f742e73746172742829"
}
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 |
---|---|---|
type | NUMBER | Type of interaction |
sender | HEX (32 Bytes) | Sender address. |
receiver | HEX (32 Bytes) | Receiver address. |
transfer_values | MAP [ AssetID -> HEX ] | ID of the asset and the hex value of the amount intended for transfer. |
fuel_price | HEX | Fuel price for the interaction (optional). |
fuel_limit | HEX | Fuel limit for the interaction (optional). |
payload | HEX | Depending on interaction type (refer here). |
options | MAP [ [Address ] -> TesseractOptions ] | Options for querying the tesseract. |
Returns:
Return | Type | Description |
---|---|---|
ix_type | HEX | Type of interaction (3 for Asset Create). |
ix_hash | HEX (32 Bytes) | The interaction hash. |
status | NUMBER | The status of the interaction. |
fuel_used | HEX | The amount of fuel used by this specific interaction alone. |
extra_data | OBJECT | The payload data obtained from the output receipt. |
from | HEX (32 Bytes) | The address of the sender who sent the interaction. |
to | HEX (32 Bytes) | The address of the receiver. |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "moi.Call",
"params": [
{
"ix_args": {
"type": 3,
"sender": "0x3a2dd68422dc24e3459fc93aee0971ce0e0208e1791574653f9153c70580c107",
"payload": "0x0ecf01066383019301910191019001434845544e41271001"
},
"options": {
"0x3231da4e027482e9a6f58bab06ec6597d765ae2a7c0338615e1b281ecb2b5458": {
"tesseract_hash": "0x9edb727d4667f6ec0cb6bc2e7cd11ec80877e8f769cc984b58952ee1c24156e5"
},
"0x82e0bf20d9ba64df7a48fd98c86221d599c243110f26bc9e050a50f794cdfc31": {
"tesseract_number": -1
}
}
}
],
"jsonrpc": "2.0",
"id": 1
}'
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "moi.Call",
"params": [
{
"ix_args": {
"type": 3,
"fuel_price": "0x1",
"fuel_limit": "0x32",
"sender": "0x3a2dd68422dc24e3459fc93aee0971ce0e0208e1791574653f9153c70580c107",
"payload": "0x0ecf01066383019301910191019001434845544e41271001"
},
"options": {
"0x3231da4e027482e9a6f58bab06ec6597d765ae2a7c0338615e1b281ecb2b5458": {
"tesseract_hash": "0x9edb727d4667f6ec0cb6bc2e7cd11ec80877e8f769cc984b58952ee1c24156e5"
},
"0x82e0bf20d9ba64df7a48fd98c86221d599c243110f26bc9e050a50f794cdfc31": {
"tesseract_number": -1
}
}
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": {
"ix_type": "0x3",
"ix_hash": "0x93037bb66d9873b43f3e5219aea34e11f08e0137c445a8dfac3b138663498686",
"status": 0,
"fuel_used": "0x64",
"extra_data": {
"asset_id": "0x000000010dbea6ee1ef4adf740671f48e3960fcc267aff7cfb647371ea286a71c1be6797",
"address": "0x0dbea6ee1ef4adf740671f48e3960fcc267aff7cfb647371ea286a71c1be6797"
},
"from": "0x3a2dd68422dc24e3459fc93aee0971ce0e0208e1791574653f9153c70580c107",
"to": "0x1a6240e3b7317232de7f93fc4b92f0f03c5e24b456e8a783e8cf2f418e4f6aec"
},
"id": 1
}
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": "0e9f0203131696049608900c900c930ca30cb60c03f350520ebca8c09efa19f2ed13012ceb70b2e710241748f4ac11bd4a9b43949b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001c80edf01031653830183018101810180010354455354130d41",
"signature": "01473045022100e64317f1a0e16ed6b6280ca08881196f7be64a88367a4021f0708b7c3e19528702203d400c1cd5977205d949d00c87700f920c81bc6a5769d8caa8a0829f6965121b02"
}
{
"ix_type": "0x3",
"ix_hash": "0x93037bb66d9873b43f3e5219aea34e11f08e0137c445a8dfac3b138663498686",
"status": 0,
"fuel_used": "0x64",
"extra_data": {
"asset_id": "0x000000001a6240e3b7317232de7f93fc4b92f0f03c5e24b456e8a783e8cf2f418e4f6aec",
"address": "0x1a6240e3b7317232de7f93fc4b92f0f03c5e24b456e8a783e8cf2f418e4f6aec"
},
"from": "0x82e0bf20d9ba64df7a48fd98c86221d599c243110f26bc9e050a50f794cdfc31",
"to": "0x1a6240e3b7317232de7f93fc4b92f0f03c5e24b456e8a783e8cf2f418e4f6aec",
"ix_index": "0x0",
"ts_hash": "0xda673bc9ada5329da2fed45c118a6001b128da4475b2fd10c25774d69fe32c59",
"participants": [
{
"address": "0x1a6240e3b7317232de7f93fc4b92f0f03c5e24b456e8a783e8cf2f418e4f6aec",
"height": "0x0",
"transitive_link": "0x0000000000000000000000000000000000000000000000000000000000000000",
"prev_context": "0x0000000000000000000000000000000000000000000000000000000000000000",
"latest_context": "0xb43417e28f6e31dd0d5ed443772ef113c004af0cfab966d06227936d5a65441e",
"context_delta": {
"role": 1,
"behavioural_nodes": [
"3WwqY4MpyYvcp3do1ifwng77oCChd9t3zKsPJa9PN653eG5hSgdu.16Uiu2HAmFfZniU4q3teCh9Vy1gAPCGsK3bMJ2BZc7nxtyDhyaUoG"
],
"random_nodes": [
"3WwqY4MpyYvcp3do1ifwng77oCChd9t3zKsPJa9PN653eG5hSgdu.16Uiu2HAmFfZniU4q3teCh9Vy1gAPCGsK3bMJ2BZc7nxtyDhyaUoG"
],
"replaced_nodes": null
},
"state_hash": "0x6fc2b6c49143841b6d619c9dd5f36c200fa54fe95e9f434d26fbb3ae8cee7c6e"
},
{
"address": "0x82e0bf20d9ba64df7a48fd98c86221d599c243110f26bc9e050a50f794cdfc31",
"height": "0x1",
"transitive_link": "0xad1e527a51ee016e46ae225c14afc12a3d6f7097aaa0f7877545ea49494d943f",
"prev_context": "0x236901e48bf2b2befcef156cbcf2e073d841658afe6965d4cb88485b93a429ce",
"latest_context": "0x236901e48bf2b2befcef156cbcf2e073d841658afe6965d4cb88485b93a429ce",
"context_delta": {
"role": 0,
"behavioural_nodes": [
"3WwqY4MpyYvcp3do1ifwng77oCChd9t3zKsPJa9PN653eG5hSgdu.16Uiu2HAmFfZniU4q3teCh9Vy1gAPCGsK3bMJ2BZc7nxtyDhyaUoG"
],
"random_nodes": [
"3WwWRzpDFKiVrUK9iqrkHEPoiACXqWzeG9Axc83EqtK2JmBiGerB.16Uiu2HAmPSz1ViNuM98cqEEB8FkyWMBojopir9kKfmHnYpP2iift"
],
"replaced_nodes": null
},
"state_hash": "0x24c3535edb12952a7851eecf5374fc40c202f0e1e1b98d4ec7a3fd49aec85902"
},
{
"address": "0xa6ba9853f131679d00da0f033516a2efe9cd53c3d54e1f9a6e60e9077e9f9384",
"height": "0x1",
"transitive_link": "0xad1e527a51ee016e46ae225c14afc12a3d6f7097aaa0f7877545ea49494d943f",
"prev_context": "0x236901e48bf2b2befcef156cbcf2e073d841658afe6965d4cb88485b93a429ce",
"latest_context": "0x236901e48bf2b2befcef156cbcf2e073d841658afe6965d4cb88485b93a429ce",
"context_delta": {
"role": 2,
"behavioural_nodes": [
"3WwqY4MpyYvcp3do1ifwng77oCChd9t3zKsPJa9PN653eG5hSgdu.16Uiu2HAmFfZniU4q3teCh9Vy1gAPCGsK3bMJ2BZc7nxtyDhyaUoG"
],
"random_nodes": [
"3WwWRzpDFKiVrUK9iqrkHEPoiACXqWzeG9Axc83EqtK2JmBiGerB.16Uiu2HAmPSz1ViNuM98cqEEB8FkyWMBojopir9kKfmHnYpP2iift"
],
"replaced_nodes": null
},
"state_hash": "0xfade9d8287096866b632de6834b9b760edd8696d4a394df8eccc4410e1920ac3"
}
]
}
moi.Tesseract
This method retrieves the tesseract by the provided options. The tesseract details can be fetched by either providing the address along with the tesseract number or by providing the tesseract hash alone.
Parameters:
Parameter | Type | Description |
---|---|---|
address | HEX (32 Bytes) | The address 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": [
{
"address": "0x62b8342797343fd95a2b5abe65dd74034bedd6248d91098f759d3d8408004fc3",
"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": "0xccb8d5c80f78ba3f2cf305f7be5fba95a5cdb0c0ede724c66f91948bba25945a"
}
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": {
"participants": [
{
"address": "0x0dbea6ee1ef4adf740671f48e3960fcc267aff7cfb647371ea286a71c1be6797",
"height": "0x0",
"transitive_link": "0x0000000000000000000000000000000000000000000000000000000000000000",
"prev_context": "0x0000000000000000000000000000000000000000000000000000000000000000",
"latest_context": "0xea08c8c78fda0e91625a7f0e61c94e346658a809c7d3614881714ef9174391e3",
"context_delta": {
"role": 1,
"behavioural_nodes": [
"3WwqY4MpyYvcp3do1ifwng77oCChd9t3zKsPJa9PN653eG5hSgdu.16Uiu2HAmFfZniU4q3teCh9Vy1gAPCGsK3bMJ2BZc7nxtyDhyaUoG"
],
"random_nodes": [
"3WwqY4MpyYvcp3do1ifwng77oCChd9t3zKsPJa9PN653eG5hSgdu.16Uiu2HAmFfZniU4q3teCh9Vy1gAPCGsK3bMJ2BZc7nxtyDhyaUoG"
],
"replaced_nodes": null
},
"state_hash": "0x47a2c8f434b6f308f4eb4a8b197d4719ddf37525c6b43305694933ad1b6811e3"
},
{
"address": "0x62b8342797343fd95a2b5abe65dd74034bedd6248d91098f759d3d8408004fc3",
"height": "0x1",
"transitive_link": "0xad1e527a51ee016e46ae225c14afc12a3d6f7097aaa0f7877545ea49494d943f",
"prev_context": "0x236901e48bf2b2befcef156cbcf2e073d841658afe6965d4cb88485b93a429ce",
"latest_context": "0x55169a11762b70585350556bb12b749db2b5bab35c3a2d26907f3ca2b4249ef0",
"context_delta": {
"role": 0,
"behavioural_nodes": [
"3WwqY4MpyYvcp3do1ifwng77oCChd9t3zKsPJa9PN653eG5hSgdu.16Uiu2HAmFfZniU4q3teCh9Vy1gAPCGsK3bMJ2BZc7nxtyDhyaUoG"
],
"random_nodes": [
"3WwWRzpDFKiVrUK9iqrkHEPoiACXqWzeG9Axc83EqtK2JmBiGerB.16Uiu2HAmPSz1ViNuM98cqEEB8FkyWMBojopir9kKfmHnYpP2iift"
],
"replaced_nodes": null
},
"state_hash": "0xbe8a1bafefb78f48c46955558983f21dcfa89a3808c3d1c509bb1d7852b52f19"
},
{
"address": "0xa6ba9853f131679d00da0f033516a2efe9cd53c3d54e1f9a6e60e9077e9f9384",
"height": "0x1",
"transitive_link": "0xad1e527a51ee016e46ae225c14afc12a3d6f7097aaa0f7877545ea49494d943f",
"prev_context": "0x236901e48bf2b2befcef156cbcf2e073d841658afe6965d4cb88485b93a429ce",
"latest_context": "0x55169a11762b70585350556bb12b749db2b5bab35c3a2d26907f3ca2b4249ef0",
"context_delta": {
"role": 2,
"behavioural_nodes": [
"3WwqY4MpyYvcp3do1ifwng77oCChd9t3zKsPJa9PN653eG5hSgdu.16Uiu2HAmFfZniU4q3teCh9Vy1gAPCGsK3bMJ2BZc7nxtyDhyaUoG"
],
"random_nodes": [
"3WwWRzpDFKiVrUK9iqrkHEPoiACXqWzeG9Axc83EqtK2JmBiGerB.16Uiu2HAmPSz1ViNuM98cqEEB8FkyWMBojopir9kKfmHnYpP2iift"
],
"replaced_nodes": null
},
"state_hash": "0xe8125b5e9e8d88c0c6300732180b70575b4b5b3dd78636607bc4d37fe086bd79"
}
],
"interactions_hash": "0x884762a49dd7683b1016fcecc50965cacaf2d38e118b8d6d81685b890cf77e62",
"receipts_hash": "0x3e4072cb8f65c30c0ba0eefe81f59db69b5aac668daddfb86ebeb4b26fd4a58d",
"epoch": "0x0",
"time_stamp": "0x65bb7bf8",
"operator": "3WwqY4MpyYvcp3do1ifwng77oCChd9t3zKsPJa9PN653eG5hSgdu.16Uiu2HAmFfZniU4q3teCh9Vy1gAPCGsK3bMJ2BZc7nxtyDhyaUoG",
"fuel_used": "0x64",
"fuel_limit": "0x3e8",
"consensus_info": {
"evidence_hash": "0x2d968737895f7c33c1ac0195307e14300ac13e9372b740f6fcaf3d20111e10db",
"binary_hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"identity_hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"ics_hash": "0x6d445a5afa2f29b921609df62cb8c6bc15991e395db76626ea2a6aa6f160ff36",
"cluster_id": "A6A96tP5C5C8wM4CM4MJ34tvAw7NeXvJgYvYKfT4yyyb",
"ics_signature": "0x",
"ics_vote_set": "BA{12:xxxxxxxxxxxx}",
"round": "0x0",
"commit_signature": "0x81e5314ed5c5b0d92492db4f87fff494a9508afd749fa1dda48363a1fdcf00a3ae592e2fad00067c552745b5de1d150d0206ae54bc9a54716184f9d0e8e3f6fcd795e774f3a5a454ed86a5c69ae24541ec3e1f2202f6800ffee594546bc16894",
"bft_vote_set": "BA{12:x_x____xxx__}"
},
"seal": "0x0460801d01b31d326ac9bd99458467404b33203a35528ce4a67421a9359de83ddb4ef7c93fc53e088fa974878d4dcf350adf09ae5993fa1b9f92270eb1e079a5a663883fd7338c41f3242f09f35979a116ab38111ffba57701e432fc7964813a2bd3",
"hash": "0x290d9e5e357b58a412cea140ac0f225c84cf0784e8811b377669305dda49963c",
"ixns": [
{
"type": 3,
"nonce": "0x0",
"sender": "0x62b8342797343fd95a2b5abe65dd74034bedd6248d91098f759d3d8408004fc3",
"receiver": "0x0000000000000000000000000000000000000000000000000000000000000000",
"payer": "0x0000000000000000000000000000000000000000000000000000000000000000",
"transfer_values": null,
"perceived_values": null,
"perceived_proofs": "0x",
"fuel_price": "0x1",
"fuel_limit": "0xc8",
"payload": {
"symbol": "kMYTH",
"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": "0x2ccd935031bab60870b11a8fc0cae44303e6e3a922d0eb4d5353a6ecf6fb9968",
"signature": "0x014630440220783ef03f975c7cd6c67cd2c1b6589f4a6e6079d425d857afe0e60d69ecad7bcc022018a2a65d420ac24cbdf8772b8b15aefca5f8a8db8e66f597dbba3353ead378a302",
"ts_hash": "0x290d9e5e357b58a412cea140ac0f225c84cf0784e8811b377669305dda49963c",
"participants": null,
"ix_index": "0x0"
}
]
},
"id": 1
}
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 |
---|---|---|
address | HEX (32 Bytes) | The address 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 |
---|---|---|
type | NUMBER | Type of the interaction. |
nonce | HEX | The nonce of the tesseract. |
sender | HEX (32 Bytes) | Sender address. |
receiver | HEX (32 Bytes) | Receiver address. |
payer | HEX (32 Bytes) | Payer address. |
transfer_values | MAP [ AssetID -> HEX ] | ID of the asset and the hex value of the amount intended for transfer. |
perceived_values | MAP [ AssetID -> HEX ] | ID of the asset and the hex value of the amount perceived. |
perceived_proofs | HEX | An array of bytes representing perceived proof of the interaction. |
fuel_price | HEX | The fuel price for the interaction. |
fuel_limit | HEX | The fuel limit of the interaction. |
payload | OBJECT | Depending on interaction type (refer here). |
mode | HEX | The mode of the interaction. |
compute_hash | HEX (32 Bytes) | The computational hash of the interaction. |
compute_nodes | ARRAY | A list of computational nodes for the interaction. |
mtq | HEX | An integer representing the trust of the interaction. |
trust_nodes | ARRAY | A list of trustable nodes. |
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 integer 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": [
{
"address": "0x62b8342797343fd95a2b5abe65dd74034bedd6248d91098f759d3d8408004fc3",
"options": {
"tesseract_number": -1
},
"ix_index": "0x0"
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": {
"type": 3,
"nonce": "0x0",
"sender": "0x62b8342797343fd95a2b5abe65dd74034bedd6248d91098f759d3d8408004fc3",
"receiver": "0x0000000000000000000000000000000000000000000000000000000000000000",
"payer": "0x0000000000000000000000000000000000000000000000000000000000000000",
"transfer_values": null,
"perceived_values": null,
"perceived_proofs": "0x",
"fuel_price": "0x1",
"fuel_limit": "0xc8",
"payload": {
"symbol": "piiep",
"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": "0xc2821d4f32c45827985fb87bebe5af936ab7ec64d3c80fce9e0552c635ac751a",
"signature": "0x01463044022046cd2e57d608d7db5b8cef460cad8d83b99a021a97573a02e6bd824235b11b22022010405ffb6f7be0a1f91b8e88cc2cc3124301794c4d382d606cc79acae02117f602",
"ts_hash": "0x9ae4cf6346d3a7c2bcbbed36c5168fc276c9cefaa417f2b837a6c994a7a87af4",
"participants": [
{
"address": "0x0dbea6ee1ef4adf740671f48e3960fcc267aff7cfb647371ea286a71c1be6797",
"height": "0x0",
"transitive_link": "0x0000000000000000000000000000000000000000000000000000000000000000",
"prev_context": "0x0000000000000000000000000000000000000000000000000000000000000000",
"latest_context": "0xadc06aa05102b67f53a8552bcb97ae15872640eb5dffcbc13f345f4a331a32b6",
"context_delta": {
"role": 1,
"behavioural_nodes": [
"3Wx2yoorm6CYEXKD4Qu15kRXj2DojgJpDRGbcRXBHm2SK19jWcud.16Uiu2HAmFCu1JLeFmcfM4nGncE2jVqsuWUqswav57gDdWT9yYbnW"
],
"random_nodes": [
"3WwqY4MpyYvcp3do1ifwng77oCChd9t3zKsPJa9PN653eG5hSgdu.16Uiu2HAmFfZniU4q3teCh9Vy1gAPCGsK3bMJ2BZc7nxtyDhyaUoG"
],
"replaced_nodes": null
},
"state_hash": "0x88d451ee2f36847fdcae5a469615aa62facc817b771bb18897549e6690f995e4"
},
{
"address": "0x62b8342797343fd95a2b5abe65dd74034bedd6248d91098f759d3d8408004fc3",
"height": "0x1",
"transitive_link": "0xad1e527a51ee016e46ae225c14afc12a3d6f7097aaa0f7877545ea49494d943f",
"prev_context": "0x236901e48bf2b2befcef156cbcf2e073d841658afe6965d4cb88485b93a429ce",
"latest_context": "0x54c881bad2abc8a9b12570c39d9b792664dd26a1c02a16cdbbce817eedcfe72d",
"context_delta": {
"role": 0,
"behavioural_nodes": null,
"random_nodes": [
"3Wx2yoorm6CYEXKD4Qu15kRXj2DojgJpDRGbcRXBHm2SK19jWcud.16Uiu2HAmFCu1JLeFmcfM4nGncE2jVqsuWUqswav57gDdWT9yYbnW"
],
"replaced_nodes": null
},
"state_hash": "0x3b81db788e45a2f6cc07cd5a29cb68c57e0d787806dfcee6cdf08e6b73206c43"
},
{
"address": "0xa6ba9853f131679d00da0f033516a2efe9cd53c3d54e1f9a6e60e9077e9f9384",
"height": "0x1",
"transitive_link": "0xad1e527a51ee016e46ae225c14afc12a3d6f7097aaa0f7877545ea49494d943f",
"prev_context": "0x236901e48bf2b2befcef156cbcf2e073d841658afe6965d4cb88485b93a429ce",
"latest_context": "0x54c881bad2abc8a9b12570c39d9b792664dd26a1c02a16cdbbce817eedcfe72d",
"context_delta": {
"role": 2,
"behavioural_nodes": null,
"random_nodes": [
"3Wx2yoorm6CYEXKD4Qu15kRXj2DojgJpDRGbcRXBHm2SK19jWcud.16Uiu2HAmFCu1JLeFmcfM4nGncE2jVqsuWUqswav57gDdWT9yYbnW"
],
"replaced_nodes": null
},
"state_hash": "0x49449b85630616768dc7bf14807d1bd025c09151a2dc074952fad91ac681d9e5"
}
],
"ix_index": "0x0"
},
"id": 1
}
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 address. |
receiver | HEX (32 Bytes) | Receiver address. |
payer | HEX (32 Bytes) | Payer address. |
transfer_values | MAP [ AssetID -> HEX ] | ID of the asset and the hex value of the amount intended for transfer. |
perceived_values | MAP [ AssetID -> HEX ] | ID of the asset and the hex value of the amount perceived. |
perceived_proofs | HEX | An array of bytes representing perceived proof of the interaction. |
fuel_price | HEX | The fuel price for the interaction. |
fuel_limit | HEX | The fuel limit of the interaction. |
payload | OBJECT | Depending on interaction type (refer here). |
mode | HEX | The mode of the interaction. |
compute_hash | HEX (32 Bytes) | The computational hash of the interaction. |
compute_nodes | ARRAY | A list of computational nodes for the interaction. |
mtq | HEX | An integer representing the trust of the interaction. |
trust_nodes | ARRAY | A list of trustable nodes. |
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 integer 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": "0xf4da87b4c01a997b8aebde74560420204b1de0f22b7157a6b1d89f14f34704ce"
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": {
"type": 1,
"nonce": "0x1",
"sender": "0x62b8342797343fd95a2b5abe65dd74034bedd6248d91098f759d3d8408004fc3",
"receiver": "0x3231da4e027482e9a6f58bab06ec6597d765ae2a7c0338615e1b281ecb2b5458",
"payer": "0x0000000000000000000000000000000000000000000000000000000000000000",
"transfer_values": {
"0x000000000dbea6ee1ef4adf740671f48e3960fcc267aff7cfb647371ea286a71c1be6797": "0x3e8"
},
"perceived_values": null,
"perceived_proofs": "0x",
"fuel_price": "0x1",
"fuel_limit": "0xc8",
"payload": null,
"mode": "0x0",
"compute_hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"compute_nodes": null,
"mtq": "0x0",
"trust_nodes": null,
"hash": "0xf4da87b4c01a997b8aebde74560420204b1de0f22b7157a6b1d89f14f34704ce",
"signature": "0x01473045022100bb43bed683d853642039497b92df07cb405470a58180c645e033aa6a66d2aeac022054092efd0bcb266f19d67240a651fe22f6aa2253bd5ba3293b46f6d6f70f24d002",
"ts_hash": "0xb2d02ae915aeec9e196f972f90114db462e9cd4fb41ccbb873679383912a883e",
"participants": [
{
"address": "0x3231da4e027482e9a6f58bab06ec6597d765ae2a7c0338615e1b281ecb2b5458",
"height": "0x1",
"transitive_link": "0xad1e527a51ee016e46ae225c14afc12a3d6f7097aaa0f7877545ea49494d943f",
"prev_context": "0xfe6680a6c88a066835c181798ec29313d3ada6ed6e4e65d70b540ae8551b68f7",
"latest_context": "0xfe6680a6c88a066835c181798ec29313d3ada6ed6e4e65d70b540ae8551b68f7",
"context_delta": {
"role": 1,
"behavioural_nodes": null,
"random_nodes": null,
"replaced_nodes": null
},
"state_hash": "0xff96bb5233b27190b700b0b3f3614e62fde9900a5b37c4b8beb35031ac7e459e"
},
{
"address": "0x62b8342797343fd95a2b5abe65dd74034bedd6248d91098f759d3d8408004fc3",
"height": "0x2",
"transitive_link": "0xd676561d6afddc7853034fb48088ed49880bf281db2803542e545ba1f196fbc8",
"prev_context": "0x0e18891b50dd585e731648cbc4ad44647e6ef8d8dd2fc10720eedcda650a6f17",
"latest_context": "0x5350bf5317cd25d1fb86e254020f08f35844671963369bf62a5db45a892635b0",
"context_delta": {
"role": 0,
"behavioural_nodes": null,
"random_nodes": [
"3WxEeH1ioPKucRpBraDLcm38QhCHCTdcAXTxawphsr2GBja4UFeX.16Uiu2HAm33KZSzYSLPVMZH8vJJwTWH77V4LRFgtrK3PZRSiTYNzY"
],
"replaced_nodes": null
},
"state_hash": "0x4d6f99f2920dbffb4a396343dc5e9c4d714f7c8055e5765a43b77421f8f052d7"
}
],
"ix_index": "0x0"
},
"id": 1
}
This is an example response for a IxAssetTransfer
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. |
extra_data | OBJECT | An object containing asset_id . |
from | HEX (32 Bytes) | The address of the sender. |
to | HEX (32 Bytes) | The address of the receiver. |
ts_hash | HEX (32 Bytes) | The hash of the tesseract. |
ix_index | HEX | The integer representing the interaction index in 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.InteractionReceipt",
"params": [
{
"hash": "0x2ccd935031bab60870b11a8fc0cae44303e6e3a922d0eb4d5353a6ecf6fb9968"
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": {
"ix_type": "0x3",
"ix_hash": "0x2ccd935031bab60870b11a8fc0cae44303e6e3a922d0eb4d5353a6ecf6fb9968",
"status": 0,
"fuel_used": "0x64",
"extra_data": {
"asset_id": "0x000000000dbea6ee1ef4adf740671f48e3960fcc267aff7cfb647371ea286a71c1be6797",
"address": "0x0dbea6ee1ef4adf740671f48e3960fcc267aff7cfb647371ea286a71c1be6797"
},
"from": "0x62b8342797343fd95a2b5abe65dd74034bedd6248d91098f759d3d8408004fc3",
"to": "0x0dbea6ee1ef4adf740671f48e3960fcc267aff7cfb647371ea286a71c1be6797",
"ix_index": "0x0",
"ts_hash": "0x290d9e5e357b58a412cea140ac0f225c84cf0784e8811b377669305dda49963c",
"participants": [
{
"address": "0x0dbea6ee1ef4adf740671f48e3960fcc267aff7cfb647371ea286a71c1be6797",
"height": "0x0",
"transitive_link": "0x0000000000000000000000000000000000000000000000000000000000000000",
"prev_context": "0x0000000000000000000000000000000000000000000000000000000000000000",
"latest_context": "0xea08c8c78fda0e91625a7f0e61c94e346658a809c7d3614881714ef9174391e3",
"context_delta": {
"role": 1,
"behavioural_nodes": [
"3WwqY4MpyYvcp3do1ifwng77oCChd9t3zKsPJa9PN653eG5hSgdu.16Uiu2HAmFfZniU4q3teCh9Vy1gAPCGsK3bMJ2BZc7nxtyDhyaUoG"
],
"random_nodes": [
"3WwqY4MpyYvcp3do1ifwng77oCChd9t3zKsPJa9PN653eG5hSgdu.16Uiu2HAmFfZniU4q3teCh9Vy1gAPCGsK3bMJ2BZc7nxtyDhyaUoG"
],
"replaced_nodes": null
},
"state_hash": "0x47a2c8f434b6f308f4eb4a8b197d4719ddf37525c6b43305694933ad1b6811e3"
},
{
"address": "0x62b8342797343fd95a2b5abe65dd74034bedd6248d91098f759d3d8408004fc3",
"height": "0x1",
"transitive_link": "0xad1e527a51ee016e46ae225c14afc12a3d6f7097aaa0f7877545ea49494d943f",
"prev_context": "0x236901e48bf2b2befcef156cbcf2e073d841658afe6965d4cb88485b93a429ce",
"latest_context": "0x55169a11762b70585350556bb12b749db2b5bab35c3a2d26907f3ca2b4249ef0",
"context_delta": {
"role": 0,
"behavioural_nodes": [
"3WwqY4MpyYvcp3do1ifwng77oCChd9t3zKsPJa9PN653eG5hSgdu.16Uiu2HAmFfZniU4q3teCh9Vy1gAPCGsK3bMJ2BZc7nxtyDhyaUoG"
],
"random_nodes": [
"3WwWRzpDFKiVrUK9iqrkHEPoiACXqWzeG9Axc83EqtK2JmBiGerB.16Uiu2HAmPSz1ViNuM98cqEEB8FkyWMBojopir9kKfmHnYpP2iift"
],
"replaced_nodes": null
},
"state_hash": "0xbe8a1bafefb78f48c46955558983f21dcfa89a3808c3d1c509bb1d7852b52f19"
},
{
"address": "0xa6ba9853f131679d00da0f033516a2efe9cd53c3d54e1f9a6e60e9077e9f9384",
"height": "0x1",
"transitive_link": "0xad1e527a51ee016e46ae225c14afc12a3d6f7097aaa0f7877545ea49494d943f",
"prev_context": "0x236901e48bf2b2befcef156cbcf2e073d841658afe6965d4cb88485b93a429ce",
"latest_context": "0x55169a11762b70585350556bb12b749db2b5bab35c3a2d26907f3ca2b4249ef0",
"context_delta": {
"role": 2,
"behavioural_nodes": [
"3WwqY4MpyYvcp3do1ifwng77oCChd9t3zKsPJa9PN653eG5hSgdu.16Uiu2HAmFfZniU4q3teCh9Vy1gAPCGsK3bMJ2BZc7nxtyDhyaUoG"
],
"random_nodes": [
"3WwWRzpDFKiVrUK9iqrkHEPoiACXqWzeG9Axc83EqtK2JmBiGerB.16Uiu2HAmPSz1ViNuM98cqEEB8FkyWMBojopir9kKfmHnYpP2iift"
],
"replaced_nodes": null
},
"state_hash": "0xe8125b5e9e8d88c0c6300732180b70575b4b5b3dd78636607bc4d37fe086bd79"
}
]
},
"id": 1
}
moi.InteractionCount
This method helps to fetch the total number of interactions performed by a particular account.
Parameters:
Parameter | Type | Description |
---|---|---|
address | HEX (32 Bytes) | The address 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": [
{
"address": "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 address, inclusive of both the completed and pending interactions in IxPool.
Parameters:
Name | Type | Description |
---|---|---|
address | HEX (32 Bytes) | The address 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": [
{
"address": "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 address.
Parameters:
Parameter | Type | Description |
---|---|---|
address | HEX (32 Bytes) | The account address 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": [
{
"address": "0x52fdfc072182654f163f5f0f9a621d729566c74d10037c4d7bbb0407d1e2c649",
"options": {
"tesseract_number": -1
}
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": {
"address": "0x52fdfc072182654f163f5f0f9a621d729566c74d10037c4d7bbb0407d1e2c649",
"height": "0x0",
"tesseract_hash": "0x5f36d19cacd10252d33ae25f733f723f39977091ef57a5ce679393cebeb6b466",
"type": 2
},
"id": 1
}
moi.AccountState
This method returns the account for a provided address.
Parameters:
Parameter | Type | Description |
---|---|---|
address | HEX (32 Bytes) | The address 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": [
{
"address": "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 address. 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 |
---|---|---|
address | HEX (32 Bytes) | The address 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": [
{
"address": "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 address. It is a method to get a list of all asset IDs associated with a given address and their total supply.
Parameters:
Parameter | Type | Description |
---|---|---|
address | HEX (32 Bytes) | the address 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": [
{
"address": "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 |
---|---|---|
address | HEX (32 Bytes) | The address 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 integer 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": [
{
"address": "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 |
---|---|---|
address | HEX (32 Bytes) | The address 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": [
{
"address": "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 address 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 |
---|---|---|
address | HEX (32 Bytes) | The address 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 address 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": [
{
"address": "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 |
---|---|---|
type | NUMBER | Type of interaction (1 for AssetTransfer) |
sender | HEX (32 Bytes) | Sender's address |
receiver | HEX (32 Bytes) | Receiver's address |
transfer_values | MAP [ AssetID -> HEX ] | ID of the asset and the hex value of the amount intended for transfer |
fuel_price | HEX | Fuel price for the interaction (optional) |
fuel_limit | HEX | Fuel limit for the interaction (optional) |
payload | HEX | Depending on interaction type (refer here) |
options | MAP [ [Address ] -> 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": {
"type": 3,
"sender": "0x3a2dd68422dc24e3459fc93aee0971ce0e0208e1791574653f9153c70580c107",
"payload": "0x0ecf01066383019301910191019001434845544e41271001"
},
"options": {
"0x3231da4e027482e9a6f58bab06ec6597d765ae2a7c0338615e1b281ecb2b5458": {
"tesseract_hash": "0x9edb727d4667f6ec0cb6bc2e7cd11ec80877e8f769cc984b58952ee1c24156e5"
},
"0x82e0bf20d9ba64df7a48fd98c86221d599c243110f26bc9e050a50f794cdfc31": {
"tesseract_number": -1
}
}
}
],
"jsonrpc": "2.0",
"id": 1
}'
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "moi.FuelEstimate",
"params": [
{
"ix_args": {
"type": 3,
"fuel_price": "0x1",
"fuel_limit": "0x32",
"sender": "0x3a2dd68422dc24e3459fc93aee0971ce0e0208e1791574653f9153c70580c107",
"payload": "0x0ecf01066383019301910191019001434845544e41271001"
},
"options": {
"0x3231da4e027482e9a6f58bab06ec6597d765ae2a7c0338615e1b281ecb2b5458": {
"tesseract_hash": "0x9edb727d4667f6ec0cb6bc2e7cd11ec80877e8f769cc984b58952ee1c24156e5"
},
"0x82e0bf20d9ba64df7a48fd98c86221d599c243110f26bc9e050a50f794cdfc31": {
"tesseract_number": -1
}
}
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": {
"fuel_used": "0x64"
},
"id": 1
}
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 address 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 address.
Parameters:
Parameter | Type | Description |
---|---|---|
address | HEX (32 Bytes) | The address 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": [
{
"address": "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 |
---|---|---|
address | HEX (32 Bytes) | The account address for which you are requesting logs |
start_height | INTEGER | The start height of the tesseract |
end_height | INTEGER | 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 |
---|---|---|
address | HEX (32 Bytes) | The address 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": [
{
"address": "0x5fc0247c18448e91d15542ffb7a0956b6d5f1a19bdd11a36e6a1f7369288f886",
"start_height": 0,
"end_height": 9,
"topics": [
["0x223c39e29dff6467fedda09758d91781c5372e091ff86b3af9e310e386562bef"],
[
"0x91f07c7f1215b122f8ac96a1f841293a2a0796395b4e46d2174b4d16f89de12c",
"0x0000000000000000000000000aff3454fce5edbc8cca8697c15331677e6ebccc"
]
]
}
],
"jsonrpc": "2.0",
"id": 1
}'
{
"jsonrpc": "2.0",
"result": [
{
"address": "0x5fc0247c18448e91d15542ffb7a0956b6d5f1a19bdd11a36e6a1f7369288f886",
"logic_id": "0x08000012798f8199d5560560fab9673b86cf548e4095affd74f2e8b93095a7c61babec",
"topics": [
"0x223c39e29dff6467fedda09758d91781c5372e091ff86b3af9e310e386562bef",
"0x91f07c7f1215b122f8ac96a1f841293a2a0796395b4e46d2174b4d16f89de12c",
"0x7874d880f84228b8de1435beb3d9c4dd616e61f95e6545bae0f1d0f2eeccffc6"
],
"data": "Da8BBmWWAZUCpgaFB2Ftb3VudAMD6HJlY2VpdmVyBmd0V1wCZa3k/jFAHugyYW99+LUXCXKzeUsXCGOx6Qv2c2VuZGVyBl/AJHwYRI6R0VVC/7eglWttXxoZvdEaNuah9zaSiPiG",
"ix_hash": "0x145bb1f08e294ff8f762831bf738c325a5e88d054f059d5387e635287ebd8174",
"ts_hash": "0x47af60ba438d8db67b86972d57a3a4aa6d5bf37463f45e43a46398342883daf6",
"participants": [
{
"address": "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"
},
{
"address": "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 |
---|---|---|
address | HEX (32 Bytes) | The address 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":[
{
"address":"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 |
---|---|---|
address | HEX (32 Bytes) | The account address for which you are requesting logs |
start_height | INTEGER | The start height of the tesseract |
end_height | INTEGER | 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": [
{
"address": "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": [
{
"address": "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"
},
{
"address": "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"
},
{
"address": "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",
"address": "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 address provided as a parameter.
Parameters:
Parameter | Type | Description |
---|---|---|
address | HEX (32 Bytes) | The address of the sender. |
Returns:
Return | Type | Description |
---|---|---|
pending | OBJECT | The object containing details of pending interactions for the given address. |
queued | OBJECT | The object containing details of queued interactions for the given address. |
- Request
- Response
curl --location 'https://voyage-rpc.moi.technology/babylon/' \
--header 'Content-Type: application/json' \
--data '{
"method": "ixpool.ContentFrom",
"params": [
{
"address": "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 |
---|---|---|
address | HEX (32 Bytes) | The address 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": [
{
"address": "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 address.
Parameters:
Parameter | Type | Description |
---|---|---|
address | HEX (32 Bytes) | The address 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 address |
- Request
- Response
curl --location 'http://localhost:1600/' \
--header 'Content-Type: application/json' \
--data '{
"method": "debug.SyncJob",
"params": [
{
"address": "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
}