Polluxchain
    Polluxchain
    • Background
    • API key
      • Rate Limits
      • Security Settings
    • Full Node HTTP API
      • Address Utilities
        • ValidateAddress
      • Transactions
        • BroadcastTransaction
        • BroadcastHex
        • CreateTransaction
      • Accounts
        • CreateAccount
        • GetAccount
        • UpdateAccount
        • AccountPermissionUpdate
        • GetAccountBalance
      • Account Resources
        • GetAccountResource
        • GetAccountNet
        • FreezeBalance
        • UnfreezeBalanceV2
        • CancelAllUnfreezeV2
        • DelegateResource
        • UnDelegateResource
        • WithdrawExpireUnfreeze
        • GetAvailableUnfreezeCount
        • GetCanWithdrawUnfreezeAmount
        • GetCanDelegatedMaxSize
        • GetDelegatedResourceV2
        • GetDelegatedResourceAccountIndexV2
      • Query The Network
        • GetBlock
        • GetBlockByNum
        • GetBlockById
        • GetBlockByLatestNum
        • GetBlockByLimitNext
        • GetNowBlock
        • GetTransactionById
        • GetTransactionInfoById
        • GetTransactionInfoByBlockNum
        • ListNodes
        • GetNodeInfo
        • GetChainParameters
        • GetBlockBalance
        • GetEnergyPrices
        • GetBandwidthPrices
        • GetBurnTRX
        • GetApprovedList
      • Smart Contract
        • GetContract
        • GetContractInfo
        • TriggerSmartContract
        • TriggerConstantContract
        • DeployContract
        • UpdateSetting
        • UpdateEnergyLimit
        • ClearAbi
        • EstimateEnergy
      • Voting & SRs
        • ListWitnesses
        • CreateWitness
        • UpdateWitness
        • GetBrokerage
        • UpdateBrokerage
        • VoteWitnessAccount
        • GetReward
        • WithdrawBalance
        • GetNextMaintenanceTime
      • Proposals
        • ListProposals
        • GetProposalById
        • ProposalCreate
        • ProposalApprove
        • ProposalDelete
      • Pending pool
        • GetTransactionListFromPending
        • GetTransactionFromPending
        • GetPendingSize
    • Full Node Solidity HTTP API
      • Transactions
        • GetTransactionById
        • GetTransactionInfoById
        • GetTransactionInfoByBlockNum
        • GetTransactionCountByBlockNum
      • Blocks
        • GetBlock
        • GetNowBlock
        • GetBlockByNum
        • GetBlockById
        • GetBlockByLatestNum
        • GetBlockByLimitNext
      • Account Resources
        • GetAccount
        • GetDelegatedResource
        • GetDelegatedResourceAccountIndex
        • GetCanDelegatedMaxSize
        • GetCanWithdrawUnfreezeAmount
        • GetDelegatedResourceAccountIndexV2
        • GetAvailableUnfreezeCount
      • Node & Chain
        • GetNodeInfo
        • GetBurnPOX
      • Smart Contracts
        • TriggerConstantContract
        • EstimateEnergy
      • Voting & SRs
        • ListWitnesses
        • GetReward
        • GetBrokerage
    • Full Node JSON-RPC API
      • Overview
      • buildTransaction
      • eth
        • eth_accounts
        • eth_blockNumber
        • eth_call
        • eth_chainId
        • eth_coinbase
        • eth_estimateGas
        • eth_gasPrice
        • eth_getBalance
        • eth_getBlockByHash
        • eth_getBlockByNumber
        • eth_getBlockTransactionCountByHash
        • eth_getBlockTransactionCountByNumber
        • eth_getCode
        • eth_getStorageAt
        • eth_getTransactionByBlockHashAndIndex
        • eth_getTransactionByBlockNumberAndIndex
        • eth_getTransactionByHash
        • eth_getTransactionReceipt
        • eth_getWork
        • eth_protocolVersion
        • eth_syncing
        • eth_newFilter
        • eth_newBlockFilter
        • eth_getFilterChanges
        • eth_getFilterLogs
        • eth_uninstallFilter
        • eth_getLogs
      • net
        • net_listening
        • net_peerCount
        • net_version
      • web3
        • web3_clientVersion
        • web3_sha3
    • PolluxWeb
      • address
      • createAccount
      • createRandom
      • fromAscii
      • fromDecimal
      • fromMnemonic
      • fromUtf8
      • getEventByTransactionID
      • getEventResult
      • isAddress
      • isConnected
      • setHeader
      • setDefaultBlock
      • setPrivateKey
      • setAddress
      • sha3
      • toAscii
      • toBigNumber
      • toDecimal
      • toHex
      • toRAM
      • toUtf8
      • BigNumber
      • polluxweb.trx
        • getAccount
        • getAccountResources
        • getApprovedList
        • getAvailableUnfreezeCount
        • getBalance
        • getBandwidth
        • getBlock
        • getBlockByHash
        • getBlockByNumber
        • getBlockRange
        • getBlockTransactionCount
        • getBrokerage
        • getCanDelegatedMaxSize
        • getCanWithdrawUnfreezeAmount
        • getChainParameters
        • getConfirmedTransaction
        • getContract
        • getCurrentBlock
        • getDelegatedResourceV2
        • getDelegatedResourceAccountIndexV2
        • getExchangeByID
        • getNodeInfo
        • getReward
        • getTokenByID
        • getTokenFromID
        • getTokenListByName
        • getTokensIssuedByAddress
        • getTransaction
        • getTransactionFromBlock
        • getTransactionInfo
        • getUnconfirmedBalance
        • getUnconfirmedBrokerage
        • getUnconfirmedReward
        • listExchanges
        • listExchangesPaginated
        • listNodes
        • listProposals
        • listSuperRepresentatives
        • listTokens
        • sendRawTransaction
        • sendHexTransaction
        • sendToken
        • sendTransaction
        • sign
        • signMessageV1
        • signMessageV2
        • timeUntilNextVoteCycle
        • multiSign
        • verifyMessage
        • verifyMessageV2
        • _signTypedData
        • verifyTypedData
      • polluxweb.transactionBuilder
        • addUpdateData
        • applyForSR
        • cancelUnfreezeBalanceV2
        • createAccount
        • createAsset
        • createProposal
        • createSmartContract
        • createToken
        • delegateResource
        • deleteProposal
        • estimateEnergy
        • extendExpiration
        • freezeBalance
        • freezeBalanceV2
        • injectExchangeTokens
        • purchaseAsset
        • purchaseToken
        • sendAsset
        • sendToken
        • sendTrx
        • tradeExchangeTokens
        • triggerConfirmedConstantContract
        • triggerConstantContract
        • triggerSmartContract
        • undelegateResource
        • unfreezeBalance
        • unfreezeBalanceV2
        • updateSetting
        • updateAccountPermissions
        • updateAsset
        • updateBrokerage
        • updateEnergyLimit
        • updateToken
        • vote
        • voteProposal
        • withdrawBlockRewards
        • withdrawExchangeTokens
        • withdrawExpireUnfreeze
      • poxweb.contract
        • polluxweb.contract.new
        • polluxweb.contract()
        • method.call()
        • method.send()
      • polluxweb.utils
        • transaction.txJsonToPb
        • transaction.txPbToTxID
        • message.hashMessage
    • Pollux CLI
      • Pollux CLI

    Full Node HTTP API

    Overview#

    The FullNode HTTP API is the primary service offered by Pollux nodes, enabling users to interact with the blockchain by sending transactions. The process typically involves the following three steps:
    1.
    Create a Transaction: Use system contract APIs to generate the transaction.
    2.
    Sign the Transaction: Sign the transaction using the SDK.
    3.
    Broadcast the Transaction: Send the transaction to the network using the BroadcastTransaction endpoint.
    To differentiate between HEX and Base58check addresses, the visible parameter is introduced. Additionally, the Permission_id parameter is used to specify the type of permission for multi-signature transactions.
    Note: When using the HTTP API, both GET and POST methods are supported for data requests. If using the POST method, parameters must be passed in the HTTP message body in JSON format.
    📘Note
    Although Pollux has mitigated XSS risks by setting the Content-Type of HTTP APIs to application/json, a few APIs lack input validation. To better protect user data security, we strongly recommend encoding any data obtained from the APIs before displaying it in any UI, especially when the parameter visible = true is enabled by default.
    A typical XSS protection method involves encoding all data received from the APIs for use in HTML. Use methods such as encodeURIComponent() or escape() to encode the data, which will convert special characters into their HTML entities and prevent them from being interpreted as HTML code by the browser.
    Ensure proper implementation of XSS protection for all data from the APIs to guarantee user data security. For more information about XSS protection, it is recommended to refer to the following resources: OWASP XSS Prevention Cheat Sheet.
    Previous
    Security Settings
    Next
    Address Utilities
    Built with