Skip to content

Transactions for program

Connection info

Returns all new transactions for the program specified.

ENDPOINT
wss://aleo-mainnet.obscura.build/v1/<API>/ws/?topic=blocks
ENDPOINT
wss://aleo-testnetbeta.obscura.build/v1/<API>/ws/?topic=blocks

Arguments

Parameter Type Required Description
programId string Yes The program id for the requested transactions

Response

Type Description
Transaction The latest transaction for the specified program

Example Request

bash wscat -c "wss://aleo-mainnet.obscura.build/v1/<API_KEY>/ws/?topic=transactions&programId=credits.aleo"

bash wscat -c "wss://aleo-testnetbeta.obscura.build/v1/<API_KEY>/ws/?topic=transactions&programId=credits.aleo"

Example Response

{
    "status": "accepted",
    "type": "execute",
    "index": 0,
    "transaction": {
        "type": "execute",
        "id": "at1pdteuw48qgftt5yjs7rk6rznptm77y2jxhxazs8m24239cny6crq3lkg2h",
        "execution": {
            "transitions": [{
                "id": "au1engrn60lc2up3mvmxn80jykcm7lru4yp8g7k57w5sq62n0xl5cxqt7lept",
                "program": "credits.aleo",
                "function": "transfer_public",
                "inputs": [{
                    "type": "public",
                    "id": "3258766913337409345533749309457243930782809349676896173456796060718167239933field",
                    "value": "aleo1q6qstg8q8shwqf5m6q5fcenuwsdqsvp4hhsgfnx5chzjm3secyzqt9mxm8"
                }, {
                    "type": "public",
                    "id": "3807838022889055379333338959138627759709820678865471019820605940876940630113field",
                    "value": "1u64"
                }],
                "outputs": [{
                    "type": "future",
                    "id": "3144546910045886121664284353761075322269703726676290583735428129653004620426field",
                    "value": "{\n  program_id: credits.aleo,\n  function_name: transfer_public,\n  arguments: [\n    aleo1q6qstg8q8shwqf5m6q5fcenuwsdqsvp4hhsgfnx5chzjm3secyzqt9mxm8,\n    aleo1q6qstg8q8shwqf5m6q5fcenuwsdqsvp4hhsgfnx5chzjm3secyzqt9mxm8,\n    1u64\n  ]\n}"
                }],
                "tpk": "4652658084682850407340656747687100736189896996485678231361396382272185068324group",
                "tcm": "5161629792234896989578355781210768056359533176824818567404279093653458809893field"
            }],
            "global_state_root": "sr1qqz4ley3yl0kqwqarhwvmyseav7fjy2l3r9k0a6pzfy2jpwvfqqs8rj0g4",
            "proof": "proof1qyqsqqqqqqqqqqqpqqqqqqqqqqqv605h8q6z5s445ulzecxdghqzh9mqme7r4g4996fzyv550fwuyzzu8dqeakecfkq4kt2lq8l585gqq8htplrwq0djcmw263q2c8x0m6urefg5nerghasm8d8dfy7tueea4wx2q2wj5f3tnvx50plwlx3gzq8pl2nnkm5kz4vzffcztd700du6hghnefd4patk8avkdr0tf0exslaputm9kpx6nntmsfzyqdgj3qqgxgydpzm3uhaccf5dj968yd9f264mcwnyyu2pgd5q3qugv7k9t584dgr40d9upxc70nd5vu8faqqqj8v6y2eesrn7g3rus9neg4tzechpx6dcw46dlkksrlte6nl0z8cluxd8avgyywk4ejfgqq06cfhgpkg4kdjpexlf9ps79ek4mzr4jn4ascjwvvvg368k7z6a2rzpnh9sacvtzxwk8k0pnmwqqtf94x3qs9exp0c09h98kp437hraaen7aycd6t7e5tq7fcdwg4ljr9agltv7e338j0wxfkvaurl8ymeec3jf5q8hu22p9q7qt0rgyz0n74pa9gdcd5rsfdykg6ctnka0p3t6pa6psh40s22lp4d5zq3radf5p2zcvyqvwntpf4pvfex2n4hdgngqlx3m6wfy4g9s9x5k3q6a0spclk3arq5ghc807q5fa6fgh35wcv5nazcq6r92frrwssyuhrdynxfw7vdh0qg0d56vwht85hp92t2v8pececg45q40wk90ng3dujc4n26h9az8zwpxfj0d0rfulqxvh5wgd7e7gz3h36v6xfuhs2adr9vutwmcuvq8grn5sc28vy4thgu45cwf55q8qh3m0ypv9hy9dd7zmtesgnydju3k9trgntr7lkvffdgf5r2zrdysh3gsvxws4cm7sccn3feaaal96mnrr22z6cq577yr0373mwm855c9z64aqwujs62asld8yrr499m6ha5h38uymcqtjew5akf5y7ym5c94cdmyxh6jde5khfwwsrt4zku43sl7sj56vs6g0pe2qhsvjzwpxzktm4xgaw2mwll4t6sy4ry50gzdar728w8jgdrw29tfek56lwdrpqvyz3f0rtpjqtc93j82cm7e26fas5xps64jqr740hvww52d8dvqlyxq3uq2rmh32hkrm0drzc8lkdt93qcr4ng8enermxcaalvx90c3qvqqqqqqqqqqpkll7wfaqr7qc0pjtflq4kc0n2ufexj6ndg2awl3cynkan9sljs8hjzqs8edtxlkd0x6u2cvwumqsqqghv96s39t9gsq50e0ptzszax7wry08s980z4hdk06ewruzslrxnk8gcclzfyk0wyctcuzm9n50qvpqxvyze4r623vmh55jaaws6np85vf7f2lz0pns4qaccsl9dwnpk3prtxxj5a6w7sld9rjxtujnf8vpqskqdxkayjthusna3jr4yngje7fmfvrwlpz7a59qdcz7cdd86gasyqqktxs79"
        },
        "fee": {
            "transition": {
                "id": "au1uferu7zwt48j22s8h0ezhm96774tvw0dgd4mf8c7p589jnjsgugst0mmug",
                "program": "credits.aleo",
                "function": "fee_public",
                "inputs": [{
                    "type": "public",
                    "id": "3774772521619562516125106877394060936677074982538108437258052634219967332382field",
                    "value": "263388u64"
                }, {
                    "type": "public",
                    "id": "8425888226955382319179623348184536689054255560860022340272353837683133863593field",
                    "value": "10000u64"
                }, {
                    "type": "public",
                    "id": "1852853091304453956256029009415100168124205576189861786040502449210330226165field",
                    "value": "7406838093549339478556761411627438394168263771359818518426338513212184428652field"
                }],
                "outputs": [{
                    "type": "future",
                    "id": "3613606708299862032037751050812535912461083078733538785383455414123722391203field",
                    "value": "{\n  program_id: credits.aleo,\n  function_name: fee_public,\n  arguments: [\n    aleo1q6qstg8q8shwqf5m6q5fcenuwsdqsvp4hhsgfnx5chzjm3secyzqt9mxm8,\n    273388u64\n  ]\n}"
                }],
                "tpk": "4435004771616963841050500162765133453739561226951736304656876039757876158647group",
                "tcm": "1468824876571046858777162668421345764005536321376602616052360297164303964689field"
            },
            "global_state_root": "sr1qqz4ley3yl0kqwqarhwvmyseav7fjy2l3r9k0a6pzfy2jpwvfqqs8rj0g4",
            "proof": "proof1qyqsqqqqqqqqqqqpqqqqqqqqqqqrmtx84g72ypgwcn7d7jarntx09kj2nva043mpk56lyjcp09x9nmp84p4ww0e6sgx73z8mqua60csqqyvwh767e4g37p204ntv2yx0kd4vxt9n9pmjxqss5hu3huy2tvll75rnf36tfllfg0mfgveanuyvrq8ddae0a4xa2e66hyf9gk3rk7yy49tglnsnkpwmysau59vg337fdpx9dvjrlf760phpy8s36k6kygqzwldpl4fkckww4phlr722v2p7pme9lk4q74gcfxd3h7nsftmf97mc5y6xupwrael5jhs9g3py0n5qg34mylg5d2u96ew2pxfnpa0ery6fqn6cx8jr83la72lz4q4r2l2c2jm6surzgnsjwyl54hsq34rqpnj44cjdn7ujmp9l2l6k24saeeljes5qyreravq23p9zmkyflum6ud3qqkpqra75ztvcnhvlnpcaq9g4qqp05y30qvtcrguymknl8np2m6anc7af68a7zs0wdf5w926ksswtnkq46ceuq2rq7h7s59r2rqxmrfat6nxntdcf94t3mmagl8c6gper28ufk8ll0h73ppquqh4ge3pr095vus7mm4xk6n5y7rwpjkq7vkrv7lh9759jnq473hwrdqcxwwglw2y7ntvv43k8wkxursun9wfny68hxjamfy8spkanectu0ggpcjfjt2fpn5zkv8ngnqj0l38hs298s9e8g7ggs3rj9mdjs230ku8ulg44gvdwfptse79ha2pmklvx50w3s8pz6ej4emllhg9s9f5wuzxnu06gj5m43rkgm0t2lzp6g65yy3pfg2lgr8cz2snvc2tw3709q5f6lxgstr26pn8dmt3jczkahgxfkjstgdqj60e82wytq24jpausdejpt3pzecsdulcvw44erup89hftaf6p0w0h0m3e4tztgjut2egwkjlz9udfhv7zfcg0qkeyq9098jp57a35h94v0vjl9cv6hpfetvxwr0t8v5f2la724ecr7k7s9yljazp9xsq0pcptvy62xflp83fh6pfnrrqw9fthyaskmq653pdzlclpu505lezc2fts5s02pezs3anxz9jhvm03u86gahauxw8zzzagpem0mhjwacayuckjlwufkxf3apvs6daevkl3pzfy55jq5fcu499e37udjq5yy7pktjl56sxcwv9fd5g9qvqqqqqqqqqqqk9tpe2ntejtxuxr68u98x9tnc206q4q5gfq0xpqpzw0xlkts0eh0j2kcv8tzqnqgep84p5h7lqtqyqf7ptjj23y88ch9gd67prp6tvt28000p6uzjrf95hh2lvegla9pp4rmjckw6newdvy3laynlmsthqqq8ut86sc6tjuwk7epp9klqzcgp3qqy07tst0tpc4nyee29k4yewszetczwv8lqzt3h5p3xhdwdayr3a4cyq95qrpegau28j8g94va6erqae5fuqkqhtpalgap32zqfu8qqqq2jdltg"
        }
    },
    "finalize": [{
        "type": "update_key_value",
        "mapping_id": "2855157744830843716005407030207142101853521493742120919939436395872133863104field",
        "index": 0,
        "key_id": "3024437819920267001397955368796529189477001337864961277902746027317009395679field",
        "value_id": "989194367136985757915820176845115436529217137041465223634091236676980975322field"
    }, {
        "type": "update_key_value",
        "mapping_id": "2855157744830843716005407030207142101853521493742120919939436395872133863104field",
        "index": 0,
        "key_id": "3024437819920267001397955368796529189477001337864961277902746027317009395679field",
        "value_id": "1118286723641974295902866176422787325019861436022728995854823722263680881555field"
    }, {
        "type": "update_key_value",
        "mapping_id": "2855157744830843716005407030207142101853521493742120919939436395872133863104field",
        "index": 0,
        "key_id": "3024437819920267001397955368796529189477001337864961277902746027317009395679field",
        "value_id": "1276752326147242717590487926366067098236448982309325498948509373514396375431field"
    }]
}