Search
Preparing search index...
The search index is not available
@pyropets/pyrolib
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@pyropets/pyrolib
APIProvider
Class APIProvider
Hierarchy
APIProvider
Implements
Provider
Index
Constructors
constructor
Properties
network
Methods
call
Contract
get
Transaction
Receipt
get
Tx
Receipts
send
To
Contract
Constructors
constructor
new APIProvider
(
network
:
NetworkType
)
:
APIProvider
Parameters
network:
NetworkType
Returns
APIProvider
Properties
network
network
:
NetworkType
Methods
call
Contract
call
Contract
(
contract
:
string
, method
:
string
, data
:
string
[]
, abi
:
any
[]
)
:
Promise
<
undefined
|
Result
>
Parameters
contract:
string
method:
string
data:
string
[]
abi:
any
[]
Returns
Promise
<
undefined
|
Result
>
Private
get
Transaction
Receipt
get
Transaction
Receipt
(
txid
:
string
)
:
Promise
<
undefined
|
TransactionReceipt
>
Parameters
txid:
string
Returns
Promise
<
undefined
|
TransactionReceipt
>
get
Tx
Receipts
get
Tx
Receipts
(
tx
:
{
hash160
:
string
;
sender
:
string
;
txid
:
string
}
, abi
:
any
[]
, contract
?:
string
)
:
Promise
<
TransactionReceipt
[]
>
Parameters
tx:
{
hash160
:
string
;
sender
:
string
;
txid
:
string
}
hash160
:
string
sender
:
string
txid
:
string
abi:
any
[]
Optional
contract:
string
Returns
Promise
<
TransactionReceipt
[]
>
send
To
Contract
send
To
Contract
(
contract
:
string
, method
:
string
, data
:
string
[]
, value
:
string
, gasLimit
:
number
, gasPrice
:
number
, abi
:
any
[]
)
:
Promise
<
any
>
Parameters
contract:
string
method:
string
data:
string
[]
value:
string
gasLimit:
number
gasPrice:
number
abi:
any
[]
Returns
Promise
<
any
>
Exports
APIProvider
constructor
network
call
Contract
get
Transaction
Receipt
get
Tx
Receipts
send
To
Contract
Generated using
TypeDoc