Documentation
Preparing search index...
@mysten/zksend
StashedHost
Class StashedHost
Index
Constructors
constructor
Methods
close
get
Request
Data
send
Message
from
Url
Constructors
constructor
new
StashedHost
(
request
:
{
id
:
string
;
name
?:
string
;
origin
:
string
;
payload
:
|
{
type
:
"connect"
}
|
{
address
:
string
;
data
:
string
;
type
:
"sign-transaction-block"
}
|
{
address
:
string
;
bytes
:
string
;
type
:
"sign-personal-message"
}
;
}
,
)
:
StashedHost
Parameters
request
:
{
id
:
string
;
name
?:
string
;
origin
:
string
;
payload
:
|
{
type
:
"connect"
}
|
{
address
:
string
;
data
:
string
;
type
:
"sign-transaction-block"
}
|
{
address
:
string
;
bytes
:
string
;
type
:
"sign-personal-message"
}
;
}
Returns
StashedHost
Methods
close
close
(
payload
?:
|
{
type
:
"reject"
}
|
{
data
:
|
{
address
:
string
;
type
:
"connect"
}
|
{
bytes
:
string
;
signature
:
string
;
type
:
"sign-transaction-block"
}
|
{
bytes
:
string
;
signature
:
string
;
type
:
"sign-personal-message"
}
;
type
:
"resolve"
;
}
,
)
:
void
Parameters
Optional
payload
:
|
{
type
:
"reject"
}
|
{
data
:
|
{
address
:
string
;
type
:
"connect"
}
|
{
bytes
:
string
;
signature
:
string
;
type
:
"sign-transaction-block"
}
|
{
bytes
:
string
;
signature
:
string
;
type
:
"sign-personal-message"
}
;
type
:
"resolve"
;
}
Returns
void
get
Request
Data
getRequestData
()
:
{
id
:
string
;
name
?:
string
;
origin
:
string
;
payload
:
|
{
type
:
"connect"
}
|
{
address
:
string
;
data
:
string
;
type
:
"sign-transaction-block"
}
|
{
address
:
string
;
bytes
:
string
;
type
:
"sign-personal-message"
}
;
}
Returns
{
id
:
string
;
name
?:
string
;
origin
:
string
;
payload
:
|
{
type
:
"connect"
}
|
{
address
:
string
;
data
:
string
;
type
:
"sign-transaction-block"
}
|
{
address
:
string
;
bytes
:
string
;
type
:
"sign-personal-message"
}
;
}
send
Message
sendMessage
(
payload
:
|
{
type
:
"reject"
}
|
{
data
:
|
{
address
:
string
;
type
:
"connect"
}
|
{
bytes
:
string
;
signature
:
string
;
type
:
"sign-transaction-block"
}
|
{
bytes
:
string
;
signature
:
string
;
type
:
"sign-personal-message"
}
;
type
:
"resolve"
;
}
,
)
:
void
Parameters
payload
:
|
{
type
:
"reject"
}
|
{
data
:
|
{
address
:
string
;
type
:
"connect"
}
|
{
bytes
:
string
;
signature
:
string
;
type
:
"sign-transaction-block"
}
|
{
bytes
:
string
;
signature
:
string
;
type
:
"sign-personal-message"
}
;
type
:
"resolve"
;
}
Returns
void
Static
from
Url
fromUrl
(
url
?:
string
)
:
StashedHost
Parameters
url
:
string
= window.location.href
Returns
StashedHost
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
close
get
Request
Data
send
Message
from
Url
Documentation
Loading...