Creates a challenge for executing a contract transaction.
Represents the input parameters for creating a new contract execution transaction.
The contract ABI function signature or callData
field is required for interacting with the smart contract. The ABI function signature cannot be used simultaneously with callData
. e.g. Burn(uint256).
The contract ABI function signature parameters for executing the contract interaction. Supported parameter types include string, integer, boolean, and array. These parameters should be used exclusively with the abiFunctionSignature and cannot be used with callData
.
Unique system-generated identifier for the user.
The amount of native token that will be sent to the contract abi execution. Optional field for payable api only, if not provided, no native token will be sent.
The blockchain address of the contract to be executed.
Represents the configuration for setting fees. It can be either FeeLevelInput, GasInput, or FeeInput.
The maximum gas units for the transaction, required if feeLevel isn't provided. Use the Estimate Fee methods for this limit's estimation.
The maximum price per gas unit (see gasLimit), in gwei. Requires priorityFee, and gasLimit, but incompatible with feeLevel or gasPrice. Use the Estimate Fee methods to get this fee's estimates.
Requires maxFee, and gasLimit but incompatible with feeLevel or gasPrice. Use the Estimate Fee methods for fee estimates.
The maximum gas units for the transaction, required if feeLevel is not provided. Use the Estimate Fee methods for this limit's estimation.
For EIP-1559 supported blockchains, it's the max gas price per gas unit (see gasLimit), in gwei. Requires gasLimit and incompatible with feeLevel, priorityFee, or maxFee. Use the Estimate Fee methods for fee estimates.
A dynamic blockchain fee level setting (LOW
, MEDIUM
, or HIGH
) that will be used to pay gas for the transaction. Calculated based on network traffic, supply of validators, and demand for transaction verification. Cannot be used with gasPrice
, priorityFee
, or maxFee
. Estimates for each fee level can be obtained through the POST /transactions/transfer/estimateFee
API.
Optional reference or description used to identify the transaction.
Unique system generated identifier of the wallet. Required when source Address and blockchain is not provided. Mutually exclusive. For contract deploys this wallet ID will be used as the source.
The optional idempotency key. An idempotency key is a unique identifier used to identify and handle duplicate requests in order to ensure idempotent behavior, where multiple identical requests have the same effect as a single request.
We will generate one if you do not provide it.
The contract ABI function signature or callData
field is required for interacting with the smart contract. The ABI function signature cannot be used simultaneously with callData
. e.g. Burn(uint256).
The contract ABI function signature parameters for executing the contract interaction. Supported parameter types include string, integer, boolean, and array. These parameters should be used exclusively with the abiFunctionSignature and cannot be used with callData
.
The JSON Web Token (JWT) representing the user.
The amount of native token that will be sent to the contract abi execution. Optional field for payable api only, if not provided, no native token will be sent.
The blockchain address of the contract to be executed.
Represents the configuration for setting fees. It can be either FeeLevelInput, GasInput, or FeeInput.
The maximum gas units for the transaction, required if feeLevel isn't provided. Use the Estimate Fee methods for this limit's estimation.
The maximum price per gas unit (see gasLimit), in gwei. Requires priorityFee, and gasLimit, but incompatible with feeLevel or gasPrice. Use the Estimate Fee methods to get this fee's estimates.
Requires maxFee, and gasLimit but incompatible with feeLevel or gasPrice. Use the Estimate Fee methods for fee estimates.
The maximum gas units for the transaction, required if feeLevel is not provided. Use the Estimate Fee methods for this limit's estimation.
For EIP-1559 supported blockchains, it's the max gas price per gas unit (see gasLimit), in gwei. Requires gasLimit and incompatible with feeLevel, priorityFee, or maxFee. Use the Estimate Fee methods for fee estimates.
A dynamic blockchain fee level setting (LOW
, MEDIUM
, or HIGH
) that will be used to pay gas for the transaction. Calculated based on network traffic, supply of validators, and demand for transaction verification. Cannot be used with gasPrice
, priorityFee
, or maxFee
. Estimates for each fee level can be obtained through the POST /transactions/transfer/estimateFee
API.
Optional reference or description used to identify the transaction.
Unique system generated identifier of the wallet. Required when source Address and blockchain is not provided. Mutually exclusive. For contract deploys this wallet ID will be used as the source.
The optional idempotency key. An idempotency key is a unique identifier used to identify and handle duplicate requests in order to ensure idempotent behavior, where multiple identical requests have the same effect as a single request.
We will generate one if you do not provide it.
The raw transaction data, must be an even-length hexadecimal string with the 0x
prefix, to be executed. It is important to note that the usage of callData
is mutually exclusive with the abiFunctionSignature
and abiParameters
. Therefore, callData
cannot be utilized simultaneously with either abiFunctionSignature
or abiParameters
.
Unique system-generated identifier for the user.
The amount of native token that will be sent to the contract abi execution. Optional field for payable api only, if not provided, no native token will be sent.
The blockchain address of the contract to be executed.
Represents the configuration for setting fees. It can be either FeeLevelInput, GasInput, or FeeInput.
The maximum gas units for the transaction, required if feeLevel isn't provided. Use the Estimate Fee methods for this limit's estimation.
The maximum price per gas unit (see gasLimit), in gwei. Requires priorityFee, and gasLimit, but incompatible with feeLevel or gasPrice. Use the Estimate Fee methods to get this fee's estimates.
Requires maxFee, and gasLimit but incompatible with feeLevel or gasPrice. Use the Estimate Fee methods for fee estimates.
The maximum gas units for the transaction, required if feeLevel is not provided. Use the Estimate Fee methods for this limit's estimation.
For EIP-1559 supported blockchains, it's the max gas price per gas unit (see gasLimit), in gwei. Requires gasLimit and incompatible with feeLevel, priorityFee, or maxFee. Use the Estimate Fee methods for fee estimates.
A dynamic blockchain fee level setting (LOW
, MEDIUM
, or HIGH
) that will be used to pay gas for the transaction. Calculated based on network traffic, supply of validators, and demand for transaction verification. Cannot be used with gasPrice
, priorityFee
, or maxFee
. Estimates for each fee level can be obtained through the POST /transactions/transfer/estimateFee
API.
Optional reference or description used to identify the transaction.
Unique system generated identifier of the wallet. Required when source Address and blockchain is not provided. Mutually exclusive. For contract deploys this wallet ID will be used as the source.
The optional idempotency key. An idempotency key is a unique identifier used to identify and handle duplicate requests in order to ensure idempotent behavior, where multiple identical requests have the same effect as a single request.
We will generate one if you do not provide it.
The raw transaction data, must be an even-length hexadecimal string with the 0x
prefix, to be executed. It is important to note that the usage of callData
is mutually exclusive with the abiFunctionSignature
and abiParameters
. Therefore, callData
cannot be utilized simultaneously with either abiFunctionSignature
or abiParameters
.
The JSON Web Token (JWT) representing the user.
The amount of native token that will be sent to the contract abi execution. Optional field for payable api only, if not provided, no native token will be sent.
The blockchain address of the contract to be executed.
Represents the configuration for setting fees. It can be either FeeLevelInput, GasInput, or FeeInput.
The maximum gas units for the transaction, required if feeLevel isn't provided. Use the Estimate Fee methods for this limit's estimation.
The maximum price per gas unit (see gasLimit), in gwei. Requires priorityFee, and gasLimit, but incompatible with feeLevel or gasPrice. Use the Estimate Fee methods to get this fee's estimates.
Requires maxFee, and gasLimit but incompatible with feeLevel or gasPrice. Use the Estimate Fee methods for fee estimates.
The maximum gas units for the transaction, required if feeLevel is not provided. Use the Estimate Fee methods for this limit's estimation.
For EIP-1559 supported blockchains, it's the max gas price per gas unit (see gasLimit), in gwei. Requires gasLimit and incompatible with feeLevel, priorityFee, or maxFee. Use the Estimate Fee methods for fee estimates.
A dynamic blockchain fee level setting (LOW
, MEDIUM
, or HIGH
) that will be used to pay gas for the transaction. Calculated based on network traffic, supply of validators, and demand for transaction verification. Cannot be used with gasPrice
, priorityFee
, or maxFee
. Estimates for each fee level can be obtained through the POST /transactions/transfer/estimateFee
API.
Optional reference or description used to identify the transaction.
Unique system generated identifier of the wallet. Required when source Address and blockchain is not provided. Mutually exclusive. For contract deploys this wallet ID will be used as the source.
The optional idempotency key. An idempotency key is a unique identifier used to identify and handle duplicate requests in order to ensure idempotent behavior, where multiple identical requests have the same effect as a single request.
We will generate one if you do not provide it.
1const response = await client.createUserTransactionContractExecutionChallenge({
2 userToken: "dummy-user-token",
3 abiFunctionSignature: "functionSig",
4 abiParameters: ["param1"],
5 contractAddress: "contract-id",
6 walletId: "wallet-id",
7 fee: {
8 type: "level",
9 config: {
10 feeLevel: "HIGH",
11 },
12 },
13})
14console.log(response.data?.challengeId)