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
- Actions
- 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
- Actions
- DeploySystemSmartContract
- ProposeNewContract
- ProposeUpdateContract
- ProposeContractCodeCheck
- ReleaseApprovedContract
- ReleaseCodeCheckedContract
- DeploySmartContract
- UpdateSmartContract
- Initialize
- ChangeGenesisOwner
- SetContractProposerRequiredState
- ChangeContractDeploymentController
- ChangeCodeCheckController
- SetInitialControllerAddress
- GetContractDeploymentController
- GetCodeCheckController
- Views methods
- Actions
- 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
- Profit Contract
- Cross chain Contract
- Actions
- ProposeCrossChainIndexing
- ReleaseCrossChainIndexing
- Initialize
- RequestSideChainCreation
- ReleaseSideChainCreation
- CreateSideChain
- SetInitialSideChainLifetimeControllerAddress
- SetInitialIndexingControllerAddress
- ChangeCrossChainIndexingController
- ChangeSideChainLifetimeController
- ChangeSideChainIndexingFeeController
- Recharge
- RecordCrossChainData
- AdjustIndexingFeePrice
- DisposeSideChain
- View methods
- GetCrossChainIndexingController
- GetSideChainLifetimeController
- GetSideChainIndexingFeeController
- GetSideChainIndexingFeePrice
- VerifyTransaction
- LockedAddress
- GetChainStatus
- GetSideChainHeight
- GetParentChainHeight
- GetParentChainId
- GetSideChainBalance
- GetSideChainIndexingFeeDebt
- GetSideChainIdAndHeight
- GetSideChainIndexingInformationList
- GetAllChainsIdAndHeight
- GetIndexedSideChainBlockDataByHeight
- GetBoundParentChainHeightAndMerklePathByHeight
- GetChainInitializationData
- Actions
- Treasury Contract
- Vote Contract
- Token Holder Contract
- Economic Contract
- Token Convert Contract
- Configuration Contract