- 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 Contract
POST
https://api.unpack.dev/v1/unpack/contracts/{networkId}/{address}
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
address
string
required
Example:
0x90bf4e5e508cca87c1c8470cc4d8a121157dac50
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/contracts/1/0x90bf4e5e508cca87c1c8470cc4d8a121157dac50'
Responses
🟢200OK
application/json
Body
$schema
string <uri>
read-onlyoptional
Example:
https://api.unpack.dev/schemas/Contract.json
abi
string
required
address
object (Address)
required
blockHash
object (Hash)
required
blockNumber
object (BigInt)
required
bytecode
string
required
compilerVersion
string
required
completedStates
array[string]
required
created_at
string <date-time>
required
deployerAddress
object (Address)
required
entryPoint
string
required
evmVersion
string
required
executionBytecode
string
required
failedStates
array[string]
required
id
string
required
license
string
required
name
string
required
networkId
object (BigInt)
required
optimizationRuns
integer <int64>
required
optimized
boolean
required
partial
boolean
required
processed
boolean
required
proxy
boolean
required
proxyImplementations
array[string]
required
safetyState
string
required
selfDestructed
boolean
required
solgoVersion
string
required
sourceAvailable
boolean
required
sources
array[object (SourceUnit) {3}]
required
content
string
required
name
string
required
path
string
required
sourcesProvider
string
required
standards
array[string]
required
transactionHash
object (Hash)
required
updated_at
string <date-time>
required
verificationProvider
string
required
verified
boolean
required
Example
{
"$schema": "https://api.unpack.dev/schemas/Contract.json",
"abi": "string",
"address": {},
"blockHash": {},
"blockNumber": {},
"bytecode": "string",
"compilerVersion": "string",
"completedStates": [
"string"
],
"created_at": "2019-08-24T14:15:22Z",
"deployerAddress": {},
"entryPoint": "string",
"evmVersion": "string",
"executionBytecode": "string",
"failedStates": [
"string"
],
"id": "string",
"license": "string",
"name": "string",
"networkId": {},
"optimizationRuns": 0,
"optimized": true,
"partial": true,
"processed": true,
"proxy": true,
"proxyImplementations": [
"string"
],
"safetyState": "string",
"selfDestructed": true,
"solgoVersion": "string",
"sourceAvailable": true,
"sources": [
{
"content": "string",
"name": "string",
"path": "string"
}
],
"sourcesProvider": "string",
"standards": [
"string"
],
"transactionHash": {},
"updated_at": "2019-08-24T14:15:22Z",
"verificationProvider": "string",
"verified": true
}
🔴500Error
Modified at 2024-05-31 11:02:21