Search
Preparing search index...
The search index is not available
iotex-antenna
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"contract/contract"
Contract
Class Contract
Hierarchy
Contract
Index
Constructors
constructor
Properties
abi
address
methods
options
provider
Methods
decode
Method
Result
deploy
encode
Method
getABI
get
Address
pure
Encode
Method
set
Provider
Constructors
constructor
new
Contract
(
jsonInterface
?:
Array
<
ABIDefinition
>
, address
?:
undefined
|
string
, options
?:
Options
)
:
Contract
Parameters
Optional
jsonInterface:
Array
<
ABIDefinition
>
Optional
address:
undefined
|
string
Optional
options:
Options
Returns
Contract
Properties
Private
Optional
abi
abi
:
AbiByFunc
Private
Optional
address
address
:
undefined
|
string
methods
methods
:
object
Type declaration
[
funcName:
string
]:
Function
Private
Optional
options
options
:
Options
Optional
provider
provider
:
IRpcMethod
Methods
decode
Method
Result
decode
Method
Result
(
method
:
string
, result
:
string
)
:
any
|
Array
<
any
>
Parameters
method:
string
result:
string
Returns
any
|
Array
<
any
>
deploy
deploy
(
account
:
IAccount
, inputs
:
Array
<
any
>
, amount
?:
undefined
|
string
, gasLimit
?:
string
|
undefined
, gasPrice
?:
undefined
|
string
)
:
Promise
<
string
>
Parameters
account:
IAccount
inputs:
Array
<
any
>
Optional
amount:
undefined
|
string
Optional
gasLimit:
string
|
undefined
Optional
gasPrice:
undefined
|
string
Returns
Promise
<
string
>
encode
Method
encode
Method
(
amount
:
string
, method
:
string
, input
:
object
, gasLimit
?:
string
|
undefined
, gasPrice
?:
undefined
|
string
)
:
Execution
Parameters
amount:
string
method:
string
input:
object
[
key:
string
]:
any
Optional
gasLimit:
string
|
undefined
Optional
gasPrice:
undefined
|
string
Returns
Execution
getABI
getABI
(
)
:
AbiByFunc
|
undefined
Returns
AbiByFunc
|
undefined
get
Address
get
Address
(
)
:
string
|
undefined
Returns
string
|
undefined
pure
Encode
Method
pure
Encode
Method
(
amount
:
string
, method
:
string
,
...
args
:
Array
<
any
>
)
:
Execution
Parameters
amount:
string
method:
string
Rest
...
args:
Array
<
any
>
Returns
Execution
set
Provider
set
Provider
(
provider
:
IRpcMethod
)
:
void
Parameters
provider:
IRpcMethod
Returns
void
Globals
"account/account"
"account/accounts"
"account/utils"
"account/wallet"
"action/envelop"
"action/method"
"action/types"
"antenna"
"contract/abi"
"contract/abi-
to-
byte"
"contract/contract"
"crypto/address"
"crypto/crypto"
"crypto/hash"
"index"
"iotx"
"plugin/ws"
"rpc-
method/browser-
rpc-
method"
"rpc-
method/node-
rpc-
method"
"rpc-
method/root-
certs"
"rpc-
method/types"
"token/abi"
"token/xrc20"
"types"
Contract
constructor
abi
address
methods
options
provider
decode
Method
Result
deploy
encode
Method
getABI
get
Address
pure
Encode
Method
set
Provider
Method
Execute
Parameter
Options
Generated using
TypeDoc