1.0.0 • Published 1 year ago

@conflux-lib/openapi-sdk-evm v1.0.0

Weekly downloads
-
License
Unlicense
Repository
github
Last release
1 year ago

Documentation for Conflux Scan Open Api

Documentation for API Endpoints

All URIs are relative to http://localhost

ClassMethodHTTP requestDescription
AccountsApiapimoduleaccountactionbalanceGetGET /api?module=account&action=balanceGet CFX Balance for a Single Address
AccountsApiapimoduleaccountactionbalancehistoryGetGET /api?module=account&action=balancehistoryGet Historical CFX Balance for a Single Address By BlockNo
AccountsApiapimoduleaccountactionbalancemultiGetGET /api?module=account&action=balancemultiGet CFX Balance for Multiple Addresses in a Single Call
AccountsApiapimoduleaccountactiongetminedblocksGetGET /api?module=account&action=getminedblocksGet list of Blocks Mined by Address
AccountsApiapimoduleaccountactiontokennfttxGetGET /api?module=account&action=tokennfttxGet a list of 'ERC721 - Token Transfer Events' by Address Usage: 1> ERC-721 transfers from an address, specify the address parameter 2> ERC-721 transfers from a contract address, specify the contract address parameter 3> ERC-721 transfers from an address filtered by a token contract, specify both address and contract address parameters.
AccountsApiapimoduleaccountactiontokentxGetGET /api?module=account&action=tokentxGet a list of 'ERC20 - Token Transfer Events' by Address Usage: 1> ERC-20 transfers from an address, specify the address parameter 2> ERC-20 transfers from a contract address, specify the contract address parameter 3> ERC-20 transfers from an address filtered by a token contract, specify both address and contract address parameters.
AccountsApiapimoduleaccountactiontxlistGetGET /api?module=account&action=txlistGet a list of 'Normal' Transactions By Address
AccountsApiapimoduleaccountactiontxlistinternalGetGET /api?module=account&action=txlistinternalGet a list of 'Internal' Transactions. Usage: 1> Get 'Internal' Transactions by Address. example: https://evmapi.confluxscan.net/api ?module=account &action=txlistinternal &address=0x2c1ba59d6f58433fb1eaee7d20b26ed83bda51a3 &startblock=0 &endblock=2702578 &page=1 &offset=10 &sort=asc &apikey=YourApiKeyToken 2> Get 'Internal Transactions' by Transaction Hash. example: https://evmapi.confluxscan.net/api ?module=account &action=txlistinternal &txhash=0x40eb908387324f2b575b4879cd9d7188f69c8fc9d87c901b9e2daaea4b442170 &apikey=YourApiKeyToken 3> Get 'Internal Transactions' by Block Range. example: https://evmapi.confluxscan.net/api ?module=account &action=txlistinternal &startblock=13481773 &endblock=13491773 &page=1 &offset=10 &sort=asc &apikey=YourApiKeyToken
AccountsDeprecatedApiaccountCfxTransfersGetGET /account/cfx/transfersGet cfx transfer records of an account.
AccountsDeprecatedApiaccountCrc1155TransfersGetGET /account/crc1155/transfers
AccountsDeprecatedApiaccountCrc20TransfersGetGET /account/crc20/transfersGet crc20 transfer records of an account.
AccountsDeprecatedApiaccountCrc3525TransfersGetGET /account/crc3525/transfers
AccountsDeprecatedApiaccountCrc721TransfersGetGET /account/crc721/transfers
AccountsDeprecatedApiaccountTokensGetGET /account/tokensGet assets held by an account. Some tokens may not show up for some reasons.
AccountsDeprecatedApiaccountTransactionsGetGET /account/transactionsGet transactions associated with an account. A transaction with 'from' or 'to' equals to specified account is considered as 'associate'. Parameters 'from' and 'to' are or logic.
BlocksApiapimoduleblockactiongetblocknobytimeGetGET /api?module=block&action=getblocknobytimeGet Block Number by Timestamp
ContractsApiapiPostPOST /api
ContractsApiapimodulecontractactioncheckproxyverificationGetGET /api?module=contract&action=checkproxyverificationChecking Proxy Contract Verification Submission Status using cURL
ContractsApiapimodulecontractactioncheckverifystatusGetGET /api?module=contract&action=checkverifystatusVerify Source Code - Check Source Code Verification Submission Status
ContractsApiapimodulecontractactiongetabiGetGET /api?module=contract&action=getabiGet Contract ABI for Verified Contract Source Codes
ContractsApiapimodulecontractactiongetsourcecodeGetGET /api?module=contract&action=getsourcecodeGet Contract Source Code for Verified Contract Source Codes
ContractsApiapimodulecontractactionverifyproxycontractGetGET /api?module=contract&action=verifyproxycontractVerifying Proxy Contract using cURL
NFTAssetsApinftBalancesGetGET /nft/balancesGet balances of NFT assets for account address.
NFTAssetsApinftFtsGetGET /nft/ftsSearch the NFT by NFT name and/or contract address.
NFTAssetsApinftPreviewGetGET /nft/previewView the NFT for the specified contract address and tokenID.
NFTAssetsApinftTokensGetGET /nft/tokensGet token id array of specified NFT contract for account address.
StatisticsApistatisticsAccountActiveGetGET /statistics/account/activeGet statistics of active account by daily.
StatisticsApistatisticsAccountCfxHolderGetGET /statistics/account/cfx/holderGet statistics of total cfx holder by daily.
StatisticsApistatisticsAccountGrowthGetGET /statistics/account/growthGet statistics of account growth by daily.
StatisticsApistatisticsCfxTransferGetGET /statistics/cfx/transferGet statistics of cfx transfer by daily.
StatisticsApistatisticsContractGetGET /statistics/contractGet statistics of deployed contract.
StatisticsApistatisticsMiningGetGET /statistics/miningGet statistics of mining within ${limit} ${intervalType}. When intervalType is min, the maximum interval between minTimestamp and maxTimestamp is 60 minutes
StatisticsApistatisticsSupplyGetGET /statistics/supplyReturn supply info about CFX on Conflux Network. totalIssued: Total issued balance in Drip, totalCirculating: Total circulating balance in Drip, totalStaking: Total staking balance in Drip, totalCollateral: Total collateral balance in Drip, nullAddressBalance: Zero address's balance in Drip, twoYearUnlockBalance: Two year unlock address's balance in Drip, fourYearUnlockBalance: Four year unlock address's balance in Drip.
StatisticsApistatisticsTokenHolderGetGET /statistics/token/holderGet statistics of holder count for token transfer by daily.
StatisticsApistatisticsTokenTransferGetGET /statistics/token/transferGet statistics of token transfer by daily.
StatisticsApistatisticsTokenUniqueParticipantGetGET /statistics/token/unique/participantGet statistics of unique participant count for token transfer by daily.
StatisticsApistatisticsTokenUniqueReceiverGetGET /statistics/token/unique/receiverGet statistics of unique receiver count for token transfer by daily.
StatisticsApistatisticsTokenUniqueSenderGetGET /statistics/token/unique/senderGet statistics of unique sender count for token transfer by daily.
StatisticsApistatisticsTopCfxReceiverGetGET /statistics/top/cfx/receiverGet statistics of cfx receiver for top 10.
StatisticsApistatisticsTopCfxSenderGetGET /statistics/top/cfx/senderGet statistics of cfx sender for top 10.
StatisticsApistatisticsTopGasUsedGetGET /statistics/top/gas/usedGet statistics of gas used for top 10.
StatisticsApistatisticsTopMinerGetGET /statistics/top/minerGet statistics of miner for top 10.
StatisticsApistatisticsTopTokenParticipantGetGET /statistics/top/token/participantGet statistics of token participant for top 10.
StatisticsApistatisticsTopTokenReceiverGetGET /statistics/top/token/receiverGet statistics of token receiver for top 10.
StatisticsApistatisticsTopTokenSenderGetGET /statistics/top/token/senderGet statistics of token sender for top 10.
StatisticsApistatisticsTopTokenTransferGetGET /statistics/top/token/transferGet statistics of token transfer for top 10.
StatisticsApistatisticsTopTransactionReceiverGetGET /statistics/top/transaction/receiverGet statistics of transaction receiver for top 10.
StatisticsApistatisticsTopTransactionSenderGetGET /statistics/top/transaction/senderGet statistics of transaction sender for top 10.
StatisticsApistatisticsTpsGetGET /statistics/tpsGet statistics of tps within ${limit} ${intervalType}. When intervalType is min, the maximum interval between minTimestamp and maxTimestamp is 60 minutes
StatisticsApistatisticsTransactionGetGET /statistics/transactionGet statistics of transaction account by daily.
TokensApiapimoduleaccountactiontokenbalanceGetGET /api?module=account&action=tokenbalanceGet ERC20-Token Account Balance for TokenContractAddress
TokensApiapimoduleaccountactiontokenbalancehistoryGetGET /api?module=account&action=tokenbalancehistoryGet Historical ERC20-Token Account Balance for TokenContractAddress by BlockNo
TokensApiapimodulestatsactiontokensupplyGetGET /api?module=stats&action=tokensupplyGet ERC20-Token TotalSupply by ContractAddress
TokensApiapimodulestatsactiontokensupplyhistoryGetGET /api?module=stats&action=tokensupplyhistoryGet Historical ERC20-Token TotalSupply by ContractAddress & BlockNo
TokensApiapimoduletokenactiontokeninfoGetGET /api?module=token&action=tokeninfoGet Token Info by ContractAddress
TransactionsApiapimoduletransactionactiongetstatusGetGET /api?module=transaction&action=getstatusCheck Contract Execution Status
TransactionsApiapimoduletransactionactiongettxreceiptstatusGetGET /api?module=transaction&action=gettxreceiptstatusCheck Transaction Receipt Status
UtilsApiutilDecodeMethodGetGET /util/decode/methodDecode the data of the transaction, where the to address of the transaction is the verified contract
UtilsApiutilDecodeMethodRawGetGET /util/decode/method/rawDecode the data of the raw transaction, where the to address of the transaction is the verified contract

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.