Smart Contract APIs¶
This section gives an overview of some important contracts and contract methods. It’s not meant to be exhaustive. With every method description we give the parameter message in JSON format, this can be useful when using client (like aelf-command).
- Association Contract
- Referendum Contract
- Parliament Contract
- Consensus Contract
- view methods
- GetCurrentMinerList
- GetCurrentMinerPubkeyList
- GetCurrentMinerListWithRoundNumber
- GetRoundInformation
- GetCurrentRoundNumber
- GetCurrentRoundInformation
- GetPreviousRoundInformation
- GetCurrentTermNumber
- GetCurrentWelfareReward
- GetPreviousMinerList
- GetMinedBlocksOfPreviousTerm
- GetNextMinerPubkey
- GetCurrentMinerPubkey
- IsCurrentMiner
- GetNextElectCountDown
- view methods
- Election Contract
- AnnounceElection
- QuitElection
- Vote
- ChangeVotingOption
- Withdraw
- SetVoteWeightProportion
- view methods
- GetCandidates
- GetVotedCandidates
- GetCandidateInformation
- GetVictories
- GetTermSnapshot
- GetMinersCount
- GetElectionResult
- GetElectorVote
- GetElectorVoteWithRecords
- GetElectorVoteWithAllRecords
- GetCandidateVote
- GetCandidateVoteWithRecords
- GetCandidateVoteWithAllRecords
- GetVotersCount
- GetVotesAmount
- GetCurrentMiningReward
- GetPageableCandidateInformation
- GetMinerElectionVotingItemId
- GetDataCenterRankingList
- GetVoteWeightProportion
- GetCalculateVoteWeight
- Genesis Contract
- Method documentation
- Views
- Actions
- function ProposeNewContract
- function ProposeUpdateContract
- function ProposeContractCodeCheck
- function ReleaseApprovedContract
- function ReleaseCodeCheckedContract
- function DeploySmartContract
- function UpdateSmartContract
- function Initialize
- function ChangeGenesisOwner
- function SetContractProposerRequiredState
- function ChangeContractDeploymentController
- function ChangeCodeCheckController
- function SetInitialControllerAddress
- function GetContractDeploymentController
- function GetContractDeploymentController
- Method documentation
- Multi Token Contract
- Token life-cycle: creation, issuance and transfer.
- Allowances
- Locking
- Burning tokens
- Cross-chain
- CrossChainCreateToken
- CrossChainTransfer
- CrossChainReceiveToken
- SetSymbolsToPayTxSizeFee
- UpdateCoefficientsForContract
- UpdateCoefficientsForSender
- AdvanceResourceToken
- TakeResourceTokenBack
- ValidateTokenInfoExists
- TransferToContract
- InitializeAuthorizedController
- ChangeUserFeeController
- ChangeDeveloperController
- View methods
- GetTokenInfo
- GetNativeTokenInfo
- GetResourceTokenInfo
- GetBalance
- GetAllowance
- IsInWhiteList
- GetLockedAmount
- GetCrossChainTransferTokenContractAddress
- GetPrimaryTokenSymbol
- GetCalculateFeeCoefficientOfContract
- GetCalculateFeeCoefficientOfSender
- GetSymbolsToPayTxSizeFee
- GetDeveloperFeeController
- GetUserFeeController
- GetSideChainRentalControllerCreateInfo
- GetResourceUsage
- GetOwningRental
- GetOwningRentalUnitValue
- OwningRentalUnitValue
- Profit Contract
- Resource Contract
- Cross chain Contract
- Functions
- Functions Documentation
- function ProposeCrossChainIndexing
- function GetPendingCrossChainIndexingProposal
- function ReleaseCrossChainIndexing
- function Initialize
- function RequestSideChainCreation
- function ReleaseSideChainCreation
- function CreateSideChain
- function SetInitialSideChainLifetimeControllerAddress
- function SetInitialIndexingControllerAddress
- function ChangeCrossChainIndexingController
- function GetCrossChainIndexingController
- function ChangeSideChainLifetimeController
- function GetSideChainLifetimeController
- function GetSideChainIndexingFeeController
- function ChangeSideChainIndexingFeeController
- function GetSideChainIndexingFeePrice
- function Recharge
- function RecordCrossChainData
- function AdjustIndexingFeePrice
- function DisposeSideChain
- function VerifyTransaction
- function LockedAddress
- function GetChainStatus
- function GetSideChainHeight
- function GetParentChainHeight
- function GetParentChainId
- function GetSideChainBalance
- function GetSideChainIndexingFeeDebt
- function GetSideChainIdAndHeight
- function GetSideChainIndexingInformationList
- function GetAllChainsIdAndHeight
- function GetIndexedCrossChainBlockDataByHeight
- function GetIndexedSideChainBlockDataByHeight
- function GetBoundParentChainHeightAndMerklePathByHeight
- function GetChainInitializationData
- Treasury Contract
- Vote Contract
- Token Holder Contract
- Economic Contract
- Token Convert Contract
- Configuration Contract