Method stx_callContract
params
contract
:string.string
address with contract name suffix, Stacks c32-encodedfunctionName
:string
functionArgs
:ClarityValue[]
, 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[]
, defaults to[]
postConditionMode?
:'allow' | 'deny'
attachment?
:string
hex-encodedsponsored?
:boolean
, defaults tofalse
where
ClarityValue
:string | object
hex-encoded or JSON representation
result
txid
:string
hex-encodedtransaction
:string
hex-encoded raw transaction