aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbojie <bojie@dexon.org>2019-04-22 12:13:50 +0800
committerbojie <bojie@dexon.org>2019-04-22 12:13:50 +0800
commit95d7513055b31059bf2ae29dca04e04f4b084370 (patch)
tree31c5327513a7c6604f04fd6279a6bde223a7a354
parent1138d56e6b39b76806fe04dde0163dcc95b7291d (diff)
downloaddexon-wiki-95d7513055b31059bf2ae29dca04e04f4b084370.tar
dexon-wiki-95d7513055b31059bf2ae29dca04e04f4b084370.tar.gz
dexon-wiki-95d7513055b31059bf2ae29dca04e04f4b084370.tar.bz2
dexon-wiki-95d7513055b31059bf2ae29dca04e04f4b084370.tar.lz
dexon-wiki-95d7513055b31059bf2ae29dca04e04f4b084370.tar.xz
dexon-wiki-95d7513055b31059bf2ae29dca04e04f4b084370.tar.zst
dexon-wiki-95d7513055b31059bf2ae29dca04e04f4b084370.zip
Updated New JSON RPC API (markdown)
-rw-r--r--New-JSON-RPC-API.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/New-JSON-RPC-API.md b/New-JSON-RPC-API.md
index d183e5b..00b8fb4 100644
--- a/New-JSON-RPC-API.md
+++ b/New-JSON-RPC-API.md
@@ -290,7 +290,7 @@ Geth 1.4 has experimental pub/sub support. See [this](https://github.com/ethereu
## JavaScript API
-To talk to an ethereum node from inside a JavaScript application use the [web3.js](https://github.com/ethereum/web3.js) library, which gives a convenient interface for the RPC methods.
+To talk to an dexon node from inside a JavaScript application use the [web3.js](https://github.com/ethereum/web3.js) library, which gives a convenient interface for the RPC methods.
See the [JavaScript API](https://github.com/ethereum/wiki/wiki/JavaScript-API) for more.
Extend API will support in the future.
@@ -351,7 +351,7 @@ The following methods have an extra default block parameter:
- [eth_getStorageAt](#eth_getstorageat)
- [eth_call](#eth_call)
-When requests are made that act on the state of ethereum, the last default block parameter determines the height of the block.
+When requests are made that act on the state of dexon, the last default block parameter determines the height of the block.
The following options are possible for the defaultBlock parameter:
@@ -566,7 +566,7 @@ curl -X POST --data '{"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":
#### eth_protocolVersion
-Returns the current ethereum protocol version.
+Returns the current dexon protocol version.
##### Parameters
none
@@ -956,7 +956,7 @@ curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getCode","params":["0xa94f53
#### eth_sign
-The sign method calculates an Dexon specific signature with: `sign(keccak256("\x19Ethereum Signed Message:\n" + len(message) + message)))`.
+The sign method calculates an Dexon specific signature with: `sign(keccak256("\x19Dexon Signed Message:\n" + len(message) + message)))`.
By adding a prefix to the message makes the calculated signature recognisable as an Dexon specific signature. This prevents misuse where a malicious DApp can sign arbitrary data (e.g. transaction) and use the signature to impersonate the victim.
@@ -1000,7 +1000,7 @@ Creates new message call transaction or a contract creation, if the data field c
- `gas`: `QUANTITY` - (optional, default: 90000) Integer of the gas provided for the transaction execution. It will return unused gas.
- `gasPrice`: `QUANTITY` - (optional, default: To-Be-Determined) Integer of the gasPrice used for each paid gas
- `value`: `QUANTITY` - (optional) Integer of the value sent with this transaction
- - `data`: `DATA` - The compiled code of a contract OR the hash of the invoked method signature and encoded parameters. For details see [Ethereum Contract ABI](https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI)
+ - `data`: `DATA` - The compiled code of a contract OR the hash of the invoked method signature and encoded parameters. For details see [Dexon Contract ABI](https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI)
- `nonce`: `QUANTITY` - (optional) Integer of a nonce. This allows to overwrite your own pending transactions that use the same nonce.
##### Example Parameters