Search
Preparing search index...
The search index is not available
API Reference | Injective - Powering the future of decentralized finance.
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
API Reference | Injective - Powering the future of decentralized finance.
@injectivelabs/sdk-ts
TxGrpcClient
Class TxGrpcClient
deprecated
use TxRestApi and TxGrpcApi
Hierarchy
TxGrpcClient
Implements
TxConcreteApi
Index
Constructors
constructor
Properties
endpoint
tx
Service
Methods
broadcast
broadcast
Block
fetch
Tx
fetch
Tx
Poll
simulate
Constructors
constructor
new
Tx
Grpc
Client
(
endpoint
:
string
)
:
TxGrpcClient
Parameters
endpoint:
string
Returns
TxGrpcClient
Properties
endpoint
endpoint
:
string
tx
Service
tx
Service
:
ServiceClientImpl
Methods
broadcast
broadcast
(
txRaw
:
TxRaw
, options
?:
TxClientBroadcastOptions
)
:
internal
.
Promise
<
TxResponse
>
Parameters
txRaw:
TxRaw
Optional
options:
TxClientBroadcastOptions
Returns
internal
.
Promise
<
TxResponse
>
broadcast
Block
broadcast
Block
(
txRaw
:
TxRaw
, broadcastMode
?:
BroadcastMode
)
:
internal
.
Promise
<
TxClientBroadcastResponse
>
Parameters
txRaw:
TxRaw
broadcastMode:
BroadcastMode
= CosmosTxV1Beta1Service.BroadcastMode.BROADCAST_MODE_BLOCK
Returns
internal
.
Promise
<
TxClientBroadcastResponse
>
fetch
Tx
fetch
Tx
(
hash
:
string
)
:
internal
.
Promise
<
TxResponse
>
Parameters
hash:
string
Returns
internal
.
Promise
<
TxResponse
>
fetch
Tx
Poll
fetch
Tx
Poll
(
txHash
:
string
, timeout
?:
number
)
:
internal
.
Promise
<
TxResponse
>
Parameters
txHash:
string
timeout:
number
= ...
Returns
internal
.
Promise
<
TxResponse
>
simulate
simulate
(
txRaw
:
TxRaw
)
:
internal
.
Promise
<
{
gasInfo
:
{
gasUsed
:
number
;
gasWanted
:
number
}
;
result
:
{
data
:
string
|
internal
.
Uint8Array
;
events
?:
internal
.
Event
[]
;
eventsList
:
internal
.
Event
[]
;
log
:
string
}
}
>
Parameters
txRaw:
TxRaw
Returns
internal
.
Promise
<
{
gasInfo
:
{
gasUsed
:
number
;
gasWanted
:
number
}
;
result
:
{
data
:
string
|
internal
.
Uint8Array
;
events
?:
internal
.
Event
[]
;
eventsList
:
internal
.
Event
[]
;
log
:
string
}
}
>
Modules
@injectivelabs/sdk-
ts
internal
@injectivelabs/wallet-
ts
Tx
Grpc
Client
constructor
endpoint
tx
Service
broadcast
broadcast
Block
fetch
Tx
fetch
Tx
Poll
simulate
Generated using
TypeDoc
use TxRestApi and TxGrpcApi