/v1/history
An account own chain of blocks (block-lattice)
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/nano-api/v1/history" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/nano-api/v1/history", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/nano-api/v1/history");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/nano-api/v1/history",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"count": 15,
"source": "Nano",
"account": "nano_1nanode8ngaakzbck8smq6ru9bethqwyehomf79sae1k7xd47dkidjqzffeg",
"history": [
{
"hash": "44DF0057D33D38C317A35CF9F034B9189BAE031DE032B385E3F453E5FD5ED279",
"time": "2021-02-22T22:55:19.000Z",
"type": "send",
"height": 52,
"confirmed": true,
"amount_nano": 1,
"counterparty": "nano_3j834c8c83qtejze6wagothgjj7oq9p1dewgbpycy7dcq1ux1tb7qspinyx5"
},
{
"hash": "DBC054BDCAB0C30980A06A5F698AD4F9001607E4480B37880D53E7DDF043D962",
"time": "2021-02-22T22:55:19.000Z",
"type": "receive",
"height": 51,
"confirmed": true,
"amount_nano": 1.3886,
"counterparty": "nano_17oc98sqccfqqfah8jggkziu8i6ar8biq7syxqcd6e1sagje11gts88gfj95"
},
{
"hash": "27358427EE3E8AE5612BA12070CBAA4FD72994ED085DDC0397CE98AFC4FBE161",
"time": "2019-12-17T20:06:00.000Z",
"type": "receive",
"height": 49,
"confirmed": true,
"amount_nano": 0,
"counterparty": "nano_35qbo76yw138whnqmtbascunw3ooqfa1zgofz75cw65ikxa9ibyxoz36bx8t"
},
{
"hash": "A4ADA0C72F40BD51AABCA716EDE673EF70BF1E2853E3F320A1E74A73824996ED",
"time": "2019-12-17T20:05:58.000Z",
"type": "receive",
"height": 48,
"confirmed": true,
"amount_nano": 0,
"counterparty": "nano_1o953as4bq4yeh5e4d48meiyhgxzi6qdusb87dawfdyd1qm655x4g5rk8di8"
},
{
"hash": "2DE0A27C3C7DE24692B09D9E4E5E27548077BD673DC3799DC6080746AF986A83",
"time": "2019-12-09T18:14:30.000Z",
"type": "receive",
"height": 47,
"confirmed": true,
"amount_nano": 0.004,
"counterparty": "nano_3g3i5r8nge4g4bpq63977jsqpno1u7faojkd1u53mm8osqhm8xzyct7puwfz"
},
{
"hash": "397EF2011D4A225BAB89E48118FE4FD3FD1429F73F08FD15CE6CC3D0C98A31EF",
"time": "2019-12-09T18:14:30.000Z",
"type": "receive",
"height": 46,
"confirmed": true,
"amount_nano": 0.00102455,
"counterparty": "nano_34prihdxwz3u4ps8qjnn14p7ujyewkoxkwyxm3u665it8rg5rdqw84qrypzk"
},
{
"hash": "020A26E8094BD8213E2B5E196A242D8BAB05A8F667952A7B48E2CA4AC1DF0278",
"time": "2019-12-09T18:14:21.000Z",
"type": "receive",
"height": 45,
"confirmed": true,
"amount_nano": 0.00104332,
"counterparty": "nano_3x7cjioqahgs5ppheys6prpqtb4rdknk
…