GetTransactionApi
GetTransactionApi =
object
Methods
getTransaction()
Call Signature
getTransaction<
TMaxSupportedTransactionVersion
>(signature
,config
):null
|Readonly
<{blockTime
:UnixTimestamp
|null
;slot
:Slot
; }> &TMaxSupportedTransactionVersion
extendsvoid
?Record
<string
,never
> :object
&object
Returns details of the confirmed transaction identified by the given signature.
Type Parameters
Type Parameter | Default type |
---|---|
TMaxSupportedTransactionVersion extends void | TransactionVersion | void |
Parameters
Parameter | Type | Description |
---|---|---|
signature | Signature | A 64 byte Ed25519 signature, encoded as a base-58 string, that uniquely identifies a transaction by virtue of being the first or only signature in its list of signatures. Materializes the transaction as structured TransactionJson which the server will attempt to further process using account parsers and parsers specific to the transaction instructions' owning program. Whenever an instruction parser is successful, instruction will consist of parsed data as JSON. Otherwise, the instruction will materialize as a list of accounts, a program address, and base64-encoded instruction data. |
config | Readonly <{ commitment? : Commitment ; encoding : "base58" | "base64" | "json" | "jsonParsed" ; maxSupportedTransactionVersion? : TMaxSupportedTransactionVersion ; }> & Readonly <{ encoding : "jsonParsed" ; }> | - |
Returns
null
| Readonly
<{ blockTime
: UnixTimestamp
| null
; slot
: Slot
; }> & TMaxSupportedTransactionVersion
extends void
? Record
<string
, never
> : object
& object
See
https://solana.com/docs/rpc/http/gettransaction
Call Signature
getTransaction<
TMaxSupportedTransactionVersion
>(signature
,config
):null
|Readonly
<{blockTime
:UnixTimestamp
|null
;slot
:Slot
; }> &TMaxSupportedTransactionVersion
extendsvoid
?Record
<string
,never
> :object
&object
Returns details of the confirmed transaction identified by the given signature.
Type Parameters
Type Parameter | Default type |
---|---|
TMaxSupportedTransactionVersion extends void | TransactionVersion | void |
Parameters
Parameter | Type | Description |
---|---|---|
signature | Signature | A 64 byte Ed25519 signature, encoded as a base-58 string, that uniquely identifies a transaction by virtue of being the first or only signature in its list of signatures. Materializes the transaction as a tuple whose first element is the bytes of the wire transaction as a base64-encoded string. |
config | Readonly <{ commitment? : Commitment ; encoding : "base58" | "base64" | "json" | "jsonParsed" ; maxSupportedTransactionVersion? : TMaxSupportedTransactionVersion ; }> & Readonly <{ encoding : "base64" ; }> | - |
Returns
null
| Readonly
<{ blockTime
: UnixTimestamp
| null
; slot
: Slot
; }> & TMaxSupportedTransactionVersion
extends void
? Record
<string
, never
> : object
& object
See
https://solana.com/docs/rpc/http/gettransaction
Call Signature
getTransaction<
TMaxSupportedTransactionVersion
>(signature
,config
):null
|Readonly
<{blockTime
:UnixTimestamp
|null
;slot
:Slot
; }> &TMaxSupportedTransactionVersion
extendsvoid
?Record
<string
,never
> :object
&object
Returns details of the confirmed transaction identified by the given signature.
Type Parameters
Type Parameter | Default type |
---|---|
TMaxSupportedTransactionVersion extends void | TransactionVersion | void |
Parameters
Parameter | Type | Description |
---|---|---|
signature | Signature | A 64 byte Ed25519 signature, encoded as a base-58 string, that uniquely identifies a transaction by virtue of being the first or only signature in its list of signatures. Materializes the transaction as a tuple whose first element is the bytes of the wire transaction as a base58-encoded string. |
config | Readonly <{ commitment? : Commitment ; encoding : "base58" | "base64" | "json" | "jsonParsed" ; maxSupportedTransactionVersion? : TMaxSupportedTransactionVersion ; }> & Readonly <{ encoding : "base58" ; }> | - |
Returns
null
| Readonly
<{ blockTime
: UnixTimestamp
| null
; slot
: Slot
; }> & TMaxSupportedTransactionVersion
extends void
? Record
<string
, never
> : object
& object
See
https://solana.com/docs/rpc/http/gettransaction
Call Signature
getTransaction<
TMaxSupportedTransactionVersion
>(signature
,config?
):null
|Readonly
<{blockTime
:UnixTimestamp
|null
;slot
:Slot
; }> &TMaxSupportedTransactionVersion
extendsvoid
?Record
<string
,never
> :object
&object
Returns details of the confirmed transaction identified by the given signature.
Type Parameters
Type Parameter | Default type |
---|---|
TMaxSupportedTransactionVersion extends void | TransactionVersion | void |
Parameters
Parameter | Type | Description |
---|---|---|
signature | Signature | A 64 byte Ed25519 signature, encoded as a base-58 string, that uniquely identifies a transaction by virtue of being the first or only signature in its list of signatures. Materializes the transaction as structured TransactionJson. |
config? | Readonly <{ commitment? : Commitment ; encoding : "base58" | "base64" | "json" | "jsonParsed" ; maxSupportedTransactionVersion? : TMaxSupportedTransactionVersion ; }> & Readonly <{ encoding? : "json" ; }> | - |
Returns
null
| Readonly
<{ blockTime
: UnixTimestamp
| null
; slot
: Slot
; }> & TMaxSupportedTransactionVersion
extends void
? Record
<string
, never
> : object
& object