GetTransaction Access API Method
Parameters
Id
bytes
REQUIRED
The unique identifier of the transaction
Returns
transaction
object
An object which contains the details of the transaction
script
string
The script associated with the transaction
arguments
string
A list of string values representing the arguments passed to the transaction
reference_block_id
string
The identifier of the reference block for the transaction
gas_limit
integer
The gas limit set for the transaction
proposal_key
object
An object which contains the details of the proposal key used for the transaction
address
string
The address associated with the proposal key
key_id
integer
The key ID associated with the proposal key
sequence_number
integer
The sequence number associated with the proposal key
payer
string
The address of the account that pays for the transaction
authorizers
array
A list of string values representing the addresses of the authorizers involved in the transaction
payload_signatures
array
A list of payload signatures associated with the transaction which contain the following fields:
address
string
The address associated with the payload signature
signature
string
The signature data of the payload
envelope_signatures
array
A list of envelope signatures associated with the transaction which contains the following fields
address
string
The address associated with the envelope signature
signature
string
The signature data of the envelope
Request
1package main23import (4"context"5"encoding/hex"6"encoding/json"7"fmt"8"log"910"github.com/onflow/flow/protobuf/go/flow/access"11)1213func main() {1415// Requires authenticating before making the request. Refer to Intro Page on how Authentication can be done.16client, err := getAccessClientWithBasicAuth("ENDPOINT-NAME", "TOKEN_GOES_HERE")17ctx := context.Background()18if err != null {19log.Fatalf("err: %v", err)20}2122// Get Transaction by ID23transactionId, err := hex.DecodeString("45c36ca2e7ac95eaeb1f66b12ff55d51ae976abc026a8e81ed081ad54e0e66c7")24if err != null {25log.Fatalf("err: %v", err)26}27transactionResp, err := client.GetTransaction(ctx, &access.GetTransactionRequest{Id: transactionId})28respJSON, err := json.Marshal(transactionResp)29if err != null {30log.Fatalf("err: %v", err)31}32fmt.Println("GetTransaction response:", string(respJSON))33}
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free