CCC Docs
GitHub
App
Docs
Playground
Preparing search index...
@ckb-ccc utxo-global
advanced
UtxoGlobalA
Provider
Interface Provider
interface
Provider
{
requestAccounts
()
:
Promise
<
string
[]
>
;
getAccount
()
:
Promise
<
string
[]
>
;
getPublicKey
()
:
Promise
<
{
address
:
string
;
publicKey
:
string
}
[]
>
;
connect
()
:
Promise
<
void
>
;
isConnected
()
:
Promise
<
boolean
>
;
signMessage
(
msg
:
string
,
address
:
string
)
:
Promise
<
string
>
;
signTransaction
(
tx
:
TransactionLike
)
:
Promise
<
TransactionLike
>
;
getNetwork
()
:
Promise
<
string
>
;
switchNetwork
(
network
:
string
)
:
Promise
<
void
>
;
on
:
UtxoGlobalA
.
OnMethod
;
removeListener
(
eventName
:
string
,
listener
:
(
...
args
:
unknown
[]
)
=>
unknown
,
)
:
UtxoGlobalA
.
Provider
;
}
Index
Properties
on
Methods
request
Accounts
get
Account
get
Public
Key
connect
is
Connected
sign
Message
sign
Transaction
get
Network
switch
Network
remove
Listener
Properties
on
on
:
UtxoGlobalA
.
OnMethod
Methods
request
Accounts
requestAccounts
()
:
Promise
<
string
[]
>
Returns
Promise
<
string
[]
>
get
Account
getAccount
()
:
Promise
<
string
[]
>
Returns
Promise
<
string
[]
>
get
Public
Key
getPublicKey
()
:
Promise
<
{
address
:
string
;
publicKey
:
string
}
[]
>
Returns
Promise
<
{
address
:
string
;
publicKey
:
string
}
[]
>
connect
connect
()
:
Promise
<
void
>
Returns
Promise
<
void
>
is
Connected
isConnected
()
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
sign
Message
signMessage
(
msg
:
string
,
address
:
string
)
:
Promise
<
string
>
Parameters
msg
:
string
address
:
string
Returns
Promise
<
string
>
sign
Transaction
signTransaction
(
tx
:
TransactionLike
)
:
Promise
<
TransactionLike
>
Parameters
tx
:
TransactionLike
Returns
Promise
<
TransactionLike
>
get
Network
getNetwork
()
:
Promise
<
string
>
Returns
Promise
<
string
>
switch
Network
switchNetwork
(
network
:
string
)
:
Promise
<
void
>
Parameters
network
:
string
Returns
Promise
<
void
>
remove
Listener
removeListener
(
eventName
:
string
,
listener
:
(
...
args
:
unknown
[]
)
=>
unknown
,
)
:
UtxoGlobalA
.
Provider
Parameters
eventName
:
string
listener
:
(
...
args
:
unknown
[]
)
=>
unknown
Returns
UtxoGlobalA
.
Provider
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
on
Methods
request
Accounts
get
Account
get
Public
Key
connect
is
Connected
sign
Message
sign
Transaction
get
Network
switch
Network
remove
Listener
GitHub
App
Docs
Playground
CCC Docs
Loading...