Documentation
Preparing search index...
@solana/wallet-adapter-react
require
WalletContextState
Interface WalletContextState
interface
WalletContextState
{
autoConnect
:
boolean
;
connected
:
boolean
;
connecting
:
boolean
;
disconnecting
:
boolean
;
publicKey
:
null
|
PublicKey
;
sendTransaction
:
(
transaction
:
Transaction
|
VersionedTransaction
,
connection
:
Connection
,
options
?:
SendTransactionOptions
,
)
=>
Promise
<
string
>
;
signAllTransactions
:
|
undefined
|
(
<
T
extends
Transaction
|
VersionedTransaction
>
(
transactions
:
T
[]
,
)
=>
Promise
<
T
[]
>
)
;
signIn
:
|
undefined
|
(
(
input
?:
SolanaSignInInput
)
=>
Promise
<
SolanaSignInOutput
>
)
;
signMessage
:
|
undefined
|
(
(
message
:
Uint8Array
)
=>
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
)
;
signTransaction
:
|
undefined
|
(
<
T
extends
Transaction
|
VersionedTransaction
>
(
transaction
:
T
,
)
=>
Promise
<
T
>
)
;
wallet
:
null
|
Wallet
;
wallets
:
Wallet
[]
;
connect
()
:
Promise
<
void
>
;
disconnect
()
:
Promise
<
void
>
;
select
(
walletName
:
null
|
WalletName
)
:
void
;
}
Index
Properties
auto
Connect
connected
connecting
disconnecting
public
Key
send
Transaction
sign
All
Transactions
sign
In
sign
Message
sign
Transaction
wallet
wallets
Methods
connect
disconnect
select
Properties
auto
Connect
autoConnect
:
boolean
connected
connected
:
boolean
connecting
connecting
:
boolean
disconnecting
disconnecting
:
boolean
public
Key
publicKey
:
null
|
PublicKey
send
Transaction
sendTransaction
:
(
transaction
:
Transaction
|
VersionedTransaction
,
connection
:
Connection
,
options
?:
SendTransactionOptions
,
)
=>
Promise
<
string
>
sign
All
Transactions
signAllTransactions
:
|
undefined
|
(
<
T
extends
Transaction
|
VersionedTransaction
>
(
transactions
:
T
[]
,
)
=>
Promise
<
T
[]
>
)
sign
In
signIn
:
undefined
|
(
(
input
?:
SolanaSignInInput
)
=>
Promise
<
SolanaSignInOutput
>
)
sign
Message
signMessage
:
|
undefined
|
(
(
message
:
Uint8Array
)
=>
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
)
sign
Transaction
signTransaction
:
|
undefined
|
(
<
T
extends
Transaction
|
VersionedTransaction
>
(
transaction
:
T
,
)
=>
Promise
<
T
>
)
wallet
wallet
:
null
|
Wallet
wallets
wallets
:
Wallet
[]
Methods
connect
connect
()
:
Promise
<
void
>
Returns
Promise
<
void
>
disconnect
disconnect
()
:
Promise
<
void
>
Returns
Promise
<
void
>
select
select
(
walletName
:
null
|
WalletName
)
:
void
Parameters
walletName
:
null
|
WalletName
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
auto
Connect
connected
connecting
disconnecting
public
Key
send
Transaction
sign
All
Transactions
sign
In
sign
Message
sign
Transaction
wallet
wallets
Methods
connect
disconnect
select
Documentation
Loading...