- Start Here
- Networks
- Access Control List (ACL)
- Accounts (Addresses)
- Simulator
- Audits
- Unpack
- Abstract Syntax Tree (AST)
- Get Contract ASTGET
- Get Contract ConstantsGET
- Get Contract ConstructorsGET
- Get Contract DefinitionsGET
- Get Contract DocumentationGET
- Get Contract EnumsGET
- Get Contract ErrorsGET
- Get Contract EventsGET
- Get Contract FunctionsGET
- Get Contract ImportsGET
- Get Contract InterfacesGET
- Get Contract LibrariesGET
- Get Contract LicenseGET
- Get Contract State VariablesGET
- Get Contract StatisticsGET
- Get Contract StructsGET
- Control Flow Graphs (CFG)
- Constructors
- Contracts
- Metadata
- Tokens
- Variables
- Functions
- Events
- Standards
- Statistics
Unpack Transaction By Hash
POST
https://api.unpack.dev/v1/unpack/transactions/{networkId}/{hash}
Unpack
Last modified:2024-05-31 11:02:21
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
networkId
integer <int64>
required
Default:
1
Example:
1
hash
string
required
Example:
0x8a4b856606d511e77509df4191fc804a2ca5dd4fdb4e69df21dc1ade90ab505c
Query Params
showAst
boolean
optional
Example:
false
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.unpack.dev/v1/unpack/transactions/1/0x8a4b856606d511e77509df4191fc804a2ca5dd4fdb4e69df21dc1ade90ab505c'
Responses
🟢200OK
application/json
Body
$schema
string <uri>
read-onlyoptional
Example:
https://api.unpack.dev/schemas/Transaction.json
accessList
array[object (AccessTuple) {2}]
required
address
string
required
storageKeys
array[string]
required
ast
object (Function)
required
body
object (BodyNode)
required
id
integer <int64>
required
implemented
boolean
required
kind
integer <int32>
required
modifiers
array[object (ModifierInvocation) {8}]
required
name
string
required
nameLocation
object (SrcNode)
required
nodeType
integer <int32>
required
overrides
array[object (OverrideSpecifier) {6}]
required
parameters
object (ParameterList)
required
referencedDeclaration
integer <int64>
optional
returnParameters
object (ParameterList)
required
scope
integer <int64>
required
signature
string
required
signatureRaw
string
required
src
object (SrcNode)
required
stateMutability
integer <int32>
required
text
string
optional
typeDescription
object (TypeDescription)
required
virtual
boolean
required
visibility
integer <int32>
required
blobGas
integer <int64>
required
blobGasFeeCap
object (Int)
required
blobHashes
array[string]
required
blobTxSidecar
object (BlobTxSidecar)
required
Blobs
array[string]
required
Commitments
array[string]
required
Proofs
array[string]
required
cost
object (Int)
required
data
string
required
functionName
string
required
functionSignature
string
required
gas
integer <int64>
required
gasFeeCap
object (Int)
required
gasPrice
object (Int)
required
gasTipCap
object (Int)
required
hash
string
required
implemented
boolean
required
isPending
boolean
required
logs
array[object (Log) {13}]
required
abi
string
required
address
object (NamedAddr)
required
anonymous
boolean
required
ast
object (EventDefinition)
required
data
object
required
decodedTopics
array[object (Topic) {2}]
required
eventSignature
string
required
name
string
required
rawData
string
required
removed
boolean
required
signature
string
required
topics
array[string]
required
type
string
required
methodAbi
string
required
methodPayload
object
required
Additional properties
integer | number | string | boolean
optional
methodType
string
required
nonce
integer <int64>
required
protected
boolean
required
rawSignature
object (TransactionRawSignature)
required
v
object (Int)
required
receipt
object (Receipt)
required
blobGasPrice
object (Int)
required
blobGasUsed
integer <int64>
required
blockHash
string
required
blockNumber
object (Int)
required
bloom
string
required
contractAddress
string
required
cumulativeGasUsed
integer <int64>
required
effectiveGasPrice
object (Int)
required
gasUsed
integer <int64>
required
postState
string
required
status
integer <int64>
required
transactionIndex
integer <int64>
required
recipient
object (NamedAddr)
required
sender
object (NamedAddr)
required
signature
string
required
stateMutability
string
required
time
string <date-time>
required
type
integer <int32>
required
value
object (Int)
required
virtual
boolean
required
visibility
string
required
Example
{
"$schema": "https://api.unpack.dev/schemas/Transaction.json",
"accessList": [
{
"address": "string",
"storageKeys": [
"string"
]
}
],
"ast": {
"body": {
"id": 0,
"implemented": true,
"kind": 0,
"nodeType": 0,
"src": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
},
"statements": [
null
]
},
"id": 0,
"implemented": true,
"kind": 0,
"modifiers": [
{
"argumentTypes": [
{
"typeIdentifier": "string",
"typeString": "string"
}
],
"arguments": [
null
],
"id": 0,
"kind": 0,
"modifierName": {
"id": 0,
"name": "string",
"nodeType": 0,
"src": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
}
},
"name": "string",
"nodeType": 0,
"src": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
}
}
],
"name": "string",
"nameLocation": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
},
"nodeType": 0,
"overrides": [
{
"id": 0,
"nodeType": 0,
"overrides": [
{
"id": 0,
"name": "string",
"nodeType": 0,
"referencedDeclaration": 0,
"src": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
},
"typeDescription": {
"typeIdentifier": "string",
"typeString": "string"
}
}
],
"referencedDeclaration": 0,
"src": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
},
"typeDescriptions": {
"typeIdentifier": "string",
"typeString": "string"
}
}
],
"parameters": {
"id": 0,
"nodeType": 0,
"parameterTypes": [
{
"typeIdentifier": "string",
"typeString": "string"
}
],
"parameters": [
{
"constant": true,
"id": 0,
"indexed": true,
"name": "string",
"nameLocation": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
},
"nodeType": 0,
"scope": 0,
"src": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
},
"stateMutability": 0,
"stateVariable": true,
"storageLocation": 0,
"typeDescription": {
"typeIdentifier": "string",
"typeString": "string"
},
"typeName": {
"expression": null,
"id": 0,
"keyNameLocation": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
},
"keyType": {},
"name": "string",
"nodeType": 0,
"pathNode": {
"id": 0,
"name": "string",
"nameLocation": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
},
"nodeType": 0,
"referencedDeclaration": 0,
"src": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
},
"typeDescription": {
"typeIdentifier": "string",
"typeString": "string"
}
},
"referencedDeclaration": 0,
"src": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
},
"stateMutability": 0,
"typeDescription": {
"typeIdentifier": "string",
"typeString": "string"
},
"valueNameLocation": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
},
"valueType": {}
},
"visibility": 0
}
],
"src": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
}
},
"referencedDeclaration": 0,
"returnParameters": {
"id": 0,
"nodeType": 0,
"parameterTypes": [
{
"typeIdentifier": "string",
"typeString": "string"
}
],
"parameters": [
{
"constant": true,
"id": 0,
"indexed": true,
"name": "string",
"nameLocation": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
},
"nodeType": 0,
"scope": 0,
"src": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
},
"stateMutability": 0,
"stateVariable": true,
"storageLocation": 0,
"typeDescription": {
"typeIdentifier": "string",
"typeString": "string"
},
"typeName": {
"expression": null,
"id": 0,
"keyNameLocation": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
},
"keyType": {},
"name": "string",
"nodeType": 0,
"pathNode": {
"id": 0,
"name": "string",
"nameLocation": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
},
"nodeType": 0,
"referencedDeclaration": 0,
"src": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
},
"typeDescription": {
"typeIdentifier": "string",
"typeString": "string"
}
},
"referencedDeclaration": 0,
"src": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
},
"stateMutability": 0,
"typeDescription": {
"typeIdentifier": "string",
"typeString": "string"
},
"valueNameLocation": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
},
"valueType": {}
},
"visibility": 0
}
],
"src": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
}
},
"scope": 0,
"signature": "string",
"signatureRaw": "string",
"src": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
},
"stateMutability": 0,
"text": "string",
"typeDescription": {
"typeIdentifier": "string",
"typeString": "string"
},
"virtual": true,
"visibility": 0
},
"blobGas": 0,
"blobGasFeeCap": {},
"blobHashes": [
"string"
],
"blobTxSidecar": {
"Blobs": [
"string"
],
"Commitments": [
"string"
],
"Proofs": [
"string"
]
},
"cost": {},
"data": "string",
"functionName": "string",
"functionSignature": "string",
"gas": 0,
"gasFeeCap": {},
"gasPrice": {},
"gasTipCap": {},
"hash": "string",
"implemented": true,
"isPending": true,
"logs": [
{
"abi": "string",
"address": {
"addr": "string",
"ens": "string",
"name": "string",
"tags": [
"string"
],
"type": "string"
},
"anonymous": true,
"ast": {
"anonymous": true,
"id": 0,
"name": "string",
"nodeType": 0,
"parameters": {
"id": 0,
"nodeType": 0,
"parameterTypes": [
{
"typeIdentifier": "string",
"typeString": "string"
}
],
"parameters": [
{
"constant": true,
"id": 0,
"indexed": true,
"name": "string",
"nameLocation": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
},
"nodeType": 0,
"scope": 0,
"src": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
},
"stateMutability": 0,
"stateVariable": true,
"storageLocation": 0,
"typeDescription": {
"typeIdentifier": "string",
"typeString": "string"
},
"typeName": {
"expression": null,
"id": 0,
"keyNameLocation": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
},
"keyType": {},
"name": "string",
"nodeType": 0,
"pathNode": {
"id": 0,
"name": "string",
"nameLocation": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
},
"nodeType": 0,
"referencedDeclaration": 0,
"src": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
},
"typeDescription": {
"typeIdentifier": "string",
"typeString": "string"
}
},
"referencedDeclaration": 0,
"src": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
},
"stateMutability": 0,
"typeDescription": {
"typeIdentifier": "string",
"typeString": "string"
},
"valueNameLocation": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
},
"valueType": {}
},
"visibility": 0
}
],
"src": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
}
},
"src": {
"column": 0,
"end": 0,
"length": 0,
"line": 0,
"parentIndex": 0,
"start": 0
},
"typeDescription": {
"typeIdentifier": "string",
"typeString": "string"
}
},
"data": {
"property1": null,
"property2": null
},
"decodedTopics": [
{
"name": "string",
"value": null
}
],
"eventSignature": "string",
"name": "string",
"rawData": "string",
"removed": true,
"signature": "string",
"topics": [
"string"
],
"type": "string"
}
],
"methodAbi": "string",
"methodPayload": {
"property1": null,
"property2": null
},
"methodType": "string",
"nonce": 0,
"protected": true,
"rawSignature": {
"v": {}
},
"receipt": {
"blobGasPrice": {},
"blobGasUsed": 0,
"blockHash": "string",
"blockNumber": {},
"bloom": "string",
"contractAddress": "string",
"cumulativeGasUsed": 0,
"effectiveGasPrice": {},
"gasUsed": 0,
"postState": "string",
"status": 0,
"transactionIndex": 0
},
"recipient": {
"addr": "string",
"ens": "string",
"name": "string",
"tags": [
"string"
],
"type": "string"
},
"sender": {
"addr": "string",
"ens": "string",
"name": "string",
"tags": [
"string"
],
"type": "string"
},
"signature": "string",
"stateMutability": "string",
"time": "2019-08-24T14:15:22Z",
"type": 0,
"value": {},
"virtual": true,
"visibility": "string"
}
🔴500Error
Modified at 2024-05-31 11:02:21