Skip to main content
GET
/
codes
/
{version_id}
/
nodes
list nodes
curl --request GET \
  --url https://api.example.com/codes/{version_id}/nodes \
  --header 'Authorization: Bearer <token>'
{
  "results": [
    {
      "id": "<string>",
      "source_id": "<string>",
      "node_type": "ArrayTypeName",
      "src_start_pos": 123,
      "src_end_pos": 123,
      "name": "<string>",
      "path": "<string>",
      "is_auditable": true,
      "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

Query Parameters

name
string | null
node_type
enum<string> | null
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
source_id
string | null

Response

Successful Response

results
NodeAttributeSchema · object[]