(command.CommandList children: [ (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {($ Id.VSub_Pound '$#')} {<-ne>} {<1>} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<echo>} {(DQ <'Usage: '> ($ Id.VSub_Number '$0') <' <address>'>)}) (command.ControlFlow token:<Id.ControlFlow_Exit exit> 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: <Id.Left_DollarParen '$('> child: (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: <Id.Left_DollarParen '$('> child: (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: <Id.Left_DollarParen '$('> child: (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: <Id.Left_DollarParen '$('> child: (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_BadBackslash '\\'> <'tFirst seen: '>) (command_sub left_token: <Id.Left_DollarParen '$('> child: (C {<date>} {<-d>} {<Id.Lit_At '@'> ($ Id.VSub_DollarName '$first_made')}) ) } ) (C {<echo>} {<-e>} {(DQ <Id.Lit_BadBackslash '\\'> <'tCurrent balance: '>) ($ Id.VSub_DollarName '$balance')} ) (C {<echo>} {<-e>} {(DQ <Id.Lit_BadBackslash '\\'> <'tSatoshis sent: '>) ($ Id.VSub_DollarName '$sent')} ) (C {<echo>} {<-e>} {(DQ <Id.Lit_BadBackslash '\\'> <'tSatoshis recv: '>) ($ Id.VSub_DollarName '$recv')} ) ] )