Skip to main content
GET
/
codes
/
{version_id}
/
nodes
/
{node_id}
get tree
curl --request GET \
  --url https://api.example.com/codes/{version_id}/nodes/{node_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "source_id": "<string>",
  "node_type": "ArrayTypeName",
  "src_start_pos": 123,
  "src_end_pos": 123,
  "name": "<string>",
  "path": "<string>",
  "is_auditable": true,
  "content": "<string>",
  "children": {},
  "contract_id": "<string>",
  "generic_id": "<string>",
  "signature": "<string>"
}

Authorizations

Authorization
string
header
required

API key in Bearer token format

Path Parameters

version_id
string
required
node_id
string
required

Response

Successful Response

id
string
required
source_id
string
required
node_type
enum<string>
required
Available options:
ArrayTypeName,
Assignment,
BinaryOperation,
Block,
Break,
Conditional,
Continue,
ContractDefinition,
DoWhileStatement,
ElementaryTypeNameExpression,
ElementaryTypeName,
EmitStatement,
EnumDefinition,
EnumValue,
ErrorDefinition,
EventDefinition,
ExpressionStatement,
FallBack,
ForStatement,
FunctionCall,
FunctionCallOptions,
FunctionDefinition,
FunctionTypeName,
Identifier,
IdentifierPath,
IfStatement,
ImportDirective,
IndexAccess,
IndexRangeAccess,
InheritanceSpecifier,
InlineAssembly,
Literal,
Mapping,
MemberAccess,
ModifierDefinition,
ModifierInvocation,
NewExpression,
OverrideSpecifier,
ParameterList,
PlaceholderStatement,
PragmaDirective,
Return,
RevertStatement,
SourceUnit,
StructuredDocumentation,
StructDefinition,
TryCatchClause,
TryStatement,
TupleExpression,
UnaryOperation,
UncheckedBlock,
UserDefinedTypeName,
UserDefinedValueTypeDefinition,
UsingForDirective,
VariableDeclaration,
VariableDeclarationStatement,
WhileStatement,
YulAssignment,
YulBlock,
YulBreak,
YulCase,
YulContinue,
YulExpressionStatement,
YulForLoop,
YulFunctionCall,
YulFunctionDefinition,
YulIdentifier,
YulIf,
YulLeave,
YulLiteral,
YulSwitch,
YulTypedName,
YulVariableDeclaration
src_start_pos
integer
required
src_end_pos
integer
required
name
string
required
path
string
required
is_auditable
boolean
required
content
string
required
children
Children · object
required
contract_id
string | null
generic_id
string | null
signature
string | null