Skip to content

Commit

Permalink
making structure more consistent and adding latest apidoc updates
Browse files Browse the repository at this point in the history
  • Loading branch information
juraj.bacovcin committed Apr 11, 2024
1 parent fbf53ee commit f2519f9
Show file tree
Hide file tree
Showing 244 changed files with 8,393 additions and 52,834 deletions.
153 changes: 152 additions & 1 deletion categories/blockchain/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ tags:
'
name: Algorand
- description:
"<p>Base is a secure, low-cost, builder-friendly Ethereum L2 built\
\ to bring the next billion users onchain..\n <br/>\n Tatum supports 2 chains:\n\
\ <ul>\n <li>Base Mainnet is a regular live chain. The explorer can be\
\ found at <a target=\"_blank\" href=\"https://basescan.org\">https://basescan.org</a>.</li>\n\
\ <li>Base Sepolia is a public testnet for Base. The explorer can be found\
\ at <a target=\"_blank\" href=\"https://sepolia-explorer.base.org\">https://sepolia-explorer.base.org</a>.</li>\n\
\ </ul>\n</p>\n"
name: Base
- description:
'<p>Bitcoin Blockchain enables access to the most commonly used Bitcoin
methods. These methods bring a small level of abstraction
Expand Down Expand Up @@ -127,6 +136,16 @@ tags:
\ it can generate 2^31 addresses from 1 mnemonic phrase. It is possible to generate\
\ this type of wallet with 1 simple API call.</p>\n"
name: Celo
- description:
"<p>Cronos is an EVM-based blockchain which gives developers secure\
\ decentralized access to high-integrity data from other chains and the internet.\n\
\ <br/>\n Tatum supports 2 chains:\n <ul>\n <li>Cronos Mainnet is\
\ a regular live chain. The explorer can be found at <a target=\"_blank\" href=\"\
https://cronoscan.com/\">https://cronoscan.com/</a>.</li>\n <li>Cronos Testnet\
\ is a testing chain for developers. The explorer can be found at <a target=\"\
_blank\" href=\"https://explorer.cronos.org/testnet\">https://explorer.cronos.org/testnet</a>.</li>\
\ \n </ul>\n</p>\n"
name: Cronos
- description:
"<p>Dogecoin Blockchain enables access to the most commonly used Dogecoin\
\ methods. These methods bring a small level of abstraction\n and are used for\
Expand Down Expand Up @@ -177,6 +196,10 @@ tags:
The testnet cryptocurrency has no value, and you can obtain it from a faucet (for
example, <a target="_blank" href="https://fauceth.komputing.org/">FaucETH</a>).</li>
<li><b>Holesky</b>, a network for testing validation and staking and is open for
users who want to test protocol upgrades before deploying them on mainnet. The
testnet cryptocurrency has no value.</li>
</ul>
'
Expand Down Expand Up @@ -206,6 +229,23 @@ tags:
You have to have existing account on the Flow to initialize new address creation.\
\ Transactions on the Flow blockchain are free.</p>\n"
name: Flow
- description:
"<p>Flare is an EVM-based Layer 1 which gives developers secure decentralized\
\ access to high-integrity data from other chains and the internet.\n<br/>\nTatum\
\ supports 4 chains:\n<ul>\n <li>Flare Mainnet is a regular live chain. The explorer\
\ can be found at <a target=\"_blank\" href=\"https://flare-explorer.flare.network/\"\
>https://flare-explorer.flare.network/</a>.</li>\n <li>Flare Coston is Songbird's\
\ public test network, designed for developers. The explorer can be found at <a\
\ target=\"_blank\" href=\"https://coston-explorer.flare.network/\">https://coston-explorer.flare.network/</a>.</li>\n\
\ <li>Flare Coston 2 is Flare's public test network, created with developers\
\ in mind. The explorer can be found at <a target=\"_blank\" href=\"https://coston2-explorer.flare.network/\"\
>https://coston2-explorer.flare.network/</a>\n </li>\n <li>Flare Songbird is\
\ the canary network, where SGB is the native currency. Created with users in\
\ mind, it is meant for testing features under \"real fire\" conditions, before\
\ deploying them on the main network. The explorer can be found at <a target=\"\
_blank\" href=\"https://songbird-explorer.flare.network/\">https://songbird-explorer.flare.network/</a>.</li>\n\
</ul></p>\n"
name: Flare
- description:
'<p>Harmony.ONE is an Oneeum L2 scaling solution 100% EVM compatible,
and is very good for decentralized application (Dapp) development within many
Expand Down Expand Up @@ -465,6 +505,9 @@ paths:
/v3/bitcoin/transaction/address/{address}:
get:
$ref: categories/blockchain/paths/v3_bitcoin_transaction_address_{address}_get.yml
/v3/bitcoin/transaction/address/batch:
post:
$ref: categories/blockchain/paths/v3_bitcoin_transaction_address_batch_post.yml
/v3/bitcoin/transaction:
post:
$ref: categories/blockchain/paths/v3_bitcoin_transaction_post.yml
Expand Down Expand Up @@ -922,6 +965,42 @@ paths:
/v3/polygon/broadcast:
post:
$ref: categories/blockchain/paths/v3_polygon_broadcast_post.yml
/v3/cronos/wallet:
get:
$ref: categories/blockchain/paths/v3_cronos_wallet_get.yml
/v3/cronos/address/{xpub}/{index}:
get:
$ref: categories/blockchain/paths/v3_cronos_address_{xpub}_{index}_get.yml
/v3/cronos/wallet/priv:
post:
$ref: categories/blockchain/paths/v3_cronos_wallet_priv_post.yml
/v3/cronos/web3/{xApiKey}:
post:
$ref: categories/blockchain/paths/v3_cronos_web3_{xApiKey}_post.yml
/v3/cronos/block/current:
get:
$ref: categories/blockchain/paths/v3_cronos_block_current_get.yml
/v3/cronos/block/{hash}:
get:
$ref: categories/blockchain/paths/v3_cronos_block_{hash}_get.yml
/v3/cronos/account/balance/{address}:
get:
$ref: categories/blockchain/paths/v3_cronos_account_balance_{address}_get.yml
/v3/cronos/transaction/{hash}:
get:
$ref: categories/blockchain/paths/v3_cronos_transaction_{hash}_get.yml
/v3/cronos/transaction/count/{address}:
get:
$ref: categories/blockchain/paths/v3_cronos_transaction_count_{address}_get.yml
/v3/cronos/transaction:
post:
$ref: categories/blockchain/paths/v3_cronos_transaction_post.yml
/v3/cronos/smartcontract:
post:
$ref: categories/blockchain/paths/v3_cronos_smartcontract_post.yml
/v3/cronos/broadcast:
post:
$ref: categories/blockchain/paths/v3_cronos_broadcast_post.yml
/v3/klaytn/wallet:
get:
$ref: categories/blockchain/paths/v3_klaytn_wallet_get.yml
Expand Down Expand Up @@ -982,6 +1061,78 @@ paths:
/v3/solana/broadcast/confirm:
post:
$ref: categories/blockchain/paths/v3_solana_broadcast_confirm_post.yml
/v3/flare/wallet:
get:
$ref: categories/blockchain/paths/v3_flare_wallet_get.yml
/v3/flare/address/{xpub}/{index}:
get:
$ref: categories/blockchain/paths/v3_flare_address_{xpub}_{index}_get.yml
/v3/flare/wallet/priv:
post:
$ref: categories/blockchain/paths/v3_flare_wallet_priv_post.yml
/v3/flare/web3/{xApiKey}:
post:
$ref: categories/blockchain/paths/v3_flare_web3_{xApiKey}_post.yml
/v3/flare/block/current:
get:
$ref: categories/blockchain/paths/v3_flare_block_current_get.yml
/v3/flare/block/{hash}:
get:
$ref: categories/blockchain/paths/v3_flare_block_{hash}_get.yml
/v3/flare/account/balance/{address}:
get:
$ref: categories/blockchain/paths/v3_flare_account_balance_{address}_get.yml
/v3/flare/transaction/{hash}:
get:
$ref: categories/blockchain/paths/v3_flare_transaction_{hash}_get.yml
/v3/flare/transaction/count/{address}:
get:
$ref: categories/blockchain/paths/v3_flare_transaction_count_{address}_get.yml
/v3/flare/transaction:
post:
$ref: categories/blockchain/paths/v3_flare_transaction_post.yml
/v3/flare/smartcontract:
post:
$ref: categories/blockchain/paths/v3_flare_smartcontract_post.yml
/v3/flare/broadcast:
post:
$ref: categories/blockchain/paths/v3_flare_broadcast_post.yml
/v3/base/wallet:
get:
$ref: categories/blockchain/paths/v3_base_wallet_get.yml
/v3/base/address/{xpub}/{index}:
get:
$ref: categories/blockchain/paths/v3_base_address_{xpub}_{index}_get.yml
/v3/base/wallet/priv:
post:
$ref: categories/blockchain/paths/v3_base_wallet_priv_post.yml
/v3/base/web3/{xApiKey}:
post:
$ref: categories/blockchain/paths/v3_base_web3_{xApiKey}_post.yml
/v3/base/block/current:
get:
$ref: categories/blockchain/paths/v3_base_block_current_get.yml
/v3/base/block/{hash}:
get:
$ref: categories/blockchain/paths/v3_base_block_{hash}_get.yml
/v3/base/account/balance/{address}:
get:
$ref: categories/blockchain/paths/v3_base_account_balance_{address}_get.yml
/v3/base/transaction/{hash}:
get:
$ref: categories/blockchain/paths/v3_base_transaction_{hash}_get.yml
/v3/base/transaction/count/{address}:
get:
$ref: categories/blockchain/paths/v3_base_transaction_count_{address}_get.yml
/v3/base/transaction:
post:
$ref: categories/blockchain/paths/v3_base_transaction_post.yml
/v3/base/smartcontract:
post:
$ref: categories/blockchain/paths/v3_base_smartcontract_post.yml
/v3/base/broadcast:
post:
$ref: categories/blockchain/paths/v3_base_broadcast_post.yml
/v3/celo/wallet:
get:
$ref: categories/blockchain/paths/v3_celo_wallet_get.yml
Expand Down Expand Up @@ -1263,4 +1414,4 @@ paths:
components:
securitySchemes:
X-API-Key:
$ref: components/schemas.yml#/components/securitySchemes/X-API-Key
$ref: components/migrated.yml#/components/securitySchemes/X-API-Key
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
description: '<p><b>1 credit per API call</b></p>
<p>Get the balance of <b>BASE</b> of an Base account.</p>
<p>To get the balance of <b>tokens</b>, use the APIs for getting the balance of
<a href="https://apidoc.tatum.io/tag/Fungible-Tokens-(ERC-20-or-compatible)#operation/Erc20GetBalanceAddress"
target="_blank">fungible tokens (ERC-20)</a> and <a href="https://apidoc.tatum.io/tag/NFT-(ERC-721-or-compatible)#operation/NftGetTokensByAddressErc721"
target="_blank">NFTs (ERC-721)</a>.</p>
'
operationId: BaseGetBalance
parameters:
- description: Account address you want to get balance of
in: path
name: address
required: true
schema:
type: string
example: "0x3223AEB8404C7525FcAA6C512f91e287AE9FfE7B"
responses:
"200":
content:
application/json:
schema:
$ref: "../../../components/migrated.yml#/components/schemas/BaseBalance"
description: OK
"400":
content:
application/json:
schema:
$ref: "../../../components/migrated.yml#/components/schemas/Error400"
description:
Bad Request. Validation failed for the given object in the HTTP Body
or Request parameters.
"401":
content:
application/json:
schema:
oneOf:
- $ref: "../../../components/migrated.yml#/components/schemas/Error401NotActive"
- $ref: "../../../components/migrated.yml#/components/schemas/Error401Invalid"
description:
Unauthorized. Not valid or inactive subscription key present in the
HTTP Header.
"500":
content:
application/json:
schema:
$ref: "../../../components/migrated.yml#/components/schemas/Error500"
description:
Internal server error. There was an error on the server during the
processing of the request.
security:
- X-API-Key: []
x-codeSamples: []
summary: Get the BASE balance of an Base account
tags:
- Base
63 changes: 63 additions & 0 deletions categories/blockchain/paths/v3_base_address_{xpub}_{index}_get.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
description: "<h4>1 credit per API call.</h4><br/>
<p>Generates an Base account deposit address from an Extended public key. The deposit
address is generated for the specific index - each extended public key can generate
up to 2^31 addresses starting from index 0 until 2^31 - 1.</p>
"
operationId: BaseGenerateAddress
parameters:
- description: Extended public key of wallet.
in: path
name: xpub
required: true
schema:
type: string
example: xpub6EsCk1uU6cJzqvP9CdsTiJwT2rF748YkPnhv5Qo8q44DG7nn2vbyt48YRsNSUYS44jFCW9gwvD9kLQu9AuqXpTpM1c5hgg9PsuBLdeNncid
- description: Derivation index of the address to be generated.
in: path
name: index
required: true
schema:
type: number
example: 0
responses:
"200":
content:
application/json:
schema:
$ref: "../../../components/migrated.yml#/components/schemas/GeneratedAddressBase"
description: OK
"400":
content:
application/json:
schema:
$ref: "../../../components/migrated.yml#/components/schemas/Error400"
description:
Bad Request. Validation failed for the given object in the HTTP Body
or Request parameters.
"401":
content:
application/json:
schema:
oneOf:
- $ref: "../../../components/migrated.yml#/components/schemas/Error401NotActive"
- $ref: "../../../components/migrated.yml#/components/schemas/Error401Invalid"
description:
Unauthorized. Not valid or inactive subscription key present in the
HTTP Header.
"500":
content:
application/json:
schema:
$ref: "../../../components/migrated.yml#/components/schemas/Error500"
description:
Internal server error. There was an error on the server during the
processing of the request.
security:
- X-API-Key: []
x-codeSamples: []
summary: Generate Base account address from Extended public key
tags:
- Base
37 changes: 37 additions & 0 deletions categories/blockchain/paths/v3_base_block_current_get.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
description:
<h4>1 credit per API call.</h4><br/><p>Gets the current Base block number.
This is the number of the latest block in the blockchain.</p>
operationId: BaseGetCurrentBlock
responses:
"200":
content:
application/json:
schema:
type: number
description: Current block number
example: 6491272
description: OK
"401":
content:
application/json:
schema:
oneOf:
- $ref: "../../../components/migrated.yml#/components/schemas/Error401NotActive"
- $ref: "../../../components/migrated.yml#/components/schemas/Error401Invalid"
description:
Unauthorized. Not valid or inactive subscription key present in the
HTTP Header.
"500":
content:
application/json:
schema:
$ref: "../../../components/migrated.yml#/components/schemas/Error500"
description:
Internal server error. There was an error on the server during the
processing of the request.
security:
- X-API-Key: []
x-codeSamples: []
summary: Get current block number
tags:
- Base
Loading

0 comments on commit f2519f9

Please sign in to comment.