Method stx_callContract
Calls a Stacks smart contract (Clarity) function.
params
contract
:string.string
address with contract name suffix, Stacks c32-encodedfunctionName
:string
functionArgs
:ClarityValue[] | string[]
JSON representation or hex serialized string, defaults to[]
address?
:string
address, Stacks c32-encoded, defaults to wallets current addressnetwork?
:'mainnet' | 'testnet' | 'devnet' | 'regtest'
fee?
:number | string
BigInt constructor compatible valuenonce?
:number | string
BigInt constructor compatible valuepostConditions?
:PostCondition[] | string[]
JSON representation or hex serialized string, defaults to[]
postConditionMode?
:'allow' | 'deny'
sponsored?
:boolean
, defaults tofalse
broadcast?
:boolean
, defaults totrue
result
txid
:string
hex-encodedtransaction
:string
hex-encoded raw transaction
Last updated on