Smart Contracts (Testnet)

Module: staking
back to overview
staking
Methods: 9
Instances: 0
Initialization

Parameters
{
  "accepting_stakes": "<Bool>",
  "auto_compound": "<Bool>",
  "maximum_stake": "<Amount in microCCD>",
  "minimum_stake": "<Amount in microCCD>",
  "reward_rate": "<UInt64>",
  "slashing_rate": "<UInt64>",
  "unbonding_period": "<UInt64>"
}
Errors
None
Event
None
Methods

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "NotAdmin": []
    },
    {
      "StakingDisabled": []
    },
    {
      "InsufficientStakeAmount": []
    },
    {
      "ExcessiveStakeAmount": []
    },
    {
      "InsufficientBalance": []
    },
    {
      "NoStakeFound": []
    },
    {
      "TransferError": []
    },
    {
      "NoUnbondingFound": []
    },
    {
      "ArithmeticError": []
    },
    {
      "AlreadySlashed": []
    }
  ]
}
Return
None

Parameters
{
  "amount": "<Amount in microCCD>"
}
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "NotAdmin": []
    },
    {
      "StakingDisabled": []
    },
    {
      "InsufficientStakeAmount": []
    },
    {
      "ExcessiveStakeAmount": []
    },
    {
      "InsufficientBalance": []
    },
    {
      "NoStakeFound": []
    },
    {
      "TransferError": []
    },
    {
      "NoUnbondingFound": []
    },
    {
      "ArithmeticError": []
    },
    {
      "AlreadySlashed": []
    }
  ]
}
Return
None

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "NotAdmin": []
    },
    {
      "StakingDisabled": []
    },
    {
      "InsufficientStakeAmount": []
    },
    {
      "ExcessiveStakeAmount": []
    },
    {
      "InsufficientBalance": []
    },
    {
      "NoStakeFound": []
    },
    {
      "TransferError": []
    },
    {
      "NoUnbondingFound": []
    },
    {
      "ArithmeticError": []
    },
    {
      "AlreadySlashed": []
    }
  ]
}
Return
None

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "NotAdmin": []
    },
    {
      "StakingDisabled": []
    },
    {
      "InsufficientStakeAmount": []
    },
    {
      "ExcessiveStakeAmount": []
    },
    {
      "InsufficientBalance": []
    },
    {
      "NoStakeFound": []
    },
    {
      "TransferError": []
    },
    {
      "NoUnbondingFound": []
    },
    {
      "ArithmeticError": []
    },
    {
      "AlreadySlashed": []
    }
  ]
}
Return
None

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "NotAdmin": []
    },
    {
      "StakingDisabled": []
    },
    {
      "InsufficientStakeAmount": []
    },
    {
      "ExcessiveStakeAmount": []
    },
    {
      "InsufficientBalance": []
    },
    {
      "NoStakeFound": []
    },
    {
      "TransferError": []
    },
    {
      "NoUnbondingFound": []
    },
    {
      "ArithmeticError": []
    },
    {
      "AlreadySlashed": []
    }
  ]
}
Return
None

Parameters
{
  "accepting_stakes": "<Bool>",
  "auto_compound": "<Bool>",
  "maximum_stake": "<Amount in microCCD>",
  "minimum_stake": "<Amount in microCCD>",
  "reward_rate": "<UInt64>",
  "slashing_rate": "<UInt64>",
  "unbonding_period": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "NotAdmin": []
    },
    {
      "StakingDisabled": []
    },
    {
      "InsufficientStakeAmount": []
    },
    {
      "ExcessiveStakeAmount": []
    },
    {
      "InsufficientBalance": []
    },
    {
      "NoStakeFound": []
    },
    {
      "TransferError": []
    },
    {
      "NoUnbondingFound": []
    },
    {
      "ArithmeticError": []
    },
    {
      "AlreadySlashed": []
    }
  ]
}
Return
None

Parameters
"<AccountAddress>"
Errors
None
Return
{
  "Enum": [
    {
      "None": []
    },
    {
      "Some": [
        {
          "last_reward_timestamp": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
          "pending_rewards": "<Amount in microCCD>",
          "slashed": "<Bool>",
          "staked_amount": "<Amount in microCCD>",
          "unbonding": [
            {
              "amount": "<Amount in microCCD>",
              "unlock_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
            }
          ]
        }
      ]
    }
  ]
}

Parameters
None
Errors
None
Return
{
  "accepting_stakes": "<Bool>",
  "auto_compound": "<Bool>",
  "maximum_stake": "<Amount in microCCD>",
  "minimum_stake": "<Amount in microCCD>",
  "reward_rate": "<UInt64>",
  "slashing_rate": "<UInt64>",
  "unbonding_period": "<UInt64>"
}

Parameters
None
Errors
None
Return
{
  "active_stakers": "<UInt64>",
  "stakers_length": "<UInt64>",
  "total_staked": "<Amount in microCCD>"
}
Address
🗎<10306,0>


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