Interface ContractCallOptions

Contract function call transaction options

Hierarchy

Properties

anchorMode: "onChainOnly" | "offChainOnly" | "any" | AnchorMode

the transaction anchorMode, which specifies whether it should be included in an anchor block or a microblock

api?: ApiOpts

the node/API used for estimating fee & nonce (using the api.fetchFn

contractAddress: string

the Stacks address of the contract

contractName: string

transaction fee in microstacks

functionArgs: ClarityValue[]
functionName: string
network?: StacksNetwork | "mainnet" | "testnet" | "devnet" | "mocknet"

the Stacks blockchain network that will ultimately be used to broadcast this transaction

nonce?: IntegerType

the transaction nonce, which must be increased monotonically with each new transaction

postConditionMode?: PostConditionMode

the post condition mode, specifying whether or not post-conditions must fully cover all transfered assets

postConditions?: PostCondition[]

a list of post conditions to add to the transaction

sponsored?: boolean

set to true if another account is sponsoring the transaction (covering the transaction fee)

validateWithAbi?: boolean | ClarityAbi

set to true to validate that the supplied function args match those specified in the published contract

Generated using TypeDoc