404 – FAILED RESPONSE The ADDRESS is not part of the NETWORK’s blockchain, or the NETWORK is unsupported.

404 - FAILED RESPONSE The ADDRESS is not part of the NETWORK's blockchain, or the NETWORK is unsupported.

Accessing the SoChain API is elementary. Whichever programming language you use, you can call our Surplus API using any HTTP adapter. Below are some basic examples of how to access our API through Javascript, Ruby/Ruby on Spoorlijn, and Python.

Ter the examples below, wij get the name, and number of blocks on the Dogecoin network (DOGE). For more networks, see Networks Supported.

Using Javascript

Pre-requisites

Ter the example code, wij will use jQuery to access the API.

Example Code

The following code is an HTML example of the Javascript code. It requires inclusion of the jQuery javascript, spil shown above.

Related movie: $1 Trillion Market Cap after Overeenstemming 2018? Goldman Sachs All-In


Using Ruby

For accessing this API using Ruby or Ruby on Spoorlijn, wij recommend using the HTTPClient gem. Furthermore, you will need the JSON gem to decently interpret the JSON response from our API.

Pre-requisites

Te the example code, wij use HTTPClient and JSON gems. Here’s how to install them if using Ruby:

If you are using Ruby on Spoorlijn instead, add the following lines to your Spoorlijn project’s Gemfile te the root of your Spoorlijn project’s directory.

Next, execute the following on the command-line ter project’s root directory, and you’re all set for Ruby on Spoorlijn.

ter the same directory.

Example Code

Here is an example script to retrieve basic network information for Dogecoin:

Using Python

For accessing the API through Python, wij recommend the python-requests package.

Pre-requisites

Install the python-requests package by executing the following code on your guideline prompt.

If you choose using apt-get instead to install Python packages, exceute the following code on your directive prompt.

Example Code

Get Vaivén

Comebacks basic recuento details for a Dogecoin, Bitcoin, or Litecoin address.

ENDPOINT

PARAMETERS

The acronym of the network you’re querying. Required.

The address on the network you’re querying. Required.

ondergrens confirmations: oprecht

The ondergrens confirmations for the oscilación. Optional. Default is 0.

REQUEST

No request assets required.

200 – SUCCESSFUL RESPONSE

A JSON object which contains the following fields:

The acronym of the network.

The hash of the address.

confirmed cálculo: string

The confirmed vaivén of the address spil a string.

unconfirmed oscilación: string

The unconfirmed balanceo of the address spil a string. Cálculo remains unconfirmed until it is confirmed by the network.

404 – FAILED RESPONSE

The ADDRESS is not part of the NETWORK’s blockchain, the NETWORK is unsupported, or Ondergrens CONFIRMATIONS is invalid.

EXAMPLE REQUESTS

Description: Get address comprobación

Description: Get address recuento with at least Five,000 confirmations

EXAMPLE RESPONSE

Get Received Value

Comebacks the total value received by the specified Dogecoin, Bitcoin, or Litecoin address.

ENDPOINT

PARAMETERS

The acronym of the network you’re querying. Required.

The address on the network you’re querying. Required.

REQUEST

No request bod required.

200 – SUCCESSFUL RESPONSE

A JSON object which contains the following fields:

The acronym of the network.

The hash of the address.

confirmed received value: string

The confirmed value everzwijn received by the address. Includes all values received from self (!).

unconfirmed receieved value: string

The received value that is unconfirmed by this address.

404 – FAILED RESPONSE

The ADDRESS is not part of the NETWORK’s blockchain, or the NETWORK is unsupported.

EXAMPLE REQUESTS

Description: Get value received by the address

EXAMPLE RESPONSE

Get Spent Value

Comebacks the total value spent by the specified Dogecoin, Bitcoin, or Litecoin address.

ENDPOINT

PARAMETERS

The acronym of the network you’re querying. Required.

The address on the network you’re querying. Required.

REQUEST

No request assets required.

200 – SUCCESSFUL RESPONSE

A JSON object which contains the following fields:

The acronym of the network.

The hash of the address.

confirmed spent value: string

The confirmed value everzwijn spent by the address.

unconfirmed spent value: string

The spent value that is unconfirmed by this address.

404 – FAILED RESPONSE

The ADDRESS is not part of the NETWORK’s blockchain, or the NETWORK is unsupported.

EXAMPLE REQUESTS

Description: Get value spent by the address

EXAMPLE RESPONSE

Get Unspent Transactions

Comebacks an array of unspent transactions (and values) for specified Dogecoin, Bitcoin, or Litecoin address.

Transactions are returned te FIFO order. A maximum of 100 unconfirmed transactions may be retrieved.

ENDPOINT

PARAMETERS

The acronym of the network you’re querying. Required.

The address on the network you’re querying. Required.

after txid: string

The transaction id or hash, if you want only transactions that occurred after this transaction. This transaction voorwaarde have at least one confirmation. Optional. Default number of transactions returned is 100.

REQUEST

No request bod required.

200 – SUCCESSFUL RESPONSE

A JSON object which contains the following fields:

The acronym of the network.

The hash of the address.

The unspent transactions te an array.

404 – FAILED RESPONSE

The ADDRESS is not part of the NETWORK’s blockchain, the NETWORK is unsupported, or NUMBER OF TRANSACTIONS is invalid.

EXAMPLE REQUESTS

Description: Get the very first 100 transactions unspent by this address

Description: Get 100 transactions unspent by this address after a given transaction

EXAMPLE RESPONSE

Get Received Transactions

Comes back an array of received transactions (and values) for specified Dogecoin, Bitcoin, or Litecoin address.

Transactions are returned ter FIFO order. A maximum of 100 unconfirmed transactions may be retrieved.

ENDPOINT

PARAMETERS

The acronym of the network you’re querying. Required.

The address on the network you’re querying. Required.

after txid: string

The transaction id or hash, if you want only transactions that occurred after this transaction. This transaction vereiste have at least one confirmation. Optional. Default number of transactions returned is 100.

REQUEST

No request figure required.

200 – SUCCESSFUL RESPONSE

A JSON object which contains the following fields:

The acronym of the network.

The hash of the address.

The received transactions ter an array.

404 – FAILED RESPONSE

The ADDRESS is not part of the NETWORK’s blockchain, the NETWORK is unsupported, or NUMBER OF TRANSACTIONS is invalid.

EXAMPLE REQUESTS

Description: Get the very first 100 transactions received by this address

Description: Get 100 transactions received by this address after the given transaction id

EXAMPLE RESPONSE

Get Spent Transactions

Comes back an array of spent transactions (and values) for specified Dogecoin, Bitcoin, or Litecoin address.

Transactions are returned te FIFO order. A maximum of 100 unconfirmed transactions may be retrieved.

ENDPOINT

PARAMETERS

The acronym of the network you’re querying. Required.

The address on the network you’re querying. Required.

after txid: string

The transaction id or hash, if you want only transactions that occurred after this transaction. This transaction voorwaarde have at least one confirmation. Optional. Default number of transactions returned is 100.

REQUEST

No request bod required.

200 – SUCCESSFUL RESPONSE

A JSON object which contains the following fields:

The acronym of the network.

The hash of the address.

The spent transactions te an array.

404 – FAILED RESPONSE

The ADDRESS is not part of the NETWORK’s blockchain, the NETWORK is unsupported, or NUMBER OF TRANSACTIONS is invalid.

EXAMPLE REQUESTS

Description: Get the very first 100 transactions spent by this address

Description: Get 100 transactions spent by this address after the given transaction occurred

EXAMPLE RESPONSE

Is Address Valid?

Comes back basic gegevens telling whether the address is valid for the given network.

ENDPOINT

PARAMETERS

The acronym of the network you’re querying. Required.

The address on the network you’re querying. Required.

REQUEST

No request figure required.

200 – SUCCESSFUL RESPONSE

A JSON object which contains the following fields:

The acronym of the network.

The hash of the address.

True if the address is valid, false otherwise.

404 – FAILED RESPONSE

The NETWORK is unsupported, or ADDRESS is missing.

EXAMPLE REQUESTS

Description: Ask if address is valid for DOGE network

EXAMPLE RESPONSE

Get Display Gegevens

Comes back gegevens needed by SoChain’s Explorer display for a given address.

Comes back the latest

50 transactions for a given address.

ENDPOINT

PARAMETERS

The acronym of the network you’re querying. Required.

The address on the network you’re querying. Required.

Related movie: The Winklevoss Twins Eat, Sleep, and Breathe Bitcoin


REQUEST

No request figure required.

200 – SUCCESSFUL RESPONSE

A JSON object which contains the following fields:

The acronym of the network.

The hash of the address.

The confirmed arqueo of this address.

The confirmed received value of this address.

The value received/spent that is unconfirmed.

Total transactions this address has bot sender/receiver ter.

An array of transactions this address is either a sender or receiver ter, plus in-depth informatie about who sent or received the values, and whether the receivers have spent the values wij sent.

404 – FAILED RESPONSE

The NETWORK is unsupported, or ADDRESS is missing.

EXAMPLE REQUESTS

Description: Get display gegevens for an address

EXAMPLE RESPONSE

Get Network Confidence Fresh

Comebacks a percentage confidence ter the transaction spil mirrored by the returned number of knots te the network. SoChain listens to large parts of the Bitcoin/Dogecoin/etc. networks, and provides a numerical value (0.0 to 0.99) of its confidence ter a fresh, unconfirmed transaction. This dramatically speeds up transactions te retail environments, and reliably bypasses the long confirmation times (e.g., 10min for Bitcoin) if required. Confirmed transactions get a confidence rating of 1.0.

If the network detects an attempted dual spend of the coins used te a given transaction, the returned is_double_spend field is set to true for unconfirmed transactions, and the confidence field is set to 0.0. When a transaction is confirmed, the is_double_spend and knots fields comeback null since they become irrelevant.

Note: There is a margin of error of 1%.

ENDPOINT

PARAMETERS

The acronym of the network you’re querying. Required.

The transaction hash (id) on the network you’re querying. Required.

REQUEST

No request figure required.

200 – SUCCESSFUL RESPONSE

A JSON object which contains the following fields:

Related movie: What I Learned At Overeenstemming – Innovation Kinks, Zcash, Talent Market Flow – Ep200


The acronym of the network.

The transaction id.

404 – FAILED RESPONSE

The NETWORK is unsupported, or TXID is invalid.

EXAMPLE REQUESTS

Description: Get Network confidence te a transaction

EXAMPLE RESPONSE

Get Transaction Inputs

Comes back gegevens contained te all inputs, or the specified input, of the given transaction.

ENDPOINT

PARAMETERS

The acronym of the network you’re querying. Required.

The transaction hash (id) on the network you’re querying. Required.

The input number, or index, of the specific input you want to query. Optional.

REQUEST

No request figure required.

200 – SUCCESSFUL RESPONSE

A JSON object which contains the following fields:

The acronym of the network.

The transaction id.

The array containing the relevant information for inputs requested.

404 – FAILED RESPONSE

The NETWORK is unsupported, TXID is invalid, or INPUT_NO is invalid.

EXAMPLE REQUESTS

Description: Get all inputs for a transaction on the DOGE network

Description: Get the very first input for a transaction on the DOGE network

EXAMPLE RESPONSE

Get Transaction Outputs

Comes back gegevens contained te all outputs, or the specified output, of the given transaction.

ENDPOINT

PARAMETERS

The acronym of the network you’re querying. Required.

The transaction hash (id) on the network you’re querying. Required.

The output number, or index, of the specific output you want to query. Optional.

REQUEST

No request figure required.

200 – SUCCESSFUL RESPONSE

A JSON object which contains the following fields:

The acronym of the network.

The transaction id.

The array containing the relevant information for outputs requested.

404 – FAILED RESPONSE

The NETWORK is unsupported, TXID is invalid, or OUTPUT_NO is invalid.

EXAMPLE REQUESTS

Description: Get all outputs for a transaction on the DOGE network

Description: Get the very first output for a transaction on the DOGE network

2 thoughts on “404 – FAILED RESPONSE The ADDRESS is not part of the NETWORK’s blockchain, or the NETWORK is unsupported.”

  1. Superb news about Gemini but the ETF will take fairly a long time. There will be many admitido loop crevices that need to be hopped through.

Leave a Reply

Your email address will not be published. Required fields are marked *