{"id":426,"date":"2023-12-22T11:16:15","date_gmt":"2023-12-22T11:16:15","guid":{"rendered":"http:\/\/10.0.1.147\/?page_id=42"},"modified":"2024-07-30T14:38:23","modified_gmt":"2024-07-30T14:38:23","slug":"developers-hc-net-api-operations-for-account","status":"publish","type":"page","link":"https:\/\/www.hashcashconsultants.com\/developers-hc-net-api-operations-for-account\/","title":{"rendered":"Developers HC Net API Operations for Account"},"content":{"rendered":"
This endpoint represents successful operations<\/a> that were included in valid transactions<\/a> that affected a particular account<\/a>.<\/p>\n This endpoint can also be used in streaming mode so it is possible to use it to listen for new operations that affect a given account as they happen. If called in streaming mode Aurora will start at the earliest known operation unless a cursor is set. In that case it will start from the cursor. You can also set cursor value to now to only stream operations created since your request time.<\/p>\n GET \/accounts\/{account}\/operations{?cursor,limit,order}<\/p>\n Arguments<\/strong><\/p>\n Response<\/strong><\/p>\n This endpoint responds with a list of operations that affected the given account. See operation resource for reference.<\/p>\n Example Streaming Event<\/strong><\/p>\n {<\/p>\n “_links” <\/span> : {<\/p>\n “effects” <\/span> : {<\/p>\n “href”<\/span> : “\/operations\/77309415424\/effects\/{?cursor,limit,order}”<\/span>,<\/p>\n “templated”<\/span> : true<\/span><\/p>\n };<\/p>\n “precedes” <\/span> : {<\/p>\n “href”<\/span> : “\/operations?cursor=77309415424&order=asc”<\/span><\/p>\n };<\/p>\n “self” <\/span> : {<\/p>\n “href”<\/span> : “\/operations\/77309415424”<\/span><\/p>\n };<\/p>\n “succeeds” <\/span> : {<\/p>\n “href”<\/span> : “\/operations?cursor=77309415424&order=desc”<\/span><\/p>\n };<\/p>\n “transactions” <\/span> : {<\/p>\n “href”<\/span> : “\/transactions\/77309415424”<\/span><\/p>\n };<\/p>\n “account”<\/span> : “GBIA4FH6TV64KSPDAJCNUQSM7PFL4ILGUVJDPCLUOPJ7ONMKBBVUQHRO”<\/span>,<\/p>\n “funder”<\/span> : “GCEZWKCA5VLDNRLN3RPRJMRZOX3Z6G5CHCGSNFHEYVXM3XOJMDS674JZ”<\/span>,<\/p>\n “id”<\/span> : 77309415424<\/span>,<\/p>\n “paging_token”<\/span> : “77309415424”<\/span>,<\/p>\n “starting_balance”<\/span> : 1e+14<\/span>,<\/p>\n “type_i”<\/span> : 0<\/span>,<\/p>\n “type”<\/span> : “create_account”<\/span>,<\/p>\n }<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\nRequest:-<\/h5>\n
\n\n
\n \nName<\/th>\n Notes<\/th>\n Description<\/th>\n Example<\/th>\n<\/tr>\n<\/thead>\n \n account\t<\/td>\n required, string<\/td>\n Account ID<\/td>\n GA2HGBJIJKI6O4XEM7CZWY5PS6GKSXL6D34ERAJYQSPYA6X6AI7HYW36<\/td>\n<\/tr>\n \n ?cursor\t<\/td>\n optional, any, default null<\/td>\n A paging token, specifying where to start returning records from. When streaming this can be set to now to stream object created since your request time.<\/td>\n 12884905984<\/td>\n<\/tr>\n \n ?order\t<\/td>\n optional, string, default asc<\/td>\n The order in which to return rows, \u201casc\u201d or \u201cdesc\u201d.<\/td>\n asc<\/td>\n<\/tr>\n \n ?limit\t<\/td>\n optional, number, default: 10<\/td>\n Maximum number of records to return.<\/td>\n 200<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n