{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://zieapi.vercel.app"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/cloud:chain49/get-available-blockchains":{"get":{"operationId":"cloud_chain49_get_available_blockchains","summary":"List available blockchains","description":"GET /","tags":["cloud"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:chain49/get-blockchain":{"get":{"operationId":"cloud_chain49_get_blockchain","summary":"Blockchain Info Summary","description":"GET /{blockchain}","tags":["cloud"],"parameters":[{"name":"blockchain","in":"query","required":true,"description":"Blockchain name","schema":{"type":"string","description":"Blockchain name"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:chain49/get-address-v2":{"get":{"operationId":"cloud_chain49_get_address_v2","summary":"Get address V2","description":"GET /{blockchain}/v2/address/{address}","tags":["cloud"],"parameters":[{"name":"blockchain","in":"query","required":true,"description":"Blockchain name","schema":{"type":"string","description":"Blockchain name"}},{"name":"address","in":"query","required":true,"description":"Wallet address","schema":{"type":"string","description":"Wallet address"}},{"name":"page","in":"query","required":false,"description":"specifies page of returned transactions, starting from 1. If out of range, Blockbook returns the closest possible page.","schema":{"type":"integer","description":"specifies page of returned transactions, starting from 1. If out of range, Blockbook returns the closest possible page."}},{"name":"pageSize","in":"query","required":false,"description":"number of transactions returned by call (default and maximum 1000)","schema":{"type":"integer","description":"number of transactions returned by call (default and maximum 1000)"}},{"name":"fromBlock","in":"query","required":false,"description":"filter of the returned transactions from block height to block height (default no filter)","schema":{"type":"integer","description":"filter of the returned transactions from block height to block height (default no filter)"}},{"name":"toBlock","in":"query","required":false,"description":"filter of the returned transactions from block height to block height (default no filter)","schema":{"type":"integer","description":"filter of the returned transactions from block height to block height (default no filter)"}},{"name":"details","in":"query","required":false,"description":"specifies level of details returned by request","schema":{"type":"string","enum":["basic","tokens","tokenBalances","txids","txslight","txs"],"default":"txids","description":"specifies level of details returned by request"}},{"name":"contract","in":"query","required":false,"description":"return only transactions which affect specified contract (applicable only to coins which support contracts)","schema":{"type":"string","description":"return only transactions which affect specified contract (applicable only to coins which support contracts)"}},{"name":"secondary","in":"query","required":false,"description":"specifies secondary (fiat) currency in which the token and total balances are returned in addition to crypto values","schema":{"type":"string","description":"specifies secondary (fiat) currency in which the token and total balances are returned in addition to crypto values"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:chain49/get-balance-history-v2":{"get":{"operationId":"cloud_chain49_get_balance_history_v2","summary":"Get Balance History V2","description":"GET /{blockchain}/v2/balancehistory/{addressOrXpub}","tags":["cloud"],"parameters":[{"name":"blockchain","in":"query","required":true,"description":"Blockchain name","schema":{"type":"string","description":"Blockchain name"}},{"name":"addressOrXpub","in":"query","required":true,"description":"Address or XPUB","schema":{"type":"string","description":"Address or XPUB"}},{"name":"fromDate","in":"query","required":false,"description":"specifies a start date as a Unix timestamp","schema":{"type":"string","description":"specifies a start date as a Unix timestamp"}},{"name":"toDate","in":"query","required":false,"description":"specifies an end date as a Unix timestamp","schema":{"type":"string","description":"specifies an end date as a Unix timestamp"}},{"name":"fiatcurrency","in":"query","required":false,"description":"if specified, the response will contain secondary (fiat) rate at the time of transaction. If not, all available currencies will be returned","schema":{"type":"string","description":"if specified, the response will contain secondary (fiat) rate at the time of transaction. If not, all available currencies will be returned"}},{"name":"groupBy","in":"query","required":false,"description":"an interval in seconds, to group results by. Default is 3600 seconds","schema":{"type":"number","default":3600,"description":"an interval in seconds, to group results by. Default is 3600 seconds"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:chain49/get-block-hash-v2":{"get":{"operationId":"cloud_chain49_get_block_hash_v2","summary":"Get block hash V2","description":"GET /{blockchain}/v2/block-index/{blockHeight}","tags":["cloud"],"parameters":[{"name":"blockchain","in":"query","required":true,"description":"Blockchain name","schema":{"type":"string","description":"Blockchain name"}},{"name":"blockHeight","in":"query","required":true,"description":"Block height/index","schema":{"type":"integer","description":"Block height/index"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:chain49/get-block-v2":{"get":{"operationId":"cloud_chain49_get_block_v2","summary":"Get Block V2","description":"GET /{blockchain}/v2/block/{blockHashOrHeight}","tags":["cloud"],"parameters":[{"name":"blockchain","in":"query","required":true,"description":"Blockchain name","schema":{"type":"string","description":"Blockchain name"}},{"name":"blockHashOrHeight","in":"query","required":true,"description":"Block hash or height","schema":{"type":"string","description":"Block hash or height"}},{"name":"page","in":"query","required":false,"description":"specifies page of returned transactions, starting from 1. If out of range, Blockbook returns the closest possible page.","schema":{"type":"integer","description":"specifies page of returned transactions, starting from 1. If out of range, Blockbook returns the closest possible page."}},{"name":"pageSize","in":"query","required":false,"description":"number of transactions returned by call (default and maximum 1000)","schema":{"type":"integer","description":"number of transactions returned by call (default and maximum 1000)"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:chain49/get-estimate-fee-v2":{"get":{"operationId":"cloud_chain49_get_estimate_fee_v2","summary":"Estimate transaction fee V2","description":"GET /{blockchain}/v2/estimatefee/{confirmationTarget}","tags":["cloud"],"parameters":[{"name":"blockchain","in":"query","required":true,"description":"Blockchain name","schema":{"type":"string","description":"Blockchain name"}},{"name":"confirmationTarget","in":"query","required":true,"description":"Number of blocks in which the transaction should be confirmed","schema":{"type":"integer","description":"Number of blocks in which the transaction should be confirmed"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:chain49/get-mempool-v2":{"get":{"operationId":"cloud_chain49_get_mempool_v2","summary":"Get Mempool V2","description":"GET /{blockchain}/v2/mempool/","tags":["cloud"],"parameters":[{"name":"blockchain","in":"query","required":true,"description":"Blockchain name","schema":{"type":"string","description":"Blockchain name"}},{"name":"page","in":"query","required":false,"description":"specifies page of returned transactions, starting from 1. If out of range, Blockbook returns the closest possible page.","schema":{"type":"integer","description":"specifies page of returned transactions, starting from 1. If out of range, Blockbook returns the closest possible page."}},{"name":"pageSize","in":"query","required":false,"description":"number of transactions returned by call (default and maximum 1000)","schema":{"type":"integer","description":"number of transactions returned by call (default and maximum 1000)"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:chain49/get-nftmeta-v2":{"get":{"operationId":"cloud_chain49_get_nftmeta_v2","summary":"Get NFT metadata V2","description":"GET /{blockchain}/v2/nft/{nftContract}/{nftTokenId}","tags":["cloud"],"parameters":[{"name":"blockchain","in":"query","required":true,"description":"NFT-compatible blockchain name","schema":{"type":"string","description":"NFT-compatible blockchain name"}},{"name":"nftContract","in":"query","required":true,"description":"Address of NFT contract","schema":{"type":"string","description":"Address of NFT contract"}},{"name":"nftTokenId","in":"query","required":true,"description":"Unique token ID of NFT","schema":{"type":"string","description":"Unique token ID of NFT"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:chain49/get-raw-block-v2":{"get":{"operationId":"cloud_chain49_get_raw_block_v2","summary":"Get raw block data V2","description":"GET /{blockchain}/v2/rawblock/{blockHashOrHeight}","tags":["cloud"],"parameters":[{"name":"blockchain","in":"query","required":true,"description":"Blockchain name","schema":{"type":"string","description":"Blockchain name"}},{"name":"blockHashOrHeight","in":"query","required":true,"description":"Block hash or height","schema":{"type":"string","description":"Block hash or height"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:chain49/post-send-tx-v2":{"post":{"operationId":"cloud_chain49_post_send_tx_v2","summary":"Send transaction (POST) V2","description":"POST /{blockchain}/v2/sendtx/","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["blockchain"],"properties":{"blockchain":{"type":"string","description":"Blockchain name"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:chain49/get-send-tx-v2":{"get":{"operationId":"cloud_chain49_get_send_tx_v2","summary":"Send transaction (in URL) V2","description":"GET /{blockchain}/v2/sendtx/{hex}","tags":["cloud"],"parameters":[{"name":"blockchain","in":"query","required":true,"description":"Blockchain name","schema":{"type":"string","description":"Blockchain name"}},{"name":"hex","in":"query","required":true,"description":"Transaction hex data","schema":{"type":"string","description":"Transaction hex data"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:chain49/get-tickers-list-v2":{"get":{"operationId":"cloud_chain49_get_tickers_list_v2","summary":"Get Tickers list V2","description":"GET /{blockchain}/v2/tickers-list/","tags":["cloud"],"parameters":[{"name":"blockchain","in":"query","required":true,"description":"Blockchain name","schema":{"type":"string","description":"Blockchain name"}},{"name":"timestamp","in":"query","required":false,"description":"specifies a Unix timestamp to (/tickers-list) return available tickers for or (/tickers) that specifies a date to return currency rates…","schema":{"type":"string","description":"specifies a Unix timestamp to (/tickers-list) return available tickers for or (/tickers) that specifies a date to return currency rates…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:chain49/get-tickers-v2":{"get":{"operationId":"cloud_chain49_get_tickers_v2","summary":"Get Tickers V2","description":"GET /{blockchain}/v2/tickers/","tags":["cloud"],"parameters":[{"name":"blockchain","in":"query","required":true,"description":"Blockchain name","schema":{"type":"string","description":"Blockchain name"}},{"name":"timestamp","in":"query","required":false,"description":"specifies a Unix timestamp to (/tickers-list) return available tickers for or (/tickers) that specifies a date to return currency rates…","schema":{"type":"string","description":"specifies a Unix timestamp to (/tickers-list) return available tickers for or (/tickers) that specifies a date to return currency rates…"}},{"name":"currency","in":"query","required":false,"description":"specifies a currency of returned rate (\"usd\", \"eur\", \"eth\"...). If not specified, all available currencies will be returned","schema":{"type":"string","description":"specifies a currency of returned rate (\"usd\", \"eur\", \"eth\"...). If not specified, all available currencies will be returned"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:chain49/get-tx-specific-v2":{"get":{"operationId":"cloud_chain49_get_tx_specific_v2","summary":"Get transaction (as is from Backend) V2","description":"GET /{blockchain}/v2/tx-specific/{txId}","tags":["cloud"],"parameters":[{"name":"blockchain","in":"query","required":true,"description":"Blockchain name","schema":{"type":"string","description":"Blockchain name"}},{"name":"txId","in":"query","required":true,"description":"Transaction ID","schema":{"type":"string","description":"Transaction ID"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:chain49/get-transaction-v2":{"get":{"operationId":"cloud_chain49_get_transaction_v2","summary":"Get transaction V2","description":"GET /{blockchain}/v2/tx/{txId}","tags":["cloud"],"parameters":[{"name":"blockchain","in":"query","required":true,"description":"Blockchain name","schema":{"type":"string","description":"Blockchain name"}},{"name":"txId","in":"query","required":true,"description":"Transaction ID","schema":{"type":"string","description":"Transaction ID"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:chain49/get-utxov2":{"get":{"operationId":"cloud_chain49_get_utxov2","summary":"Get UTXO V2","description":"GET /{blockchain}/v2/utxo/{addressOrXpub}","tags":["cloud"],"parameters":[{"name":"blockchain","in":"query","required":true,"description":"Blockchain name","schema":{"type":"string","description":"Blockchain name"}},{"name":"addressOrXpub","in":"query","required":true,"description":"Address or XPUB","schema":{"type":"string","description":"Address or XPUB"}},{"name":"confirmed","in":"query","required":false,"description":"confirmed=true disables return of unconfirmed transactions","schema":{"type":"boolean","description":"confirmed=true disables return of unconfirmed transactions"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:chain49/get-xpub-v2":{"get":{"operationId":"cloud_chain49_get_xpub_v2","summary":"Get xpub V2","description":"GET /{blockchain}/v2/xpub/{xpub}","tags":["cloud"],"parameters":[{"name":"blockchain","in":"query","required":true,"description":"Blockchain name","schema":{"type":"string","description":"Blockchain name"}},{"name":"xpub","in":"query","required":true,"description":"xpub or output descriptor, applicable only for Bitcoin-type coins","schema":{"type":"string","description":"xpub or output descriptor, applicable only for Bitcoin-type coins"}},{"name":"page","in":"query","required":false,"description":"specifies page of returned transactions, starting from 1. If out of range, Blockbook returns the closest possible page.","schema":{"type":"integer","description":"specifies page of returned transactions, starting from 1. If out of range, Blockbook returns the closest possible page."}},{"name":"pageSize","in":"query","required":false,"description":"number of transactions returned by call (default and maximum 1000)","schema":{"type":"integer","description":"number of transactions returned by call (default and maximum 1000)"}},{"name":"fromBlock","in":"query","required":false,"description":"filter of the returned transactions from block height to block height (default no filter)","schema":{"type":"integer","description":"filter of the returned transactions from block height to block height (default no filter)"}},{"name":"toBlock","in":"query","required":false,"description":"filter of the returned transactions from block height to block height (default no filter)","schema":{"type":"integer","description":"filter of the returned transactions from block height to block height (default no filter)"}},{"name":"details","in":"query","required":false,"description":"specifies level of details returned by request","schema":{"type":"string","enum":["basic","tokens","tokenBalances","txids","txslight","txs"],"default":"txids","description":"specifies level of details returned by request"}},{"name":"tokens","in":"query","required":false,"description":"specifies what tokens (xpub addresses) are returned by the request (default nonzero)","schema":{"type":"string","enum":["nonzero","used","derived"],"default":"nonzero","description":"specifies what tokens (xpub addresses) are returned by the request (default nonzero)"}},{"name":"secondary","in":"query","required":false,"description":"specifies secondary (fiat) currency in which the token and total balances are returned in addition to crypto values","schema":{"type":"string","description":"specifies secondary (fiat) currency in which the token and total balances are returned in addition to crypto values"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}