Documentation
Preparing search index...
@mysten/sui
client
SuiHTTPTransportOptions
Interface SuiHTTPTransportOptions
interface
SuiHTTPTransportOptions
{
fetch
?:
{
(
input
:
RequestInfo
|
URL
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
(
input
:
string
|
Request
|
URL
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
}
;
rpc
?:
{
headers
?:
HttpHeaders
;
url
?:
string
}
;
url
:
string
;
websocket
?:
WebsocketClientOptions
&
{
url
?:
string
}
;
WebSocketConstructor
?:
{
CLOSED
:
3
;
CLOSING
:
2
;
CONNECTING
:
0
;
OPEN
:
1
;
prototype
:
WebSocket
;
new
(
url
:
string
|
URL
,
protocols
?:
string
|
string
[]
)
:
WebSocket
;
}
;
}
Index
Properties
fetch?
rpc?
url
websocket?
Web
Socket
Constructor?
Properties
Optional
fetch
fetch
?:
{
(
input
:
RequestInfo
|
URL
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
(
input
:
string
|
Request
|
URL
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
}
Type declaration
(
input
:
RequestInfo
|
URL
,
init
?:
RequestInit
)
:
Promise
<
Response
>
MDN Reference
Parameters
input
:
RequestInfo
|
URL
Optional
init
:
RequestInit
Returns
Promise
<
Response
>
(
input
:
string
|
Request
|
URL
,
init
?:
RequestInit
)
:
Promise
<
Response
>
MDN Reference
Parameters
input
:
string
|
Request
|
URL
Optional
init
:
RequestInit
Returns
Promise
<
Response
>
Optional
rpc
rpc
?:
{
headers
?:
HttpHeaders
;
url
?:
string
}
url
url
:
string
Optional
websocket
websocket
?:
WebsocketClientOptions
&
{
url
?:
string
}
Optional
Web
Socket
Constructor
WebSocketConstructor
?:
{
CLOSED
:
3
;
CLOSING
:
2
;
CONNECTING
:
0
;
OPEN
:
1
;
prototype
:
WebSocket
;
new
(
url
:
string
|
URL
,
protocols
?:
string
|
string
[]
)
:
WebSocket
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
fetch
rpc
url
websocket
Web
Socket
Constructor
Documentation
Loading...
MDN Reference