Sunteți pe pagina 1din 5

Funciones API CURL ethereum

Transacciones

Api_key api_key de wallet

From_Address dirección que envía

To_Addrees dirección que recibe

Amount monto

GasLimit Limite de gas como minimo 21000

GasPrice Precio de gas como minimo 1

PIN clave personal

http://142.4.219.173:3001/api/ether/send/{api_key}/{from_addres}/{to_address}/{amount}/{gasLimit}/{gasPrice}/{PIN}

http://142.4.219.173:3001/api/ether/send/d2eabe59fb835943d6af39ae4cbc82cd/0x52dE9E090ebFb089705336aF0d30
FC4eAF394a76/0x701021FAAaA6eEE00b00c64480B88809F394Cef7/0.002758803341462607/31500/10/12345678

Respuesta

hash

0x957b685b423754af1198d22f26981a4458c0749e7482c05ef4d78ad2b80aad79

Saldo wallet

Api_key de wallet

http://142.4.219.173:3001/api/ether/balance/{api_key}

Ejemplo

http://142.4.219.173:3001/api/ether/balance/d2eabe59fb835943d6af39ae4cbc82cd

Respuesta
"0.035237410722267237"

Saldo address

Api_key de wallet

Address que este dentro de la wallet

http://142.4.219.173:3001/api/ether/addressbalance/{api_key}/{address}

Ejemplo

http://142.4.219.173:3001/api/ether/addressbalance/d2eabe59fb835943d6af39ae4cbc82cd/0xa89D0b2E06c4F7D5107
308F725E2080C6F4D7F26

Respuesta
"0"

Agregar direcciones a wallet

Api_key de wallet

http://142.4.219.173:3001/api/ether/addaccount/{api_key}/{label}

Ejemplo

http://142.4.219.173:3001/api/ether/addaccount/d2eabe59fb835943d6af39ae4cbc82cd/Hola

Respuesta
{"address":"0x9d0aCFdC59E290CbA7183c4FC3fD6Cfa5eC536B5","privateKey":"0x44db174331a8fd332
e324a0079c44ff4104e11f74be099e353bb32388dc4bdbc"}

Info wallet

Api_key api_key de wallet

http://142.4.219.173:3001/api/ether/wallet/{api_key}

Ejemplo

http://142.4.219.173:3001/api/ether/wallet/d2eabe59fb835943d6af39ae4cbc82cd

Respuesta
[{"email":"jose@correo.com","address":"0x701021FAAaA6eEE00b00c64480B88809F394Cef7","priva
teKey":"0x3f5df33b1ed3689d418e41325a030f9fdb3c9379a20e54d517f3135ede1b46bf","balance":"0.
035237410722267237"}]

Convertir dólares a ethereum

Cant_usd cantidad en dólares a convertir

http://142.4.219.173:3001/api/ether/from_usd/{cant_usd}

Ejemplo

http://142.4.219.173:3001/api/ether/from_usd/1500

Respuesta
4.15632204291541

El valor varía según la cotización

Convertir ethereum a dolares

Cant_eth cantidad de ethereum a convertir

http://142.4.219.173:3001/api/ether/from_eth/{cant_eth}

Ejemplo
http://142.4.219.173:3001/api/ether/from_eth/1500

Respuesta
"541344.00"

El valor varía según la cotización

Cantidad de transacciones por dirección

Api_key apikey de wallet

Address dirección a consultar

http://142.4.219.173:3001/api/ether/transactioncount/{api_key}/{address}

Ejemplo

http://142.4.219.173:3001/api/ether/transactioncount/d2eabe59fb835943d6af39ae4cbc82cd/0x701021FAAaA6eEE00b
00c64480B88809F394Cef7

Respuesta
36
Funciones Api CURL BTC nuevas

Detalles de address

http://142.4.219.173/api/btc/detailsaddress?api_key={api_key}&address={address}

Ejemplo
http://142.4.219.173/api/btc/detailsaddress?api_key=61fc747225701b42066a81bef1f6
c4dd&address=1QJ9GpTGowXNWzbhEWufAvNRU73WmBkur3

Respuesta
{
"hash160": "ff88debeff06822e62042c848b4fd184864fe8e9",
"address": "1QJ9GpTGowXNWzbhEWufAvNRU73WmBkur3",
"n_tx": 0,
"total_received": "0.00000000",
"total_sent": "0.00000000",
"final_balance": "0.00000000",
"transactions": []
}

Detalles de transacción
http://142.4.219.173/api/btc/checktransaction?api_key={api_key}&hash={hash de
transacción a consultar}

Ejemplo

http://142.4.219.173/api/btc/checktransaction?api_key=61fc747225701b42066a81bef1
f6c4dd&hash=828d46f5ad88aa94e132031cd5aa540c38b4bea3e63a3c881be3c812d6
8057ea

Respuesta
{
"double_spend": false,
"block_height": 477059,
"time": 1500754824,
"lock_time": 0,
"relayed_by": "127.0.0.1",
"hash": "828d46f5ad88aa94e132031cd5aa540c38b4bea3e63a3c881be3c812d68057ea",
"tx_index": 269838681,
"version": 1,
"size": 226,
"inputs": [
{
"sequence": 4294967295,
"script_sig":
"483045022100a0e771314de41b0b87375a055a666c0cfc1ad25b0d2902d4551592a552c93a9002204d54b834
bfc82dd28a02ecbcd90ecb15330f9749316140fc06be2dc82fdb47d2012103cd85e36b9f9441cca29ca764e10
0000c9ff065ed12072b89913fb7bb6350564e",
"coinbase": false,
"n": 1,
"value": "0.00050750",
"address": "1BcwUV5knpvST9ZHv1HZQH9yXcGaeHqFsJ",
"tx_index": 269837420,
"type": 0,
"script": "76a914747d49fb713808bec31ea41be1698c8d5b0b964088ac"
}
],
"outputs": [
{
"n": 0,
"value": "0.00001000",
"address": "1AqDCV6Es7HSz8HsEieVJpg54xA5WUMsbh",
"tx_index": 269838681,
"script": "76a9146bd747d5893678243b600914c6c19425ee775c6988ac",
"spent": false
},
{
"n": 1,
"value": "0.00039750",
"address": "1BcwUV5knpvST9ZHv1HZQH9yXcGaeHqFsJ",
"tx_index": 269838681,
"script": "76a914747d49fb713808bec31ea41be1698c8d5b0b964088ac",
"spent": true
}
]
}

S-ar putea să vă placă și