Search
Preparing search index...
The search index is not available
@pyropets/pyrolib
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@pyropets/pyrolib
RPCProvider
Class RPCProvider
Hierarchy
RPCProvider
Implements
Provider
Index
Constructors
constructor
Properties
mrpc
network
sender
Methods
call
Contract
get
Tx
Receipts
send
To
Contract
Constructors
constructor
new RPCProvider
(
network
:
NetworkType
, mrpc
:
MetrixRPCNode
, sender
:
string
)
:
RPCProvider
Parameters
network:
NetworkType
mrpc:
MetrixRPCNode
sender:
string
Returns
RPCProvider
Properties
mrpc
mrpc
:
MetrixRPCNode
network
network
:
NetworkType
sender
sender
:
undefined
|
string
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
>
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
[]
, changeToSender
?:
undefined
|
boolean
)
:
Promise
<
any
>
Parameters
contract:
string
method:
string
data:
string
[]
value:
string
= '0'
gasLimit:
number
= 250000
gasPrice:
number
= 5000
abi:
any
[]
changeToSender:
undefined
|
boolean
= true
Returns
Promise
<
any
>
Exports
RPCProvider
constructor
mrpc
network
sender
call
Contract
get
Tx
Receipts
send
To
Contract
Generated using
TypeDoc