100%

Operations For Account

Operations for Account

This endpoint represents successful operations that were included in valid transactions that affected a particular account.

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.

Request:-

GET /accounts/{account}/operations{?cursor,limit,order}

Arguments

Name Notes Description Example
account required, string Account ID GA2HGBJIJKI6O4XEM7CZWY5PS6GKSXL6D34ERAJYQSPYA6X6AI7HYW36
?cursor optional, any, default null 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. 12884905984
?order optional, string, default asc The order in which to return rows, “asc” or “desc”. asc
?limit optional, number, default: 10 Maximum number of records to return. 200

Response

This endpoint responds with a list of operations that affected the given account. See operation resource for reference.

Example Streaming Event

{

"_links" : {

"effects" : {

"href" : "/operations/77309415424/effects/{?cursor,limit,order}",

"templated" : true

};

"precedes" : {

"href" : "/operations?cursor=77309415424&order=asc"

};

"self" : {

"href" : "/operations/77309415424"

};

"succeeds" : {

"href" : "/operations?cursor=77309415424&order=desc"

};

"transactions" : {

"href" : "/transactions/77309415424"

};

"account" : "GBIA4FH6TV64KSPDAJCNUQSM7PFL4ILGUVJDPCLUOPJ7ONMKBBVUQHRO",

"funder" : "GCEZWKCA5VLDNRLN3RPRJMRZOX3Z6G5CHCGSNFHEYVXM3XOJMDS674JZ",

"id" : 77309415424,

"paging_token" : "77309415424",

"starting_balance" : 1e+14,

"type_i" : 0,

"type" : "create_account",

}

"https://network.paybito.com/accounts/GB55ZCH6WXZLJRUP3J36NHZSMIPNW24LZNGAOOLMFTJTIRZCCSUTY7XW/operations"

"_embedded" : {

"records" : [

{

"_links" : {

"effects" : {

"href" : "/operations/47184510717953/effects",

"templated" : true

};

"precedes" : {

"href" : "/effects?order=asc\u0026cursor=47184510717953"

};

"self" : {

"href" : "/operations/47184510717953"

};

"succeeds" : {

"href" : "/effects?order=desc\u0026cursor=47184510717953"

};

"transactions" : {

"href" : "/transactions/6558ca87a30140492eaa8a88572d45fb2728ebbc1eccf48f2dc6ddfe8cae2d79"

}

};

"account" : "GB55ZCH6WXZLJRUP3J36NHZSMIPNW24LZNGAOOLMFTJTIRZCCSUTY7XW",

"funder" : "GBXVKIPRDNPTXA6R6OREEY3GDFDUUR6MTY7XKBO62QVXRG4ZQBAMWMEO",

"id" : 47184510717953,

"paging_token" : "47184510717953",

"starting_balance" : 100000.0000000,

"created_at" : "2018-12-20T06:44:24Z",

"transaction_hash" : "6558ca87a30140492eaa8a88572d45fb2728ebbc1eccf48f2dc6ddfe8cae2d79",

"starting_balance" : 100000.0000000,

"type_i" : 0,

"type" : "create_account",

}

]

},

"_links" : {

"next" : {

"href" : "/accounts/GB55ZCH6WXZLJRUP3J36NHZSMIPNW24LZNGAOOLMFTJTIRZCCSUTY7XW/operations?cursor=1498342290886657\u0026limit=10\u0026order=asc"

},

"prev" : {

"href" : "/accounts/GB55ZCH6WXZLJRUP3J36NHZSMIPNW24LZNGAOOLMFTJTIRZCCSUTY7XW/operations?cursor=47184510717953\u0026limit=10\u0026order=desc"

},

"self" : {

"href" : "/accounts/GB55ZCH6WXZLJRUP3J36NHZSMIPNW24LZNGAOOLMFTJTIRZCCSUTY7XW/operations?cursor=\u0026limit=10\u0026order=asc"

}

}

}

+
Chat Now
Welcome to HashCash Support