Dfns TypeScript SDK - v0.7.14
Preparing search index...
@dfns/lib-ethersjs5
DfnsWallet
Class DfnsWallet
Hierarchy
Signer
DfnsWallet
Implements
TypedDataSigner
Index
Constructors
constructor
Properties
_
is
Signer
provider?
Methods
_
check
Provider
_
sign
Typed
Data
call
check
Transaction
connect
estimate
Gas
get
Address
get
Balance
get
Chain
Id
get
Fee
Data
get
Gas
Price
get
Transaction
Count
populate
Transaction
resolve
Name
send
Transaction
sign
Message
sign
Transaction
init
is
Signer
Constructors
constructor
new
DfnsWallet
(
options
:
DfnsWalletOptions
,
provider
?:
null
|
Provider
,
)
:
DfnsWallet
Parameters
options
:
DfnsWalletOptions
Optional
provider
:
null
|
Provider
Returns
DfnsWallet
Deprecated
use DfnsWallet.init(options) instead
Properties
Readonly
_
is
Signer
_isSigner
:
boolean
Optional
Readonly
provider
provider
?:
Provider
Methods
_
check
Provider
_checkProvider
(
operation
?:
string
)
:
void
Parameters
Optional
operation
:
string
Returns
void
_
sign
Typed
Data
_signTypedData
(
domain
:
TypedDataDomain
,
types
:
Record
<
string
,
TypedDataField
[]
>
,
value
:
Record
<
string
,
any
>
,
)
:
Promise
<
string
>
Parameters
domain
:
TypedDataDomain
types
:
Record
<
string
,
TypedDataField
[]
>
value
:
Record
<
string
,
any
>
Returns
Promise
<
string
>
call
call
(
transaction
:
Deferrable
<
TransactionRequest
>
,
blockTag
?:
BlockTag
,
)
:
Promise
<
string
>
Parameters
transaction
:
Deferrable
<
TransactionRequest
>
Optional
blockTag
:
BlockTag
Returns
Promise
<
string
>
check
Transaction
checkTransaction
(
transaction
:
Deferrable
<
TransactionRequest
>
,
)
:
Deferrable
<
TransactionRequest
>
Parameters
transaction
:
Deferrable
<
TransactionRequest
>
Returns
Deferrable
<
TransactionRequest
>
connect
connect
(
provider
:
null
|
Provider
)
:
Signer
Parameters
provider
:
null
|
Provider
Returns
Signer
estimate
Gas
estimateGas
(
transaction
:
Deferrable
<
TransactionRequest
>
)
:
Promise
<
BigNumber
>
Parameters
transaction
:
Deferrable
<
TransactionRequest
>
Returns
Promise
<
BigNumber
>
get
Address
getAddress
()
:
Promise
<
string
>
Returns
Promise
<
string
>
get
Balance
getBalance
(
blockTag
?:
BlockTag
)
:
Promise
<
BigNumber
>
Parameters
Optional
blockTag
:
BlockTag
Returns
Promise
<
BigNumber
>
get
Chain
Id
getChainId
()
:
Promise
<
number
>
Returns
Promise
<
number
>
get
Fee
Data
getFeeData
()
:
Promise
<
FeeData
>
Returns
Promise
<
FeeData
>
get
Gas
Price
getGasPrice
()
:
Promise
<
BigNumber
>
Returns
Promise
<
BigNumber
>
get
Transaction
Count
getTransactionCount
(
blockTag
?:
BlockTag
)
:
Promise
<
number
>
Parameters
Optional
blockTag
:
BlockTag
Returns
Promise
<
number
>
populate
Transaction
populateTransaction
(
transaction
:
Deferrable
<
TransactionRequest
>
,
)
:
Promise
<
TransactionRequest
>
Parameters
transaction
:
Deferrable
<
TransactionRequest
>
Returns
Promise
<
TransactionRequest
>
resolve
Name
resolveName
(
name
:
string
)
:
Promise
<
string
>
Parameters
name
:
string
Returns
Promise
<
string
>
send
Transaction
sendTransaction
(
transaction
:
Deferrable
<
TransactionRequest
>
,
)
:
Promise
<
TransactionResponse
>
Parameters
transaction
:
Deferrable
<
TransactionRequest
>
Returns
Promise
<
TransactionResponse
>
sign
Message
signMessage
(
message
:
string
|
Uint8Array
<
ArrayBufferLike
>
)
:
Promise
<
string
>
Parameters
message
:
string
|
Uint8Array
<
ArrayBufferLike
>
Returns
Promise
<
string
>
sign
Transaction
signTransaction
(
transaction
:
TransactionRequest
)
:
Promise
<
string
>
Parameters
transaction
:
TransactionRequest
Returns
Promise
<
string
>
Static
init
init
(
options
:
DfnsWalletOptions
)
:
Promise
<
DfnsWallet
>
Parameters
options
:
DfnsWalletOptions
Returns
Promise
<
DfnsWallet
>
Static
is
Signer
isSigner
(
value
:
any
)
:
value
is
Signer
Parameters
value
:
any
Returns
value
is
Signer
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
_
is
Signer
provider
Methods
_
check
Provider
_
sign
Typed
Data
call
check
Transaction
connect
estimate
Gas
get
Address
get
Balance
get
Chain
Id
get
Fee
Data
get
Gas
Price
get
Transaction
Count
populate
Transaction
resolve
Name
send
Transaction
sign
Message
sign
Transaction
init
is
Signer
Dfns TypeScript SDK - v0.7.14
Loading...
Deprecated
use DfnsWallet.init(options) instead