FULL NAME
SUBJECT
Customer Support
Customer Support
Business / Sales
Partnership
Feedback
Demo Request
Other
TEXT MESSAGE
0/300
⚡ We welcome businesses to test our enterprise-grade service
Method: POST /wallet/triggerconstantcontract
Method not allowed
Invoke the readonly function (modified by the view or pure modifier) of a contract for contract data query; or Invoke the non-readonly function of a contract for predicting whether the transaction can be successfully executed or estimating the energy consumption
TriggerConstantContract operation will not generate an on-chain transaction, nor will it change the status of the current node.
For estimating energy: use triggerconstantcontract to call the non-readonly method of the contract, and the energy_used field in the returned value is the energy consumption. Therefore, the fee_limit of the transaction can be set to energy_used x energy unit price.
owner_address
- string
Owner address that triggers the contract. If visible=true, use base58check format, otherwise use hex format. For constant call you can use the all-zero address.
contract_address
- string
Smart contract address. If visible=true, use base58check format, otherwise use hex format.
function_selector
- string
Function call, must not be left blank.
parameter
- string
Parameter encoding needs to be in accordance with the ABI rules, the rules are more complicated, users can use the ethers library to encode,For details, please refer to the document-Guide-Smart Contract-Best Practice-Parameter Encoding and Decoding.
visible
- string
Optional.Whehter the address is in base58 format.
curl --location --request POST 'https://trx.getblock.io/wallet/triggerconstantcontract' \ --header 'x-api-key: YOUR-API-KEY' \ --header 'Content-Type: application/json' \ --data-raw '{}'
{ "result": "null", "id": "getblock.io", "status_code": 405, "message": "Method not allowed" }
POST /wallet/validateaddress
GET /wallet/listexchanges
POST /wallet/getblock
POST /wallet/getblockbynum
POST /wallet/getblockbyid
POST /wallet/getblockbylatestnum
POST /wallet/getblockbylimitnext
POST /wallet/getnowblock
POST /wallet/gettransactionbyid
POST /wallet/gettransactioninfobyid
POST /wallet/gettransactioninfobyblocknum
GET /wallet/listnodes
GET /wallet/getchainparameters
GET /wallet/getenergyprices
GET /wallet/getbandwidthprices
GET /wallet/gettransactionlistfrompending
POST /wallet/gettransactionfrompending
GET /wallet/getpendingsize
GET /wallet/listproposals
POST /wallet/getproposalbyid
POST /wallet/getnextmaintenancetime
POST /wallet/createaccount
POST /wallet/getaccount
POST /wallet/updateaccount
POST /wallet/accountpermissionupdate
POST /wallet/getaccountresource
POST /wallet/getaccountnet
POST /wallet/freezebalance
POST /wallet/unfreezebalance
POST /wallet/getdelegatedresource
POST /wallet/getdelegatedresourceaccountindex
POST /wallet/getaccountbalance
GET /wallet/generateaddress
POST /wallet/createaddress
POST /wallet/getexchangebyid
POST /wallet/exchangecreate
POST /wallet/exchangeinject
POST /wallet/exchangewithdraw
POST /wallet/exchangetransaction
GET /wallet/getnodeinfo
POST /wallet/getblockbalance
POST /wallet/proposalcreate
POST /wallet/proposalapprove
POST /wallet/proposaldelete
POST /wallet/getcontract
POST /wallet/getcontractinfo
POST /wallet/triggersmartcontract
POST /wallet/triggerconstantcontract
POST /wallet/deploycontract
POST /wallet/updatesetting
POST /wallet/updateenergylimit
POST /wallet/clearabi
GET /wallet/getspendingkey
POST /wallet/getexpandedspendingkey
POST /wallet/getakfromask
POST /wallet/getnkfromnsk
POST /wallet/getincomingviewingkey
GET /wallet/getdiversifier
POST /wallet/getzenpaymentaddress
GET /wallet/getnewshieldedaddress
POST /wallet/createshieldedcontractparameters
POST /wallet/createspendauthsig
POST /wallet/gettriggerinputforshieldedtrc20contract
POST /wallet/scanshieldedtrc20notesby
POST /wallet/scanshieldedtrc20notesbyovk
POST /wallet/isshieldedtrc20contractnotespent
POST /walletsolidity/getaccount
GET /walletsolidity/getnowblock
POST /walletsolidity/getblockbylatestnum
POST /walletsolidity/getblockbynum
POST /walletsolidity/gettransactionbyid
POST /wallet/gettransactionsign
POST /wallet/broadcasttransaction
POST /wallet/broadcasthex
POST /wallet/easytransfer
POST /wallet/easytransferbyprivate
POST /wallet/createtransaction
POST /wallet/getassetissuebyaccount
POST /wallet/getassetissuebyid
GET /wallet/getassetissuelist
POST /wallet/getpaginatedassetissuelist
POST /wallet/transferasset
POST /wallet/createassetissue
POST /wallet/participateassetissue
POST /wallet/unfreezeasset
POST /wallet/updateasset
POST /wallet/easytransferasset
POST /wallet/easytransferassetbyprivate
GET /wallet/listwitnesses
POST /wallet/createwitness
POST /wallet/updatewitness
POST /wallet/getBrokerage
POST /wallet/updateBrokerage
POST /wallet/votewitnessaccount
POST /wallet/getReward
POST /wallet/withdrawbalance
Nodes
Shared Nodes Dedicated Nodes Node Cluster Tracker Pricing Blockchain Development Documentation SLAPartnerships
Media KitNodes
Shared Nodes Dedicated Nodes Node Cluster Tracker Pricing Blockchain Development Documentation SLAPartnerships
Media KitNodes
Shared Nodes Dedicated Nodes Node Cluster Tracker Pricing Blockchain Development Documentation SLAPartnerships
Media KitPartnerships
Media KitFeel Free to Reach Out Anytime! 👋
FULL NAME
SUBJECT
Customer Support
Customer Support
Business / Sales
Partnership
Feedback
Demo Request
Other
TEXT MESSAGE
0/300
KakaoTalk