The easiest way to receive payments of EDC. Just use a method to begin to receive payment to your wallet. Fill in the form to start working with EDC!

Voir documentation


To use the methods of the API, the user needs the token record. Use and generation of chips occurs in manual mode.

To create a new address for the receipt of payments, you must call an application

POST https://receive.edinarcoin.com/new-account/:token

With the following parameters

  • account – account on which all payments will be transferred to the accounts of the generated
  • crochet – url, to which a POST request will be sent in the case of a new incoming payment. The body of the request is an identifier internal payment, the address to which came the payment, and the amount.

URL for the crochet is optional.

For example:

1
2
3
4
{
"account": "test123".
}

In response comes a new address

1
2
3
{
"address": "edcfwqmbx1fod6s97t93469yp7cj6qa9re"
}

After that, all payments received to the address will be transferred to the account of the user specified in the account field.

The server will try to send a request to hang the address, if it has been specified. If it is available, the server will attempt to send the request 4 times at intervals of 5 seconds.

GET https://receive.edinarcoin.com/history/:token

The response is an array of charges, which came to addresses generated by the specified token

Last 100 payments will be returned

1
2
3
4
5
6
7
8
9
ten
11
12
13
14
[
{
"id": "57d7fda3cf22a504647af6a4",
"date": "2016-09 - 13 T 13: 22:43.000Z".
"amount": 0.002.
"isNotified": true
},
{
"id": "57d7f3bb8cacb802935f86d9",
"date": "2016-09 - 13 T 12: 40:27.000Z".
"amount": 0.002.
"isNotified": true
}
]

isNotified – will be in the real field, whether in response to a request coming code hook 200

GET https://receive.edinarcoin.com/history/:token /: address

The response is an array of charges, which came to a particular address

Last 100 payments will be returned

1
2
3
4
5
6
7
8
9
ten
11
12
13
14
[
{
"id": "57d7fda3cf22a504647af6a4",
"date": "2016-09 - 13 T 13: 22:43.000Z".
"amount": 0.002.
"isNotified": true
},
{
"id": "57d7f3bb8cacb802935f86d9",
"date": "2016-09 - 13 T 12: 40:27.000Z".
"amount": 0.002.
"isNotified": true
}

capture-decran-2016-10-26-01-25-19

Developers API to send and receive payment from EDC. No registration required!

This page offers you the possibility:

  • Install and run CLI Wallet. The Cli-Wallet is used to interact with the blockchain. Anything that adds new data to the blockchain requires a signature from a private key. These signed transactions can be produced by the cli wallet.
  • Most of the useful Wallet CLI commands and example API call.
  • API Blockchain Websocket – How to connect and work with it.

Voir documentation


This page offers you the possibility:

  • Install and run CLI Wallet. The Cli-Wallet is used to interact with the blockchain. Anything that adds new data to the blockchain requires a signature from a private key. These signed transactions can be produced by the cli wallet.
  • Most of the useful Wallet CLI commands and example API call.
  • API Blockchain Websocket – How to connect and work with it.

You have two options how to install CLI wallet:

1

2

  • Get a container with a pre-installed CLI Wallet: docker pull elatome / edc_cli_wallet
  • CLI Wallet is located in the folder / EDINARCOIN

Running CLI installed Wallet:

  • After the successful installation of the CLI Wallet ./programs/cli_wallet/cli_wallet – server-CPP-endpoint = wss: //blockchain.edinarcoin.com – string-id = 979b29912e5546dbf47604692aafc94519f486c56221a5705f0c7f5f294df126 – CPP-endpoint = host: port
  • Previous step will open the cli-portfolio and unless you already have a local portfolio, it will ask you to provide a password for your door – local currency. It will ask again >. To set a password, tapezset_password my_password
  • Once a portfolio has been created (default portfolio file is wallet.json), it will prompt you with locked >. Unlock:
    • locked > unlocking my_password
    • No
    • > unlocked
  • After this point, you can issue a command to the cli-wallet available or build your own transaction manually.

  • Example call:

    Warp x POST-d ‘ {“method”: “suggest_brain_key”, “jsonrpc”: “2.0”, “params”: [], “id”: 1}’ http: / / localhost: 8089

  • suggest_brain_key () – suggests a key of the brain that is safe to use to create your compte.create_account_with_brain_key () requires you to specify a ‘key of the brain’, a long password that provides enough entropy to generate keys cyrptographic. This function will offer you an appropriate random string which should be easy to write (and, with effort, remember).
  • register_account (string name, owner of public_key_type, active public_key_type, string registrar_account, string referrer_account, uint32_t referrer_percent, bool broadcast) – records the account of a third party on the blockckain. This feature allows to register an account for which you do not have the private key. When he is acting as Registrar, an end user will generate their own private key and send you the public key. The Registrar will use this function to save the account on behalf of the end user.
    Params:
    • name – the name of the account, must be unique on the blockchain. Name must start with the letter, contains at least a dashboard, or number, it must also be in lower case.
    • owner – owner for the new key account.
    • active the active key for the new account-
    • registrar_account – the account that will pay the fee to record the user
    • referrer_account – the account that acts as a referrer, and may receive part of the transaction costs of the user. This can be the same as the registrar_account if there is any indicator.
    • referrer_percent – the percentage (0-100) of the transaction costs of the new user unclaimed by the blockchain to be distributed to her referrer; the rest will be sent to the Registrar. Will be multiplied by GRAPHENE_1_PERCENT during the construction of the transaction.
    • broadcasting – true to disseminate the transaction on the network
  • import_key (string account_name_or_id, string wif_key) – important private key for an existing account. The private key must correspond to a key owner or a key active for the named account.
    Return:
    • true if the key has been imported
    Params:
    • account_name_or_id – the account have the key
    • wif_key – it the private key to the WIF format
  • import_balance (string account_name_or_id, vector & wif_keys const, bool broadcast)) – this call will build transaction (s) that will require all sales controlled by wif_keys and drop them into the given account.
  • transfer (string from, string to, the amount of string, string asset_symbol, string memo, bool broadcast)-transfer of an amount from one account to another. Before the transfer, you have the key and the balance of the account that sent the funds import
    Return:
    • the transaction signed the transfer of funds
    Params:
    • from – the name or other identifier of the account to send money
    • to-the name or ID of the account that receives funds
    • amount – the amount to send
    • asset_symbol – EDC
    • memo – memo to join the transaction. The memo will be encrypted in the transaction and readable for the receiver. There is no limit of length other than the limit imposed by the maximum size of the transaction, but the transaction increases with the size of the transaction
    • broadcasting – true to disseminate the transaction on the network
  • get_account_history (string name, int limit) – returns the most recent operations on the named account. This returns a list of objects of history of operations that describe the activity on the account.
    Return:
    • a list of operation_history_objects
    Note:
    • This API does not have a way to recover more than the last 100 transactions, you can interface directly with the blockchain for more history
    Params:
    • name – the name or ID of the account
    • limit – the number of entries to return (from the most recent) (max 100)
  • get_account_id (string account_name_or_id) – Lookup ID of a named account.
    Return:
    • the identifier of the named account
    Params:
    • account_name_or_id – the name of the account to look up

Connection URL: wss: //blockchain.edinarcoin.com

Access to the API request:

  1. Connect to the full node
  2. Access to an API request
  3. Get the identifier of the API
  4. Call the methods of a specific API by providing the identifier:

Below is a list of the available APIs:

List of notifications of database

Example session:

  • > {“Method”: “call”, “params”:[1, «login», [ «», «»]], “id”: 2}
  • < {“Id”: 2, “result”: true}
  • > {“Method”: “call”, “params”:[1, «base de données», []], ‘id’: 3}
  • < {“Id”: 3, “result”: 2}
  • > {“Method”: “call”, “params”:[1, «l’histoire», []], ‘id’: 4}
  • < {“Id”: 4, “result”: 3}
  • > {“Method”: “call”, “params”:[2, «set_subscribe_callback», [5, false]], ‘id’: 6}
  • < {“Id”: 6, “result”: null}
  • > {“Method”: “call”, “params”:[2, «get_objects», [[ «2.1.0»]]], “id”: 7}