Preparing search index...
The search index is not available
@metrixcoin/metrilib
@metrixcoin/metrilib
MetrixRPC
MetrixRPCNode
Class MetrixRPCNode
Hierarchy (
view full
)
MetrixRPC
MetrixRPCNode
Index
Constructors
constructor
Properties
auth
Header
url
Methods
backup
Wallet
call
Contract
call
Daemon
create
Contract
create
Raw
Transaction
decode
Raw
Transaction
encrypt
Wallet
estimate
Fee
estimate
Smart
Fee
from
Hex
Address
get
Account
Info
get
Address
Info
get
Addresses
By
Account
get
Addresses
By
Label
get
Balance
get
Best
Block
Hash
get
Block
get
Block
Count
get
Block
Hash
get
Blockchain
Info
get
Chain
Tips
get
Difficulty
get
Hex
Address
get
Invalid
get
Mining
Info
get
Network
Info
get
New
Address
get
Pool
Info
get
Raw
Transaction
get
Stake
Split
Threshold
get
Staking
Status
get
Transaction
get
Transaction
Receipt
get
Tx
Out
get
Unconfirmed
Balance
get
Wallet
Info
list
Contracts
list
Unspent
promise
Backup
Wallet
promise
Call
Contract
promise
Create
Contract
promise
Create
Raw
Transaction
promise
Decode
Raw
Transaction
promise
Encrypt
Wallet
promise
Estimate
Fee
promise
Estimate
Smart
Fee
promise
From
Hex
Address
promise
Get
Account
Info
promise
Get
Address
Info
promise
Get
Addresses
By
Account
promise
Get
Addresses
By
Label
promise
Get
Balance
promise
Get
Best
Block
Hash
promise
Get
Block
promise
Get
Block
Count
promise
Get
Block
Hash
promise
Get
Blockchain
Info
promise
Get
Chain
Tips
promise
Get
Difficulty
promise
Get
Hex
Address
promise
Get
Invalid
promise
Get
Mining
Info
promise
Get
Network
Info
promise
Get
New
Address
promise
Get
Pool
Info
promise
Get
Raw
Transaction
promise
Get
Stake
Split
Threshold
promise
Get
Staking
Status
promise
Get
Transaction
promise
Get
Transaction
Receipt
promise
Get
Tx
Out
promise
Get
Unconfirmed
Balance
promise
Get
Wallet
Info
promise
List
Contracts
promise
List
Unspent
promise
Search
Logs
promise
Send
Many
promise
Send
Raw
Transaction
promise
Send
To
Address
promise
Send
To
Contract
promise
Set
Account
promise
Set
Tx
Fee
promise
Sign
Message
promise
Sign
Raw
Transaction
promise
Stop
promise
Validate
Address
promise
Verify
Message
promise
Wallet
Lock
promise
Wallet
Passphrase
promise
Wallet
Passphrase
Change
search
Logs
send
Many
send
Raw
Transaction
send
To
Address
send
To
Contract
set
Account
set
Default
Account
set
Tx
Fee
sign
Message
sign
Raw
Transaction
stop
validate
Address
verify
Message
wallet
Lock
wallet
Passphrase
wallet
Passphrase
Change
is
Empty
is
String
Constructors
constructor
new
MetrixRPCNode
(
account
,
url
,
username
,
password
)
:
MetrixRPCNode
Parameters
account
:
null
|
string
url
:
string
username
:
string
password
:
string
Returns
MetrixRPCNode
Properties
Protected
auth
Header
auth
Header
:
string
= ''
Protected
url
url
:
string
= ''
Methods
backup
Wallet
backup
Wallet
(
target
,
callback
)
:
void
Parameters
target
:
string
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
call
Contract
call
Contract
(
contrtactAddress
,
data
,
senderAddress
,
gasLimit
,
fromBlock
,
callback
)
:
void
Parameters
contrtactAddress
:
string
data
:
string
senderAddress
:
string
gasLimit
:
undefined
|
string
fromBlock
:
undefined
|
number
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
Protected
call
Daemon
call
Daemon
(
method
,
paramsJsonStr
,
callback
)
:
void
Parameters
method
:
string
paramsJsonStr
:
string
callback
:
(
(
e
:
null
|
Error
,
resultObj
:
any
)
=>
any
)
(
e
,
resultObj
)
:
any
Parameters
e
:
null
|
Error
resultObj
:
any
Returns
any
Returns
void
create
Contract
create
Contract
(
bytecode
,
gasLimit
?
,
gasPrice
?
,
senderAddress
,
broadcast
?
,
changeToSender
?
,
callback
)
:
void
Parameters
bytecode
:
string
gasLimit
:
undefined
|
string
|
number
= 2500000
gasPrice
:
undefined
|
string
|
number
= 0.00005
senderAddress
:
string
broadcast
:
boolean
= true
changeToSender
:
boolean
= true
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
create
Raw
Transaction
create
Raw
Transaction
(
rawTxObj
,
callback
)
:
void
Parameters
rawTxObj
:
MetrixRawTx
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
decode
Raw
Transaction
decode
Raw
Transaction
(
transaction
,
callback
)
:
void
Parameters
transaction
:
string
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
encrypt
Wallet
encrypt
Wallet
(
passphrase
,
callback
)
:
void
Parameters
passphrase
:
string
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
estimate
Fee
estimate
Fee
(
blockcount
,
callback
)
:
void
Parameters
blockcount
:
number
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
estimate
Smart
Fee
estimate
Smart
Fee
(
conf_target
,
estimate_mode
,
callback
)
:
void
Parameters
conf_target
:
number
estimate_mode
:
undefined
|
string
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
from
Hex
Address
from
Hex
Address
(
hexAddress
,
callback
)
:
void
Parameters
hexAddress
:
string
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
get
Account
Info
get
Account
Info
(
address
,
callback
)
:
void
Parameters
address
:
string
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
get
Address
Info
get
Address
Info
(
address
,
callback
)
:
void
Parameters
address
:
string
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
get
Addresses
By
Account
get
Addresses
By
Account
(
paramOptionalAccount
,
callback
)
:
void
Parameters
paramOptionalAccount
:
null
|
string
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
get
Addresses
By
Label
get
Addresses
By
Label
(
paramOptionalAccount
,
callback
)
:
void
Parameters
paramOptionalAccount
:
null
|
string
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
get
Balance
get
Balance
(
paramOptionalAccount
,
callback
)
:
void
Parameters
paramOptionalAccount
:
null
|
string
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
get
Best
Block
Hash
get
Best
Block
Hash
(
callback
)
:
void
Parameters
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
get
Block
get
Block
(
hash
,
verbose
,
callback
)
:
void
Parameters
hash
:
string
verbose
:
0
|
1
|
2
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
get
Block
Count
get
Block
Count
(
callback
)
:
void
Parameters
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
get
Block
Hash
get
Block
Hash
(
height
,
callback
)
:
void
Parameters
height
:
number
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
get
Blockchain
Info
get
Blockchain
Info
(
callback
)
:
void
Parameters
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
get
Chain
Tips
get
Chain
Tips
(
callback
)
:
void
Parameters
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
get
Difficulty
get
Difficulty
(
callback
)
:
void
Parameters
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
get
Hex
Address
get
Hex
Address
(
metrixAddress
,
callback
)
:
void
Parameters
metrixAddress
:
string
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
get
Invalid
get
Invalid
(
callback
)
:
void
Parameters
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
get
Mining
Info
get
Mining
Info
(
callback
)
:
void
Parameters
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
get
Network
Info
get
Network
Info
(
callback
)
:
void
Parameters
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
get
New
Address
get
New
Address
(
paramOptionalAccount
,
callback
)
:
void
Parameters
paramOptionalAccount
:
null
|
string
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
get
Pool
Info
get
Pool
Info
(
callback
)
:
void
Parameters
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
get
Raw
Transaction
get
Raw
Transaction
(
txid
,
format
,
callback
)
:
void
Parameters
txid
:
string
format
:
null
|
boolean
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
get
Stake
Split
Threshold
get
Stake
Split
Threshold
(
callback
)
:
void
Parameters
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
get
Staking
Status
get
Staking
Status
(
callback
)
:
void
Parameters
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
get
Transaction
get
Transaction
(
txid
,
callback
)
:
void
Parameters
txid
:
string
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
get
Transaction
Receipt
get
Transaction
Receipt
(
txid
,
callback
)
:
void
Parameters
txid
:
string
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
get
Tx
Out
get
Tx
Out
(
txid
,
vout
,
callback
)
:
void
Parameters
txid
:
string
vout
:
number
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
get
Unconfirmed
Balance
get
Unconfirmed
Balance
(
callback
)
:
void
Parameters
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
get
Wallet
Info
get
Wallet
Info
(
callback
)
:
void
Parameters
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
list
Contracts
list
Contracts
(
start
?
,
maxDisplay
?
,
callback
)
:
void
Parameters
start
:
undefined
|
string
|
number
= 1
maxDisplay
:
undefined
|
string
|
number
= 20
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
list
Unspent
list
Unspent
(
minConf
,
maxConf
,
addressesArray
,
callback
)
:
void
Parameters
minConf
:
number
maxConf
:
number
addressesArray
:
string
[]
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
promise
Backup
Wallet
promise
Backup
Wallet
(
target
)
:
Promise
<
any
>
Parameters
target
:
string
Returns
Promise
<
any
>
promise
Call
Contract
promise
Call
Contract
(
contrtactAddress
,
data
,
senderAddress
,
gasLimit
?
,
fromBlock
?
)
:
Promise
<
any
>
Parameters
contrtactAddress
:
string
data
:
string
senderAddress
:
string
Optional
gasLimit
:
string
Optional
fromBlock
:
number
Returns
Promise
<
any
>
promise
Create
Contract
promise
Create
Contract
(
bytecode
,
gasLimit
,
gasPrice
,
senderAddress
,
broadcast
?
,
changeToSender
?
)
:
Promise
<
any
>
Parameters
bytecode
:
string
gasLimit
:
undefined
|
string
|
number
gasPrice
:
undefined
|
string
|
number
senderAddress
:
string
Optional
broadcast
:
boolean
Optional
changeToSender
:
boolean
Returns
Promise
<
any
>
promise
Create
Raw
Transaction
promise
Create
Raw
Transaction
(
rawTxObj
)
:
Promise
<
any
>
Parameters
rawTxObj
:
MetrixRawTx
Returns
Promise
<
any
>
promise
Decode
Raw
Transaction
promise
Decode
Raw
Transaction
(
transaction
)
:
Promise
<
any
>
Parameters
transaction
:
string
Returns
Promise
<
any
>
promise
Encrypt
Wallet
promise
Encrypt
Wallet
(
passphrase
)
:
Promise
<
any
>
Parameters
passphrase
:
string
Returns
Promise
<
any
>
promise
Estimate
Fee
promise
Estimate
Fee
(
blockcount
)
:
Promise
<
any
>
Parameters
blockcount
:
number
Returns
Promise
<
any
>
promise
Estimate
Smart
Fee
promise
Estimate
Smart
Fee
(
conf_target
,
estimate_mode
)
:
Promise
<
any
>
Parameters
conf_target
:
number
estimate_mode
:
undefined
|
string
Returns
Promise
<
any
>
promise
From
Hex
Address
promise
From
Hex
Address
(
hexAddress
)
:
Promise
<
any
>
Parameters
hexAddress
:
string
Returns
Promise
<
any
>
promise
Get
Account
Info
promise
Get
Account
Info
(
address
)
:
Promise
<
any
>
Parameters
address
:
string
Returns
Promise
<
any
>
promise
Get
Address
Info
promise
Get
Address
Info
(
address
)
:
Promise
<
any
>
Parameters
address
:
string
Returns
Promise
<
any
>
promise
Get
Addresses
By
Account
promise
Get
Addresses
By
Account
(
paramOptionalAccount
)
:
Promise
<
any
>
Parameters
paramOptionalAccount
:
null
|
string
Returns
Promise
<
any
>
promise
Get
Addresses
By
Label
promise
Get
Addresses
By
Label
(
paramOptionalAccount
)
:
Promise
<
any
>
Parameters
paramOptionalAccount
:
null
|
string
Returns
Promise
<
any
>
promise
Get
Balance
promise
Get
Balance
(
paramOptionalAccount
)
:
Promise
<
any
>
Parameters
paramOptionalAccount
:
null
|
string
Returns
Promise
<
any
>
promise
Get
Best
Block
Hash
promise
Get
Best
Block
Hash
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
promise
Get
Block
promise
Get
Block
(
hash
,
verbose
)
:
Promise
<
any
>
Parameters
hash
:
string
verbose
:
0
|
1
|
2
Returns
Promise
<
any
>
promise
Get
Block
Count
promise
Get
Block
Count
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
promise
Get
Block
Hash
promise
Get
Block
Hash
(
height
)
:
Promise
<
any
>
Parameters
height
:
number
Returns
Promise
<
any
>
promise
Get
Blockchain
Info
promise
Get
Blockchain
Info
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
promise
Get
Chain
Tips
promise
Get
Chain
Tips
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
promise
Get
Difficulty
promise
Get
Difficulty
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
promise
Get
Hex
Address
promise
Get
Hex
Address
(
metrixAddress
)
:
Promise
<
any
>
Parameters
metrixAddress
:
string
Returns
Promise
<
any
>
promise
Get
Invalid
promise
Get
Invalid
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
promise
Get
Mining
Info
promise
Get
Mining
Info
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
promise
Get
Network
Info
promise
Get
Network
Info
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
promise
Get
New
Address
promise
Get
New
Address
(
paramOptionalAccount
)
:
Promise
<
any
>
Parameters
paramOptionalAccount
:
null
|
string
Returns
Promise
<
any
>
promise
Get
Pool
Info
promise
Get
Pool
Info
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
promise
Get
Raw
Transaction
promise
Get
Raw
Transaction
(
txid
,
format
)
:
Promise
<
any
>
Parameters
txid
:
string
format
:
null
|
boolean
Returns
Promise
<
any
>
promise
Get
Stake
Split
Threshold
promise
Get
Stake
Split
Threshold
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
promise
Get
Staking
Status
promise
Get
Staking
Status
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
promise
Get
Transaction
promise
Get
Transaction
(
txid
)
:
Promise
<
any
>
Parameters
txid
:
string
Returns
Promise
<
any
>
promise
Get
Transaction
Receipt
promise
Get
Transaction
Receipt
(
txid
)
:
Promise
<
any
>
Parameters
txid
:
string
Returns
Promise
<
any
>
promise
Get
Tx
Out
promise
Get
Tx
Out
(
txid
,
vout
)
:
Promise
<
any
>
Parameters
txid
:
string
vout
:
number
Returns
Promise
<
any
>
promise
Get
Unconfirmed
Balance
promise
Get
Unconfirmed
Balance
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
promise
Get
Wallet
Info
promise
Get
Wallet
Info
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
promise
List
Contracts
promise
List
Contracts
(
start
?
,
maxDisplay
?
)
:
Promise
<
any
>
Parameters
Optional
start
:
string
|
number
Optional
maxDisplay
:
string
|
number
Returns
Promise
<
any
>
promise
List
Unspent
promise
List
Unspent
(
minConf
,
maxConf
,
addressesArray
)
:
Promise
<
any
>
Parameters
minConf
:
number
maxConf
:
number
addressesArray
:
string
[]
Returns
Promise
<
any
>
promise
Search
Logs
promise
Search
Logs
(
fromBlock
,
toBlock
?
,
addresses
,
topics
?
,
minconf
?
)
:
Promise
<
any
>
Parameters
fromBlock
:
number
toBlock
:
undefined
|
number
= -1
addresses
:
undefined
|
string
[]
topics
:
undefined
|
(
null
|
string
)
[]
= []
minconf
:
undefined
|
number
= 0
Returns
Promise
<
any
>
promise
Send
Many
promise
Send
Many
(
addressesAmmountsObj
,
confirmations
,
comment
,
feeAddressesArray
)
:
Promise
<
any
>
Parameters
addressesAmmountsObj
:
any
confirmations
:
number
comment
:
string
feeAddressesArray
:
null
|
string
|
string
[]
Returns
Promise
<
any
>
promise
Send
Raw
Transaction
promise
Send
Raw
Transaction
(
transaction
)
:
Promise
<
any
>
Parameters
transaction
:
string
Returns
Promise
<
any
>
promise
Send
To
Address
promise
Send
To
Address
(
address
,
ammount
,
comment
)
:
Promise
<
any
>
Parameters
address
:
string
ammount
:
string
comment
:
string
Returns
Promise
<
any
>
promise
Send
To
Contract
promise
Send
To
Contract
(
contractAddress
,
datahex
,
amount
,
gasLimit
,
gasPrice
,
senderAddress
,
broadcast
?
,
changeToSender
?
)
:
Promise
<
any
>
Parameters
contractAddress
:
string
datahex
:
string
amount
:
string
|
number
gasLimit
:
string
|
number
gasPrice
:
string
|
number
senderAddress
:
string
Optional
broadcast
:
boolean
Optional
changeToSender
:
boolean
Returns
Promise
<
any
>
promise
Set
Account
promise
Set
Account
(
address
,
account
)
:
Promise
<
any
>
Parameters
address
:
string
account
:
string
Returns
Promise
<
any
>
promise
Set
Tx
Fee
promise
Set
Tx
Fee
(
fee
)
:
Promise
<
any
>
Parameters
fee
:
number
Returns
Promise
<
any
>
promise
Sign
Message
promise
Sign
Message
(
address
,
message
)
:
Promise
<
any
>
Parameters
address
:
string
message
:
string
Returns
Promise
<
any
>
promise
Sign
Raw
Transaction
promise
Sign
Raw
Transaction
(
signRawTxObj
)
:
Promise
<
any
>
Parameters
signRawTxObj
:
MetrixSignRawTx
Returns
Promise
<
any
>
promise
Stop
promise
Stop
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
promise
Validate
Address
promise
Validate
Address
(
address
)
:
Promise
<
any
>
Parameters
address
:
string
Returns
Promise
<
any
>
promise
Verify
Message
promise
Verify
Message
(
address
,
signature
,
message
)
:
Promise
<
any
>
Parameters
address
:
string
signature
:
string
message
:
string
Returns
Promise
<
any
>
promise
Wallet
Lock
promise
Wallet
Lock
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
promise
Wallet
Passphrase
promise
Wallet
Passphrase
(
passphrase
,
timeoutSeconds
)
:
Promise
<
any
>
Parameters
passphrase
:
string
timeoutSeconds
:
number
Returns
Promise
<
any
>
promise
Wallet
Passphrase
Change
promise
Wallet
Passphrase
Change
(
oldPassphrase
,
newPassphrase
)
:
Promise
<
any
>
Parameters
oldPassphrase
:
string
newPassphrase
:
string
Returns
Promise
<
any
>
search
Logs
search
Logs
(
fromBlock
,
toBlock
,
addresses
?
,
topics
?
,
minconf
?
,
callback
)
:
void
Parameters
fromBlock
:
number
toBlock
:
number
addresses
:
undefined
|
string
[]
= []
topics
:
undefined
|
(
null
|
string
)
[]
= []
minconf
:
undefined
|
number
= 0
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
send
Many
send
Many
(
addressesAmmountsObj
,
confirmations
,
comment
,
feeAddressesArray
,
callback
)
:
void
Parameters
addressesAmmountsObj
:
any
confirmations
:
number
comment
:
string
feeAddressesArray
:
null
|
string
|
string
[]
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
send
Raw
Transaction
send
Raw
Transaction
(
transaction
,
callback
)
:
void
Parameters
transaction
:
string
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
send
To
Address
send
To
Address
(
address
,
ammount
,
comment
,
callback
)
:
void
Parameters
address
:
string
ammount
:
string
comment
:
string
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
send
To
Contract
send
To
Contract
(
contractAddress
,
datahex
,
amount
?
,
gasLimit
?
,
gasPrice
?
,
senderAddress
,
broadcast
?
,
changeToSender
?
,
callback
)
:
void
Parameters
contractAddress
:
string
datahex
:
string
amount
:
undefined
|
string
|
number
= 0
gasLimit
:
undefined
|
string
|
number
= 250000
gasPrice
:
undefined
|
string
|
number
= 0.00005
senderAddress
:
string
broadcast
:
undefined
|
boolean
= true
changeToSender
:
undefined
|
boolean
= true
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
set
Account
set
Account
(
address
,
account
,
callback
)
:
void
Parameters
address
:
string
account
:
string
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
set
Default
Account
set
Default
Account
(
account
)
:
MetrixRPC
Parameters
account
:
null
|
string
Returns
MetrixRPC
set
Tx
Fee
set
Tx
Fee
(
fee
,
callback
)
:
void
Parameters
fee
:
number
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
sign
Message
sign
Message
(
address
,
message
,
callback
)
:
void
Parameters
address
:
string
message
:
string
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
sign
Raw
Transaction
sign
Raw
Transaction
(
signRawTxObj
,
callback
)
:
void
Parameters
signRawTxObj
:
MetrixSignRawTx
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
stop
stop
(
callback
)
:
void
Parameters
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
validate
Address
validate
Address
(
address
,
callback
)
:
void
Parameters
address
:
string
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
verify
Message
verify
Message
(
address
,
signature
,
message
,
callback
)
:
void
Parameters
address
:
string
signature
:
string
message
:
string
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
wallet
Lock
wallet
Lock
(
callback
)
:
void
Parameters
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
wallet
Passphrase
wallet
Passphrase
(
passphrase
,
timeoutSeconds
,
callback
)
:
void
Parameters
passphrase
:
string
timeoutSeconds
:
number
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
wallet
Passphrase
Change
wallet
Passphrase
Change
(
oldPassphrase
,
newPassphrase
,
callback
)
:
void
Parameters
oldPassphrase
:
string
newPassphrase
:
string
callback
:
(
(
e
:
null
|
Error
,
result
:
any
)
=>
void
)
(
e
,
result
)
:
void
Parameters
e
:
null
|
Error
result
:
any
Returns
void
Returns
void
Protected
Static
is
Empty
is
Empty
(
x
)
:
boolean
Parameters
x
:
any
Returns
boolean
Protected
Static
is
String
is
String
(
x
)
:
boolean
Parameters
x
:
any
Returns
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
auth
Header
url
Methods
backup
Wallet
call
Contract
call
Daemon
create
Contract
create
Raw
Transaction
decode
Raw
Transaction
encrypt
Wallet
estimate
Fee
estimate
Smart
Fee
from
Hex
Address
get
Account
Info
get
Address
Info
get
Addresses
By
Account
get
Addresses
By
Label
get
Balance
get
Best
Block
Hash
get
Block
get
Block
Count
get
Block
Hash
get
Blockchain
Info
get
Chain
Tips
get
Difficulty
get
Hex
Address
get
Invalid
get
Mining
Info
get
Network
Info
get
New
Address
get
Pool
Info
get
Raw
Transaction
get
Stake
Split
Threshold
get
Staking
Status
get
Transaction
get
Transaction
Receipt
get
Tx
Out
get
Unconfirmed
Balance
get
Wallet
Info
list
Contracts
list
Unspent
promise
Backup
Wallet
promise
Call
Contract
promise
Create
Contract
promise
Create
Raw
Transaction
promise
Decode
Raw
Transaction
promise
Encrypt
Wallet
promise
Estimate
Fee
promise
Estimate
Smart
Fee
promise
From
Hex
Address
promise
Get
Account
Info
promise
Get
Address
Info
promise
Get
Addresses
By
Account
promise
Get
Addresses
By
Label
promise
Get
Balance
promise
Get
Best
Block
Hash
promise
Get
Block
promise
Get
Block
Count
promise
Get
Block
Hash
promise
Get
Blockchain
Info
promise
Get
Chain
Tips
promise
Get
Difficulty
promise
Get
Hex
Address
promise
Get
Invalid
promise
Get
Mining
Info
promise
Get
Network
Info
promise
Get
New
Address
promise
Get
Pool
Info
promise
Get
Raw
Transaction
promise
Get
Stake
Split
Threshold
promise
Get
Staking
Status
promise
Get
Transaction
promise
Get
Transaction
Receipt
promise
Get
Tx
Out
promise
Get
Unconfirmed
Balance
promise
Get
Wallet
Info
promise
List
Contracts
promise
List
Unspent
promise
Search
Logs
promise
Send
Many
promise
Send
Raw
Transaction
promise
Send
To
Address
promise
Send
To
Contract
promise
Set
Account
promise
Set
Tx
Fee
promise
Sign
Message
promise
Sign
Raw
Transaction
promise
Stop
promise
Validate
Address
promise
Verify
Message
promise
Wallet
Lock
promise
Wallet
Passphrase
promise
Wallet
Passphrase
Change
search
Logs
send
Many
send
Raw
Transaction
send
To
Address
send
To
Contract
set
Account
set
Default
Account
set
Tx
Fee
sign
Message
sign
Raw
Transaction
stop
validate
Address
verify
Message
wallet
Lock
wallet
Passphrase
wallet
Passphrase
Change
is
Empty
is
String
@metrixcoin/metrilib
Loading...