- 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 Opcodes
POST
https://api.unpack.dev/v1/unpack/opcodes/{networkId}
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
Query Params
address
string
optional
Example:
0x0
bytecode
string
optional
Example:
6080604052...
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/opcodes/1'
Responses
🟢200OK
application/json
Body
$schema
string <uri>
read-onlyoptional
Example:
https://api.unpack.dev/schemas/Opcode.json
abi
string
required
events
array[object (PartialEvent) {12}]
required
$schema
string <uri>
read-onlyoptional
Example:
https://api.unpack.dev/schemas/PartialEvent.json
abi
string
required
anonymous
boolean
required
contractAddress
string
required
createdAt
string <date-time>
required
id
string
required
name
string
required
signature
string
required
signatureDefinition
string
required
signatureHex
string
required
unit
object (EventDefinition)
required
updatedAt
string <date-time>
required
functions
array[object (PartialFunction) {15}]
required
$schema
string <uri>
read-onlyoptional
Example:
https://api.unpack.dev/schemas/PartialFunction.json
abi
string
required
contractAddress
string
optional
createdAt
string <date-time>
required
id
string
optional
implemented
boolean
required
mutability
string
required
name
string
required
parameters
array[object (Parameter) {14}]
required
returnParameters
array[object (Parameter) {14}]
required
signature
string
required
signatureDefinition
string
required
updatedAt
string <date-time>
required
virtual
boolean
required
visibility
string
required
instructions
array[string]
required
Example
{
"$schema": "https://api.unpack.dev/schemas/Opcode.json",
"abi": "string",
"events": [
{
"$schema": "https://api.unpack.dev/schemas/PartialEvent.json",
"abi": "string",
"anonymous": true,
"contractAddress": "string",
"createdAt": "2019-08-24T14:15:22Z",
"id": "string",
"name": "string",
"signature": "string",
"signatureDefinition": "string",
"signatureHex": "string",
"unit": {
"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"
}
},
"updatedAt": "2019-08-24T14:15:22Z"
}
],
"functions": [
{
"$schema": "https://api.unpack.dev/schemas/PartialFunction.json",
"abi": "string",
"contractAddress": "string",
"createdAt": "2019-08-24T14:15:22Z",
"id": "string",
"implemented": true,
"mutability": "string",
"name": "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
}
],
"returnParameters": [
{
"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
}
],
"signature": "string",
"signatureDefinition": "string",
"updatedAt": "2019-08-24T14:15:22Z",
"virtual": true,
"visibility": "string"
}
],
"instructions": [
"string"
]
}
🔴500Error
Modified at 2024-05-31 11:02:21