V2 API Enabling (#33)

* node height return value and documentation

* rustfmt

* add parameter struct for initiate tx functions

* rustfmt

* change tx estimate to use InitTxArgs

* rustfmt

* transaction estimate

* rustfmt

* initiate tx args fixed

* add send args to init

* rustfmt

* last owner api documentation

* api 2 wiring

* rustfmt

* wiring in V2 JSON-RPC API

* rustfmt

* some documentation on endpoint

* shorten endpoints
This commit is contained in:
Yeastplume
2019-04-01 11:16:49 +01:00
committed by GitHub
parent 427f42c552
commit 4bbce85b75
5 changed files with 186 additions and 9 deletions
+4 -1
View File
@@ -21,7 +21,10 @@ use crate::libwallet::ErrorKind;
use crate::Foreign;
use easy_jsonrpc;
/// Public definition used to generate jsonrpc api for Foreign.
/// Public definition used to generate Foreign jsonrpc api.
/// * When running `grin-wallet listen` with defaults, the V2 api is available at
/// `localhost:3415/v2/foreign`
/// * The endpoint only supports POST operations, with the json-rpc request as the body
#[easy_jsonrpc::rpc]
pub trait ForeignRpc {
/**
+4 -1
View File
@@ -26,7 +26,10 @@ use crate::libwallet::ErrorKind;
use crate::Owner;
use easy_jsonrpc;
/// Public definition used to generate jsonrpc api for Owner.
/// Public definition used to generate Owner jsonrpc api.
/// * When running `grin-wallet listen` with defaults, the V2 api is available at
/// `localhost:3420/v2/owner`
/// * The endpoint only supports POST operations, with the json-rpc request as the body
#[easy_jsonrpc::rpc]
pub trait OwnerRpc {
/**