(command.CommandList children: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Id.Lit_LBracket '[')} {($ Id.VSub_Pound '$#')} {(-ne)} {(1)} {(Id.Lit_RBracket ']')}) terminator: (Token id:Id.Op_Semi val:';' span_id:18) ) ] action: [ (C {(echo)} {(DQ ('Usage: ') ($ Id.VSub_Number '$0') (' <address>'))}) (command.ControlFlow token: (Token id:Id.ControlFlow_Exit val:exit span_id:32) arg_word: {(1)} ) ] spids: [7 20] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:base_url) op: assign_op.Equal rhs: {(DQ ('https://blockchain.info/q/'))} spids: [39] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:balance) op: assign_op.Equal rhs: { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:46) command_list: (command.CommandList children: [ (C {(curl)} {(-s)} {($ Id.VSub_DollarName '$base_url') (DQ (addressbalance/)) ($ Id.VSub_Number '$1') } ) ] ) ) } spids: [45] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:recv) op: assign_op.Equal rhs: { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:59) command_list: (command.CommandList children: [ (C {(curl)} {(-s)} {($ Id.VSub_DollarName '$base_url') (DQ (getreceivedbyaddress/)) ($ Id.VSub_Number '$1') } ) ] ) ) } spids: [58] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:sent) op: assign_op.Equal rhs: { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:72) command_list: (command.CommandList children: [ (C {(curl)} {(-s)} {($ Id.VSub_DollarName '$base_url') (DQ (getsentbyaddress/)) ($ Id.VSub_Number '$1') } ) ] ) ) } spids: [71] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:first_made) op: assign_op.Equal rhs: { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:85) command_list: (command.CommandList children: [ (C {(curl)} {(-s)} {($ Id.VSub_DollarName '$base_url') (DQ (addressfirstseen/)) ($ Id.VSub_Number '$1') } ) ] ) ) } spids: [84] ) ] ) (C {(echo)} {(DQ ('Details for address ') ($ Id.VSub_Number '$1'))}) (C {(echo)} {(-e)} {(DQ (Id.Lit_Other '\\') ('tFirst seen: ')) (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:113) command_list: (command.CommandList children: [(C {(date)} {(-d)} {(Id.Lit_Other '@') ($ Id.VSub_DollarName '$first_made')})] ) ) } ) (C {(echo)} {(-e)} {(DQ (Id.Lit_Other '\\') ('tCurrent balance: ')) ($ Id.VSub_DollarName '$balance')} ) (C {(echo)} {(-e)} {(DQ (Id.Lit_Other '\\') ('tSatoshis sent: ')) ($ Id.VSub_DollarName '$sent')}) (C {(echo)} {(-e)} {(DQ (Id.Lit_Other '\\') ('tSatoshis recv: ')) ($ Id.VSub_DollarName '$recv')}) ] )