Smart Contracts (Testnet)

Module: MYRT_v0
back to overview
MYRT_v0
Methods: 10
Instances: 1
Initialization

Parameters
{
  "index": "<UInt64>",
  "subindex": "<UInt64>"
}
Errors
None
Event
None
Methods

Parameters
{
  "index": "<UInt64>",
  "subindex": "<UInt64>"
}
Errors
None
Return
None

Parameters
{
  "amount_a_desired": "<UInt64>",
  "amount_a_min": "<UInt64>",
  "amount_b_desired": "<UInt64>",
  "amount_b_min": "<UInt64>",
  "token_a": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "token_b": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  }
}
Errors
None
Return
{
  "amount_a": "<UInt64>",
  "amount_b": "<UInt64>",
  "liquidity": "<UInt64>"
}

Parameters
{
  "amount_a_desired": "<UInt64>",
  "amount_a_min": "<UInt64>",
  "amount_b_desired": "<UInt64>",
  "amount_b_min": "<UInt64>",
  "token_a": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "token_b": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  }
}
Errors
None
Return
{
  "reserve": [
    "<String of size at most 74 containing an unsigned integer.>",
    "<String of size at most 74 containing an unsigned integer.>"
  ]
}

Parameters
{
  "amount_a_desired": "<UInt64>",
  "amount_a_min": "<UInt64>",
  "amount_b_desired": "<UInt64>",
  "amount_b_min": "<UInt64>",
  "token_a": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "token_b": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  }
}
Errors
None
Return
{
  "reserve": [
    "<String of size at most 74 containing an unsigned integer.>",
    "<String of size at most 74 containing an unsigned integer.>"
  ]
}

Parameters
{
  "amount_a_desired": "<UInt64>",
  "amount_a_min": "<UInt64>",
  "amount_b_desired": "<UInt64>",
  "amount_b_min": "<UInt64>",
  "token_a": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "token_b": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  }
}
Errors
None
Return
None

Parameters
{
  "amount_a_desired": "<UInt64>",
  "amount_a_min": "<UInt64>",
  "amount_b_desired": "<UInt64>",
  "amount_b_min": "<UInt64>",
  "token_a": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "token_b": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  }
}
Errors
None
Return
None

Parameters
None
Errors
None
Return
{
  "Enum": [
    {
      "Account": [
        "<AccountAddress>"
      ]
    },
    {
      "Contract": [
        {
          "index": "<UInt64>",
          "subindex": "<UInt64>"
        }
      ]
    }
  ]
}

Parameters
None
Errors
None
Return
None

Parameters
{
  "amount_in": "<UInt64>",
  "amount_out_min": "<UInt64>",
  "path": [
    {
      "index": "<UInt64>",
      "subindex": "<UInt64>"
    }
  ]
}
Errors
None
Return
{
  "amounts": [
    "<UInt64>"
  ]
}

Parameters
{
  "amount_in": "<UInt64>",
  "path": [
    {
      "index": "<UInt64>",
      "subindex": "<UInt64>"
    }
  ]
}
Errors
None
Return
"<UInt64>"
Address
🗎<817,0>


Release: 2024.12
Support CCDExplorer.io Uptime Backend Status CCDExplorer is supported by AesirX - Decentralized Consent & Data Ownership