Request API
Stacks
.stx_callContract

Method stx_callContract

params

  • contract: string.string address with contract name suffix, Stacks c32-encoded
  • functionName: string
  • functionArgs: ClarityValue[], defaults to []
  • address?: string address, Stacks c32-encoded, defaults to wallets current address
  • network?: 'mainnet' | 'testnet' | 'devnet' | 'regtest'
  • fee?: number | string BigInt constructor compatible value
  • nonce?: number | string BigInt constructor compatible value
  • postConditions?: PostCondition[], defaults to []
  • postConditionMode?: 'allow' | 'deny'
  • attachment?: string hex-encoded
  • sponsored?: boolean, defaults to false

where

  • ClarityValue: string | object hex-encoded or JSON representation

result

  • txid: string hex-encoded
  • transaction: string hex-encoded raw transaction