STX balance and nonce can be obtained through the [`GET /v2/accounts/<stx_address>`](https://blockstack.github.io/stacks-blockchain-api/#operation/get_account_info) endpoint:
All token balances can be obtained through the [`GET /extended/v1/address/<stx_address>/balances`](https://blockstack.github.io/stacks-blockchain-api/#operation/get_account_balance) endpoint:
All asset events associated with the account can be obtained through the [`GET /extended/v1/address/<stx_address>/assets`](https://blockstack.github.io/stacks-blockchain-api/#operation/get_account_balance) endpoint:
@ -16,7 +16,7 @@ Fees are used to incentivize miners to confirm transactions on the Stacks 2.0 bl
Fee estimates can obtained through the [`GET /v2/fees/transfer`](https://blockstack.github.io/stacks-blockchain-api/#operation/get_fee_transfer) endpoint:
The API will respond with the fee rate (as integer):
@ -52,7 +52,7 @@ The time to mine a block, to confirm transactions, will eventually match the exp
The block time is hardcoded and will change throughout the implementation phases of the [testnet](/stacks-blockchain/testnet). The current block time can be obtained through the [`GET /extended/v1/info/network_block_times`](https://blockstack.github.io/stacks-blockchain-api/#operation/get_network_block_times) endpoint:
The API will respond with the block time (in seconds):
@ -79,7 +79,7 @@ However, for read-only function calls, transactions are **not** required. Instea
A read-only contract call can be done using the [`POST /v2/contracts/call-read/<stx_address>/<contract_name>/<function_name>`](https://blockstack.github.io/stacks-blockchain-api/#operation/call_read_only_function) endpoint:
```bash
curl --location --request POST 'https://stacks-node-api-latest.krypton.blockstack.xyz/v2/contracts/call-read/<stx_address>/<contract_name>/<function_name>' \
curl --location --request POST 'https://stacks-node-api.krypton.blockstack.xyz/v2/contracts/call-read/<stx_address>/<contract_name>/<function_name>' \
--header 'Content-Type: application/json' \
--data-raw '{
"sender": "<stx_address>.<contract_name>",
@ -155,7 +155,7 @@ The easiest way of identifying the health is by looking at the `blockRateStatus`
The network information can be obtained using the [`GET /v2/info`](https://blockstack.github.io/stacks-blockchain-api/#operation/get_core_api_info) endpoint:
@ -381,7 +381,7 @@ A sponsored transaction is one where a second signer sets and pays the transacti
With a serialized transaction in the [raw format](#raw-format), it can be broadcasted to the network using the [`POST /v2/transactions`](https://blockstack.github.io/stacks-blockchain-api/#operation/post_core_node_transactions) endpoint:
```bash
curl --location --request POST 'https://stacks-node-api-latest.krypton.blockstack.xyz/v2/transactions' \
curl --location --request POST 'https://stacks-node-api.krypton.blockstack.xyz/v2/transactions' \
--header 'Content-Type: text/plain' \
--data-raw '<tx_raw_format>'
```
@ -408,7 +408,7 @@ For convenience, a Postman Collection was created and published: [![Run in Postm
Recent transactions can be obtained through the [`GET /extended/v1/tx`](https://blockstack.github.io/stacks-blockchain-api/#operation/get_transaction_list) endpoint:
Mempool (registered, but not processed) transactions can be obtained using the [`GET /extended/v1/tx/mempool`](https://blockstack.github.io/stacks-blockchain-api/#operation/get_mempool_transaction_list) endpoint:
A specific transaction can be obtained using the [`GET /extended/v1/tx/<tx_id>`](https://blockstack.github.io/stacks-blockchain-api/#operation/get_transaction_by_id) endpoint: