Home

Alephium API

v3.3.0
Base URL
https://alephium.nownodes.io

Authentication

api-keyAuthapiKey

API Key: api-key in header

General

Infos

Get basic ALPH node information

GET
https://alephium.nownodes.io/infos/node

Returns the build version, commit hash, UPnP configuration, and the external address (if available) of the ALPH node.

Response

200OK

Node information retrieved successfully.

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Get ALPH Node Software Version

GET
https://alephium.nownodes.io/infos/version

Returns the current version of the ALPH node software.

Response

200OK

Version information retrieved successfully.

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Get Chain Parameters

GET
https://alephium.nownodes.io/infos/chain-params

Returns various blockchain configuration parameters used by the ALPH node.

Response

200OK

Chain parameters retrieved successfully.

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Get Self Clique Information

GET
https://alephium.nownodes.io/infos/self-clique

Returns information about the current node's clique, including clique ID, participating nodes, and sync status.

Response

200OK

Self clique information retrieved successfully.

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Get Inter-Clique Peer Information

GET
https://alephium.nownodes.io/infos/inter-clique-peer-info

Returns a list of peers from other cliques that the node is aware of, including their clique IDs, sync status, and client version.

Response

200OK

Peer information retrieved successfully.

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Get Discovered Neighboring Peers

GET
https://alephium.nownodes.io/infos/discovered-neighbors

Returns a list of discovered neighbors from other cliques, including their clique ID, broker ID, broker number, and network address.

Response

200OK

Discovered neighbors retrieved successfully.

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Get Misbehaving Peers

GET
https://alephium.nownodes.io/infos/misbehaviors

Returns a list of peers that have been flagged for misbehavior, including their status and ban information.

Response

200OK

Misbehaving peer list retrieved successfully.

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Get Unreachable Peers

GET
https://alephium.nownodes.io/infos/unreachable

Returns a list of peer IP addresses that are currently unreachable from this node.

Response

200OK

List of unreachable peers retrieved successfully.

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Get Historical Hashrate Summary

GET
https://alephium.nownodes.io/infos/history-hashrate

Returns a summary string representing the node's hashrate over the specified time range.

Parameters

fromTsinteger<int64>requiredquery

Start timestamp (Unix ms) for the requested hashrate history.

toTsinteger<int64>requiredquery

End timestamp (Unix ms) for the requested hashrate history.

Response

200OK

Historical hashrate summary retrieved successfully.

400Bad Request

Invalid or missing query parameters.

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Get Current Hashrate

GET
https://alephium.nownodes.io/infos/current-hashrate

Returns the current hashrate of the node as a string with units.

Response

200OK

Current hashrate retrieved successfully.

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Get Current Difficulty

GET
https://alephium.nownodes.io/infos/current-difficulty

Returns the current network difficulty as a string.

Response

200OK

Current difficulty retrieved successfully.

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Blockflow

List blocks on the given time interval

GET
https://alephium.nownodes.io/blockflow/blocks

Returns blocks produced within the specified time range.

Parameters

fromTsinteger<int64>>= 0requiredquery
toTsinteger<int64>>= 0query

Response

200OK

Valid response

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

List blocks with events on the given time interval

GET
https://alephium.nownodes.io/blockflow/blocks-with-events

Parameters

fromTsinteger<int64>>= 0requiredquery
toTsinteger<int64>>= 0query

Response

200OK

Valid response

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Get Block by Hash

GET
https://alephium.nownodes.io/blockflow/blocks/{block_hash}

Retrieves detailed information about a block identified by its hash.

Parameters

block_hashstringrequiredpath

The hash of the block to retrieve.

Response

200OK

Block information retrieved successfully.

400Bad Request

Invalid block hash supplied.

404Not Found

Block not found.

500Internal Server Error

Internal server error.

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Get a mainchain block by ghost uncle hash

GET
https://alephium.nownodes.io/blockflow/main-chain-block-by-ghost-uncle/{ghost_uncle_hash}

Parameters

ghost_uncle_hashstring<block-hash>requiredpath

Response

200OK

Valid response

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Get Block with Events

GET
https://alephium.nownodes.io/blockflow/blocks-with-events/{block_hash}

Retrieves detailed block information along with any smart contract events emitted in the block.

Parameters

block_hashstringrequiredpath

The hash of the block.

Response

200OK

Block with events retrieved successfully.

404Not Found

Block not found.

500Internal Server Error

Internal server error.

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Check if Block is in Main Chain

GET
https://alephium.nownodes.io/blockflow/is-block-in-main-chain

Returns whether the specified block is part of the main chain.

Parameters

blockHashstringrequiredquery

The hash of the block to check.

Response

200OK

Successfully checked block status.

400Bad Request

Invalid or missing block hash.

404Not Found

Block not found.

500Internal Server Error

Internal server error.

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Get Block Headers Hashes

GET
https://alephium.nownodes.io/blockflow/hashes

Retrieves block header hashes filtered by source group, destination group, and block height.

Parameters

fromGroupintegerrequiredquery

Source group number.

toGroupintegerrequiredquery

Destination group number.

heightintegerrequiredquery

Block height to filter.

Response

200OK

List of block header hashes.

400Bad Request

Invalid or missing query parameters.

500Internal Server Error

Internal server error.

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Get Chain Info by Groups

GET
https://alephium.nownodes.io/blockflow/chain-info

Returns the current chain height filtered by fromGroup and toGroup.

Parameters

fromGroupintegerrequiredquery

Source group number.

toGroupintegerrequiredquery

Destination group number.

Response

200OK

Chain information retrieved successfully.

400Bad Request

Invalid or missing query parameters.

500Internal Server Error

Internal server error.

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Get Block Header by Hash

GET
https://alephium.nownodes.io/blockflow/headers/{block_hash}

Returns detailed information about a block header identified by its hash.

Parameters

block_hashstringrequiredpath

Hash of the block header to retrieve.

Response

200OK

Block header retrieved successfully.

400Bad Request

Invalid block hash supplied.

404Not Found

Block header not found.

500Internal Server Error

Internal server error.

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Addresses

Get Address Balance (with optional mempool)

GET
https://alephium.nownodes.io/addresses/{address}/balance

Returns total and locked balances for the specified address. If mempool=true, balances will include the effect of unconfirmed transactions.

Parameters

addressstringrequiredpath

The address to query.

mempoolbooleanfalsequery

Whether to include unconfirmed (mempool) transactions in the balance calculation.

Response

200OK

Address balance retrieved successfully.

400Bad Request

Invalid address or query parameter.

404Not Found

Address not found.

500Internal Server Error

Internal server error.

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Get UTXOs for Address

GET
https://alephium.nownodes.io/addresses/{address}/utxos

Returns all unspent outputs (UTXOs) associated with a specific address.

Parameters

addressstringrequiredpath

The address whose UTXOs are requested.

Response

200OK

List of UTXOs retrieved successfully.

400Bad Request

Invalid address format.

404Not Found

Address not found or has no UTXOs.

500Internal Server Error

Internal server error.

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Get Group Number by Address

GET
https://alephium.nownodes.io/addresses/{address}/group

Returns the group number for the specified address.

Parameters

addressstringrequiredpath

The address to query.

Response

200OK

Group number retrieved successfully.

400Bad Request

Invalid address format.

404Not Found

Address not found.

500Internal Server Error

Internal server error.

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Transactions

Build Transaction

POST
https://alephium.nownodes.io/transactions/build

Creates a new unsigned transaction from the sender’s public key to specified destinations.

Body

application/json
fromPublicKeystringrequired

Sender’s public key in hex format.

destinationsArray<object>required

List of destination addresses with amounts.

Show child attributes
addressstringrequired

Destination ALPH address.

attoAlphAmountstringrequired

Amount in attoALPH to send (1 ALPH = 10^18 attoALPH).

Response

200OK

Transaction built successfully.

400Bad Request

Invalid request payload.

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Build Transaction from Multiple Addresses

POST
https://alephium.nownodes.io/transactions/build-multi-addresses

Creates a new unsigned transaction from multiple senders each with their own destinations.

Body

application/json
fromArray<object>required

List of sender public keys with their destinations.

Show child attributes
fromPublicKeystringrequired

Sender’s public key in hex format.

destinationsArray<object>required

List of destination addresses with amounts for this sender.

Show child attributes
addressstringrequired

Destination ALPH address.

attoAlphAmountstringrequired

Amount in attoALPH to send (1 ALPH = 10^18 attoALPH).

Response

200OK

Transaction built successfully.

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Build Sweep Transaction

POST
https://alephium.nownodes.io/transactions/sweep-address/build

Creates unsigned transaction(s) to sweep all funds from the specified public key’s address to a destination address.

Body

application/json
fromPublicKeystringrequired

Public key of the source address to sweep funds from.

toAddressstringrequired

Destination ALPH address where all funds will be sent.

Response

200OK

Sweep transaction(s) built successfully.

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Submit Signed Transaction

POST
https://alephium.nownodes.io/transactions/submit

Submits a signed transaction to the ALPH network for processing.

Body

application/json
unsignedTxstringrequired

Serialized unsigned transaction data in hex or base64 format.

signaturestringrequired

Signature of the unsigned transaction.

Response

200OK

Transaction successfully submitted.

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Decode an unsigned transaction

POST
https://alephium.nownodes.io/transactions/decode-unsigned-tx

Decodes a serialized unsigned transaction string and returns the detailed transaction data, including groups involved, inputs, outputs, gas parameters, and token information.

Body

application/json
unsignedTxstringrequired

Serialized unsigned transaction string to decode.

Response

200OK

Successfully decoded unsigned transaction details.

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Get detailed information of a transaction by transaction ID

GET
https://alephium.nownodes.io/transactions/details/{txId}

Retrieves detailed information about a specific transaction, including unsigned transaction data, script execution status, contract inputs and outputs, and signatures.

Parameters

txIdstringrequiredpath

Transaction ID (hash) to get details for.

fromGroupintegerquery

Originating group number of the transaction.

toGroupintegerquery

Target group number of the transaction.

Response

200OK

Successful transaction detail retrieval

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Get the status of a transaction by transaction ID and group parameters

GET
https://alephium.nownodes.io/transactions/status

Returns the current status of a transaction, including confirmation status, block hash where it is included, index within the block, and confirmation counts across groups.

Parameters

txIdstringrequiredquery

Transaction ID (hash) to check status for

fromGroupintegerrequiredquery

Originating group number of the transaction

toGroupintegerrequiredquery

Target group number of the transaction

Response

200OK

Transaction status information

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Mempool

Get transactions currently in the mempool

GET
https://alephium.nownodes.io/mempool/transactions

Returns a list of transactions currently waiting in the mempool, grouped by source and destination groups.

Response

200OK

A list of mempool transactions grouped by fromGroup and toGroup

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Contracts

Compile a contract script

POST
https://alephium.nownodes.io/contracts/compile-script

Compiles a contract script written in ALPH TxScript language. Returns metadata about the compiled bytecode, fields, functions, and any warnings.

Body

application/json
codestring

The contract script source code in TxScript language

compilerOptionsobject

Compiler options to control the compilation behavior

Show child attributes
ignoreUnusedConstantsWarningsboolean

Whether to ignore warnings about unused constants

Response

200OK

Compilation result with bytecode and metadata

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Build an unsigned script

POST
https://alephium.nownodes.io/contracts/unsigned-tx/execute-script

Body

application/json
fromPublicKeystring<hex-string>required
fromPublicKeyTypestring<hex-string>
bytecodestring<hex-string>required
attoAlphAmountstring<uint256>
tokensArray<Token>
Show child attributes
idstring<32-byte-hash>required
amountstring<uint256>required
gasAmountinteger<gas>
gasPricestring<uint256>
targetBlockHashstring<block-hash>
gasEstimationMultipliernumber<double>

Response

200OK

Valid response

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Compile a smart contract

POST
https://alephium.nownodes.io/contracts/compile-contract

Body

application/json
codestringrequired
compilerOptionsCompilerOptions
Show child attributes
ignoreUnusedConstantsWarningsboolean
ignoreUnusedVariablesWarningsboolean
ignoreUnusedFieldsWarningsboolean
ignoreUnusedPrivateFunctionsWarningsboolean
ignoreUpdateFieldsCheckWarningsboolean
ignoreCheckExternalCallerWarningsboolean

Response

200OK

Valid response

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Compile a project

POST
https://alephium.nownodes.io/contracts/compile-project

Body

application/json
codestringrequired
compilerOptionsCompilerOptions
Show child attributes
ignoreUnusedConstantsWarningsboolean
ignoreUnusedVariablesWarningsboolean
ignoreUnusedFieldsWarningsboolean
ignoreUnusedPrivateFunctionsWarningsboolean
ignoreUpdateFieldsCheckWarningsboolean
ignoreCheckExternalCallerWarningsboolean

Response

200OK

Valid response

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Build an unsigned contract

POST
https://alephium.nownodes.io/contracts/unsigned-tx/deploy-contract

Body

application/json
fromPublicKeystring<hex-string>required
fromPublicKeyTypestring<hex-string>
bytecodestring<hex-string>required
initialAttoAlphAmountstring<uint256>
initialTokenAmountsArray<Token>
Show child attributes
idstring<32-byte-hash>required
amountstring<uint256>required
issueTokenAmountstring<uint256>
issueTokenTostring<address>
gasAmountinteger<gas>
gasPricestring<uint256>
targetBlockHashstring<block-hash>

Response

200OK

Valid response

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Get contract state

GET
https://alephium.nownodes.io/contracts/{address}/state

Parameters

addressstring<address>requiredpath

Response

200OK

Valid response

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Test contract

POST
https://alephium.nownodes.io/contracts/test-contract

Body

application/json
any

Response

200OK

Valid response

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Call contract

POST
https://alephium.nownodes.io/contracts/call-contract

Body

application/json
CallContract

Response

200OK

Valid response

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Multiple call contract

POST
https://alephium.nownodes.io/contracts/multicall-contract

Body

application/json
any

Response

200OK

Valid response

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Call TxScript

POST
https://alephium.nownodes.io/contracts/call-tx-script

Body

application/json
groupinteger<int32>required
bytecodestring<hex-string>required
callerAddressstring<address>
worldStateBlockHashstring<block-hash>
txIdstring<32-byte-hash>
inputAssetsArray<TestInputAsset>
Show child attributes
addressstring<address>required
assetAssetStaterequired
Show child attributes
attoAlphAmountstring<uint256>required
tokensArray<Token>
Show child attributes
idstring<32-byte-hash>required
amountstring<uint256>required
interestedContractsArray<string>

Response

200OK

Valid response

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Multi-signature

Create the multisig address and unlock script

POST
https://alephium.nownodes.io/multisig/address

Body

application/json

Format 1: 1000000000000000000

Format 2: x.y ALPH, where `1 ALPH = 1000000000000000000

Field fromPublicKeyType can be default or bip340-schnorr

keysArray<string>required
mrequiredinteger<int32>required

Response

200OK

Valid response

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Build a multisig unsigned transaction

POST
https://alephium.nownodes.io/multisig/build

Body

application/json
fromAddressstring<address>required
fromPublicKeysArray<string>required
destinationsArray<Destination>required
Show child attributes
addressstring<address>required
attoAlphAmountstring<uint256>required
tokensArray<Token>
Show child attributes
idstring<32-byte-hash>required
amountstring<uint256>required
lockTimeinteger<int64>
messagestring<hex-string>
gasinteger<gas>
gasPricestring<uint256>

Response

200OK

Valid response

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Sweep all unlocked ALPH and token balances of a multisig address to another address

POST
https://alephium.nownodes.io/multisig/sweep

Body

application/json
fromAddressstring<address>required
fromPublicKeysArray<string>required
toAddressstring<address>required
maxAttoAlphPerUTXOstring<uint256>
lockTimeinteger<int64>
gasAmountinteger<gas>
gasPricestring<uint256>
utxosLimitinteger<int32>
targetBlockHashstring<block-hash>

Response

200OK

Valid response

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Submit a multi-signed transaction

POST
https://alephium.nownodes.io/multisig/submit

Body

application/json
unsignedTxstringrequired
signaturesArray<string>required

Response

200OK

Valid response

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Events

Get events for a contract within a counter range

GET
https://alephium.nownodes.io/events/contract/{contractAddress}

Parameters

contractAddressstring<address>requiredpath
startinteger<int32>requiredquery
limitinteger<int32>query
groupinteger<int32>query

Response

200OK

Valid response

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Get current value of the events counter for a contract

GET
https://alephium.nownodes.io/events/contract/{contractAddress}/current-count

Parameters

contractAddressstring<address>requiredpath

Response

200OK

Valid response

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Get contract events for a transaction

GET
https://alephium.nownodes.io/events/tx-id/{txId}

Parameters

txIdstring<32-byte-hash>requiredpath
groupinteger<int32>query

Response

200OK

Valid response

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Get contract events for a block

GET
https://alephium.nownodes.io/events/block-hash/{blockHash}

Parameters

blockHashstring<block-hash>requiredpath
groupinteger<int32>query

Response

200OK

Valid response

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Utils

Verify the SecP256K1 signature of some data

POST
https://alephium.nownodes.io/utils/verify-signature

Body

application/json
datastring<hex-string>required
signaturestring<signature>required
publicKeystring<public-key>required

Response

200OK

Valid response

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header

Convert a target to hashrate

POST
https://alephium.nownodes.io/utils/target-to-hashrate

Body

application/json
targetstring<hex-string>required

Response

200OK

Valid response

400Bad Request

BadRequest

401Unauthorized

Unauthorized

404Not Found

NotFound

500Internal Server Error

InternalServerError

503Service Unavailable

ServiceUnavailable

Authorization

api-keyAuthapiKey in header