@arkade-os/sdk Documentation - v0.4.54
Preparing search index...
EmulatorProvider
Interface EmulatorProvider
interface
EmulatorProvider
{
getInfo
()
:
Promise
<
EmulatorInfo
>
;
submitFinalization
(
intent
:
{
message
:
RegisterMessage
;
proof
:
string
}
,
forfeits
:
string
[]
,
connectorTree
:
ConnectorTreeNode
[]
|
null
,
commitmentTx
:
string
,
)
:
Promise
<
{
signedCommitmentTx
?:
string
;
signedForfeits
:
string
[]
}
>
;
submitIntent
(
intent
:
{
message
:
RegisterMessage
;
proof
:
string
}
,
)
:
Promise
<
string
>
;
submitOnchainTx
(
tx
:
string
)
:
Promise
<
{
signedTx
:
string
}
>
;
submitTx
(
arkTx
:
string
,
checkpointTxs
:
string
[]
,
)
:
Promise
<
{
signedArkTx
:
string
;
signedCheckpointTxs
:
string
[]
}
>
;
}
Implemented by
RestEmulatorProvider
Index
Methods
get
Info
submit
Finalization
submit
Intent
submit
Onchain
Tx
submit
Tx
Methods
get
Info
getInfo
()
:
Promise
<
EmulatorInfo
>
Returns
Promise
<
EmulatorInfo
>
submit
Finalization
submitFinalization
(
intent
:
{
message
:
RegisterMessage
;
proof
:
string
}
,
forfeits
:
string
[]
,
connectorTree
:
ConnectorTreeNode
[]
|
null
,
commitmentTx
:
string
,
)
:
Promise
<
{
signedCommitmentTx
?:
string
;
signedForfeits
:
string
[]
}
>
Parameters
intent
:
{
message
:
RegisterMessage
;
proof
:
string
}
forfeits
:
string
[]
connectorTree
:
ConnectorTreeNode
[]
|
null
commitmentTx
:
string
Returns
Promise
<
{
signedCommitmentTx
?:
string
;
signedForfeits
:
string
[]
}
>
submit
Intent
submitIntent
(
intent
:
{
message
:
RegisterMessage
;
proof
:
string
}
,
)
:
Promise
<
string
>
Parameters
intent
:
{
message
:
RegisterMessage
;
proof
:
string
}
Returns
Promise
<
string
>
submit
Onchain
Tx
submitOnchainTx
(
tx
:
string
)
:
Promise
<
{
signedTx
:
string
}
>
Parameters
tx
:
string
Returns
Promise
<
{
signedTx
:
string
}
>
submit
Tx
submitTx
(
arkTx
:
string
,
checkpointTxs
:
string
[]
,
)
:
Promise
<
{
signedArkTx
:
string
;
signedCheckpointTxs
:
string
[]
}
>
Parameters
arkTx
:
string
checkpointTxs
:
string
[]
Returns
Promise
<
{
signedArkTx
:
string
;
signedCheckpointTxs
:
string
[]
}
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
get
Info
submit
Finalization
submit
Intent
submit
Onchain
Tx
submit
Tx
@arkade-os/sdk Documentation - v0.4.54
Loading...