@multiversx/sdk-core - v14.0.1
Preparing search index...
SmartContractController
Class SmartContractController
Hierarchy (
View Summary
)
BaseController
SmartContractController
Index
Constructors
constructor
Methods
add
Extra
Gas
Limit
If
Required
await
Completed
Deploy
await
Completed
Execute
create
Query
create
Transaction
For
Deploy
create
Transaction
For
Execute
create
Transaction
For
Upgrade
parse
Deploy
parse
Execute
parse
Query
Response
query
run
Query
set
Transaction
Gas
Options
Constructors
constructor
new
SmartContractController
(
options
:
{
abi
?:
Abi
;
chainID
:
string
;
networkProvider
:
INetworkProvider
;
}
,
)
:
SmartContractController
Parameters
options
:
{
abi
?:
Abi
;
chainID
:
string
;
networkProvider
:
INetworkProvider
}
Returns
SmartContractController
Methods
Protected
add
Extra
Gas
Limit
If
Required
addExtraGasLimitIfRequired
(
transaction
:
Transaction
)
:
void
Parameters
transaction
:
Transaction
Returns
void
await
Completed
Deploy
awaitCompletedDeploy
(
txHash
:
string
)
:
Promise
<
SmartContractDeployOutcome
>
Parameters
txHash
:
string
Returns
Promise
<
SmartContractDeployOutcome
>
await
Completed
Execute
awaitCompletedExecute
(
txHash
:
string
)
:
Promise
<
ParsedSmartContractCallOutcome
>
Parameters
txHash
:
string
Returns
Promise
<
ParsedSmartContractCallOutcome
>
create
Query
createQuery
(
options
:
SmartContractQueryInput
)
:
SmartContractQuery
Parameters
options
:
SmartContractQueryInput
Returns
SmartContractQuery
create
Transaction
For
Deploy
createTransactionForDeploy
(
sender
:
IAccount
,
nonce
:
bigint
,
options
:
ContractDeployInput
&
BaseControllerInput
,
)
:
Promise
<
Transaction
>
Parameters
sender
:
IAccount
nonce
:
bigint
options
:
ContractDeployInput
&
BaseControllerInput
Returns
Promise
<
Transaction
>
create
Transaction
For
Execute
createTransactionForExecute
(
sender
:
IAccount
,
nonce
:
bigint
,
options
:
ContractExecuteInput
&
BaseControllerInput
,
)
:
Promise
<
Transaction
>
Parameters
sender
:
IAccount
nonce
:
bigint
options
:
ContractExecuteInput
&
BaseControllerInput
Returns
Promise
<
Transaction
>
create
Transaction
For
Upgrade
createTransactionForUpgrade
(
sender
:
IAccount
,
nonce
:
bigint
,
options
:
ContractDeployInput
&
{
contract
:
Address
}
&
BaseControllerInput
,
)
:
Promise
<
Transaction
>
Parameters
sender
:
IAccount
nonce
:
bigint
options
:
ContractDeployInput
&
{
contract
:
Address
}
&
BaseControllerInput
Returns
Promise
<
Transaction
>
parse
Deploy
parseDeploy
(
transactionOnNetwork
:
TransactionOnNetwork
,
)
:
SmartContractDeployOutcome
Parameters
transactionOnNetwork
:
TransactionOnNetwork
Returns
SmartContractDeployOutcome
parse
Execute
parseExecute
(
transactionOnNetwork
:
TransactionOnNetwork
,
)
:
ParsedSmartContractCallOutcome
Parameters
transactionOnNetwork
:
TransactionOnNetwork
Returns
ParsedSmartContractCallOutcome
parse
Query
Response
parseQueryResponse
(
response
:
SmartContractQueryResponse
)
:
any
[]
Parameters
response
:
SmartContractQueryResponse
Returns
any
[]
query
query
(
options
:
SmartContractQueryInput
)
:
Promise
<
any
[]
>
Parameters
options
:
SmartContractQueryInput
Returns
Promise
<
any
[]
>
run
Query
runQuery
(
query
:
SmartContractQuery
)
:
Promise
<
SmartContractQueryResponse
>
Parameters
query
:
SmartContractQuery
Returns
Promise
<
SmartContractQueryResponse
>
Protected
set
Transaction
Gas
Options
setTransactionGasOptions
(
transaction
:
Transaction
,
options
:
{
gasLimit
?:
bigint
;
gasPrice
?:
bigint
}
,
)
:
void
Parameters
transaction
:
Transaction
options
:
{
gasLimit
?:
bigint
;
gasPrice
?:
bigint
}
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
add
Extra
Gas
Limit
If
Required
await
Completed
Deploy
await
Completed
Execute
create
Query
create
Transaction
For
Deploy
create
Transaction
For
Execute
create
Transaction
For
Upgrade
parse
Deploy
parse
Execute
parse
Query
Response
query
run
Query
set
Transaction
Gas
Options
@multiversx/sdk-core - v14.0.1
Loading...