Skip to content
Tsarev Vladimir edited this page Dec 24, 2018 · 2 revisions

Welcome to the Gridcoin online wallet wiki!

Web interface

User interface

Administrative interface

Sending

You can send with web interface or API interface.

Receiving

API interface

Methods

  • get_balance - returns your balance
  • get_price_in_btc - returns current price in BTC (from coingecko)
  • get_price_in_usd - returns current price in USD (from coingecko)
  • get_prices_all - returns prices in each known currency: BTC and USD currently. (also from coingecko)
  • get_all_receiving_addresses - get your all receiving addresses and received funds for each address.
  • get_receiving_address_by_uid - get specific receiving address and received funds.
  • new_receiving_address - create new receiving address.
  • get_all_transactions - get all transactions.
  • get_transaction_by_uid - get specific transaction.
  • send - send specific amount to specific address.

get_balance

Returns your balance.

Curl:

$ curl -d 'api_key=4350be95924e4f8f924b5f532a42eb73&method=get_balance' https://wallet.arikado.ru/api.php {"balance":"6.5012"}

get_price_in_btc

Returns current price in BTC (from coingecko)

Curl:

$ curl -d 'api_key=4350be95924e4f8f924b5f532a42eb73&method=get_price_in_btc' https://wallet.arikado.ru/api.php {"btc_per_grc":"1.57E-6"}

get_price_in_usd

Returns current price in USD (from coingecko)

Curl:

$ curl -d 'api_key=4350be95924e4f8f924b5f532a42eb73&method=get_price_in_usd' https://wallet.arikado.ru/api.php {"usd_per_grc":"0.0064545804306413"}

get_prices_all

Returns prices in each known currency: BTC and USD currently. (also from coingecko)

Curl:

$ curl -d 'api_key=4350be95924e4f8f924b5f532a42eb73&method=get_prices_all' https://wallet.arikado.ru/api.php {"btc_per_usd":"1.57E-6","usd_per_grc":"0.0064545804306413"}

get_all_receiving_addresses

Get your all receiving addresses and received funds for each address.

Curl:

$ curl -d 'api_key=4350be95924e4f8f924b5f532a42eb73&method=get_all_receiving_addresses' https://wallet.arikado.ru/api.php [{"uid":"6","address":"S73kiuf4oAG8GdoKV9KBfi1JZTDjHkHzjf","received":"0.2112"},{"uid":"8","address":"RySBHmppoH7uiNJUDLxurvo2k19xuyAcwr","received":"0.924"},{"uid":"16","address":"SMF8XaJnx7mbjb2rBe6k2sLANARX2Rb27L","received":"6.6"}]

get_receiving_address_by_uid

Get specific receiving address and received funds.

Curl:

$ curl -d 'api_key=4350be95924e4f8f924b5f532a42eb73&method=get_receiving_address_by_uid&address_uid=8' https://wallet.arikado.ru/api.php {"uid":"8","address":"RySBHmppoH7uiNJUDLxurvo2k19xuyAcwr","received":"0.924"}

new_receiving_address

Create new receiving address. Method returns uid of request. You should check is address created with method 'get_receiving_address_by_uid'

Curl:

Address request:

$ curl -d 'api_key=4350be95924e4f8f924b5f532a42eb73&method=new_receiving_address' https://wallet.arikado.ru/api.php {"uid":30}

Address is not generated yet:

$ curl -d 'api_key=4350be95924e4f8f924b5f532a42eb73&method=get_receiving_address_by_uid&address_uid=30' https://walleru/api.php {"uid":"30","address":null,"received":"0"}

Address is generated:

$ curl -d 'api_key=4350be95924e4f8f924b5f532a42eb73&method=get_receiving_address_by_uid&address_uid=30' https://wallet.arikado.ru/api.php {"uid":"30","address":"S1nouxkr6rrpWYhYMVnUdEExQ5H3HL9UL4","received":"0"}

get_all_transactions

Get all transactions.

Curl:

$ curl -d 'api_key=4350be95924e4f8f924b5f532a42eb73&method=get_all_transactions' https://wallet.arikado.ru/api.php [{"uid":"12","amount":"0.0001","address":"S73kiuf4oAG8GdoKV9KBfi1JZTDjHkHzjf","status":"received","tx_id":"0ba782079b2557e27c797b381eb12427be1f6c33ec673d4bfad927f4ae010592","timestamp":"2018-11-26 12:57:06"},{"uid":"13","amount":"0.0001","address":"S73kiuf4oAG8GdoKV9KBfi1JZTDjHkHzjf","status":"received","tx_id":"37e8dec66148f1fbb95e6ecac6a66da6c25de3199bacad2e7a5dadfb27031b67","timestamp":"2018-11-26 15:25:08"},{"uid":"15","amount":"0.2","address":"RySBHmppoH7uiNJUDLxurvo2k19xuyAcwr","status":"received","tx_id":"018d8f09f54c61e78ae8b9d4508703f98824192ce43ce00e0168b172fffa54db","timestamp":"2018-11-26 15:48:06"},{"uid":"17","amount":"0.123","address":"RySBHmppoH7uiNJUDLxurvo2k19xuyAcwr","status":"received","tx_id":"bfec838a1a039cebeac40dfd661bcc61c8f72a144a0017ce42e17378d815c1ca","timestamp":"2018-11-26 17:56:06"},{"uid":"19","amount":"0.3","address":"RySBHmppoH7uiNJUDLxurvo2k19xuyAcwr","status":"received","tx_id":"44ce0fecc869d72d1af37ab530560d0124e5bdd191e9080c6f6e06e1747332bd","timestamp":"2018-11-29 16:47:07"},{"uid":"23","amount":"0.211","address":"S73kiuf4oAG8GdoKV9KBfi1JZTDjHkHzjf","status":"received","tx_id":"203d6716ca084a5c85224ef47a48212fc44dbc54ef933bfe3da48f460d7fb326","timestamp":"2018-11-29 17:49:45"},{"uid":"24","amount":"0.001","address":"RySBHmppoH7uiNJUDLxurvo2k19xuyAcwr","status":"received","tx_id":"a1bc47c88abcf93e1b0f532a8934a27e15b6b051078cc19a793da63ee6690dab","timestamp":"2018-11-29 17:50:47"},{"uid":"46","amount":"0.3","address":"RySBHmppoH7uiNJUDLxurvo2k19xuyAcwr","status":"received","tx_id":"195be9a2ba384f8296b0c7046112b8c3aa7aeb11d9cea0339c211058d6a81d9b","timestamp":"2018-11-30 16:03:47"},{"uid":"113","amount":"6.6","address":"SMF8XaJnx7mbjb2rBe6k2sLANARX2Rb27L","status":"received","tx_id":"44538222232462d8de57b033e4c17e00a95ef823b6058fa9101d1447b9e48f4c","timestamp":"2018-12-05 21:05:52"},{"uid":"129","amount":"1.234","address":"SDeLtAzzaNkvom9HzVgdHHGToEjZ7sYipp","status":"sent","tx_id":"55d0699413229879c1a00f1aa9675fe2566b85a351fa8022de6a98a4c8eb2f4f","timestamp":"2018-12-07 11:40:55"}]

get_transaction_by_uid

Get specific transaction.

Curl:

$ curl -d 'api_key=4350be95924e4f8f924b5f532a42eb73&method=get_transaction_by_uid&transaction_uid=12' https://wallet.arikado.ru/api.php {"uid":"12","amount":"0.0001","address":"S73kiuf4oAG8GdoKV9KBfi1JZTDjHkHzjf","status":"received","tx_id":"0ba782079b2557e27c797b381eb12427be1f6c33ec673d4bfad927f4ae010592","timestamp":"2018-11-26 12:57:06"}

send

Send specific amount to specific address.

Curl:

Send:

$ curl -d 'api_key=4350be95924e4f8f924b5f532a42eb73&method=send&amount=1&address=SDwntFnD5uNo8uSBkA6EXFr2UTgAd2C3so' https://wallet.arikado.ru/api.php {"uid":1029}

Check sending status:

$ curl -d 'api_key=4350be95924e4f8f924b5f532a42eb73&method=get_transaction_by_uid&transaction_uid=1029' https://wallet.arikado.ru/api.php {"uid":"1029","amount":"1","address":"SDwntFnD5uNo8uSBkA6EXFr2UTgAd2C3so","status":"sent","tx_id":"a4ce3361ae20b9097fa5121c904695d3ea698f904585a7e8fb992f09c6e95a92","timestamp":"2018-12-24 18:07:05"}

Errors

Common errors

  • API disabled
  • API key is not set
  • Unknown API key
  • Method is not set
  • Unknown method

Method 'get_receiving_address_by_uid'

  • Wrong address uid

Method 'get_transaction_by_uid'

  • Wrong transaction uid

Method 'send'

  • Wrong amount
  • Wrong address
  • Sending error