Skip to main content

TriggerConstantContract gRPC Method

Allows you to trigger constant contract

Updated on
Jul 07, 2026

Parameters

from
string
REQUIRED

The caller's account address

contractAddress
string
REQUIRED

The address of the smart contract to call

method
string
REQUIRED

The name of the constant method to call on the contract

jsonString
string
REQUIRED

The parameters for the contract call in JSON format

Returns

transaction
object

The transaction object that will be sent to the network

raw_data
object

The raw transaction data

ref_block_bytes
string

The bytes of the previous block hash

ref_block_num
integer

The reference block number

ref_block_hash
string

The hash of the previous block

expiration
integer

The expiration time of the transaction

auths
array

Authorization information

data
string

Additional data associated with the transaction (not used)

contract
array

The details of the smart contracts involved in the transaction

type
string

The type of smart contract (enum: Transaction_Contract_ContractType)

parameter
object

The parameters of the smart contract function being called

value
string

The actual data of the contract

type_url
string

The type of data being represented by the parameter

provider
string

The provider of the contract

ContractName
string

The name of the contract

Permission_id
integer

The permission ID for the contract

scripts
string

Script data associated with the transaction (not used)

timestamp
integer

The timestamp of the transaction

fee_limit
integer

The maximum fee limit for the transaction

signature
array

The signatures associated with the transaction

ret
array

The results of the transaction execution

fee
integer

The fee paid for the transaction

ret
string

The result code of the transaction (enum: Transaction_ResultCode)

contractRet
string

The contract result of the transaction (enum: Transaction_ResultContractResult)

assetIssueID
string

The ID of the asset issued

withdraw_amount
integer

The amount withdrawn (if applicable)

unfreeze_amount
integer

The amount unfrozen (if applicable)

exchange_received_amount
integer

The amount received in exchange operation

exchange_inject_another_amount
integer

The amount injected in exchange operation

exchange_withdraw_another_amount
integer

The amount withdrawn in exchange operation

exchange_id
integer

The exchange ID (if applicable)

shielded_transaction_fee
integer

The fee for shielded transactions

orderId
string

The order ID (if applicable)

orderDetails
array

Details of market orders

makerOrderId
string

The ID of the maker order

takerOrderId
string

The ID of the taker order

fillSellQuantity
integer

The quantity filled on the sell side

fillBuyQuantity
integer

The quantity filled on the buy side

withdraw_expire_amount
integer

The expired withdrawal amount

cancelUnfreezeV2Amount
object

Mapping of canceled unfreeze V2 amounts

txid
string

The transaction ID (sha256 hash of transaction.rowdata)

constant_result
array

Results of constant function calls

result
object

The result of creating the transaction

result
boolean

Whether the transaction was created successfully

code
string

The result code

message
string

The result message

energy_used
integer

The amount of energy used

logs
array

The logs generated during transaction execution

address
string

The address that generated the log

topics
array

The topics of the log

data
string

The data contained in the log

internal_transactions
array

Internal transactions triggered by this transaction

hash
string

The hash of the internal transaction

caller_address
string

The address of the caller

transferTo_address
string

The address of the recipient

callValueInfo
array

Information about the call value

callValue
integer

The amount of TRX transferred

tokenId
string

The ID of the token transferred

note
string

Additional notes about the internal transaction

rejected
boolean

Whether the internal transaction was rejected

extra
string

Extra information about the internal transaction

energy_penalty
integer

The energy penalty incurred

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free