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