Open caivega opened 3 years ago
jt_createWallet的返回结果,第2层result仍然是数组,,似乎没有必要。
{
"jsonrpc": "2.0",
"method": "jt_createWallet",
"params": [
{
"type": "Ed25519"
}
],
"id": 1
}
{
"id": 1,
"jsonrpc": "2.0",
"result": [
{
"result": [
{
"address": "jsAtX6G3bryNau1b7nLepK486AnrtPH8Cr",
"secret": "sEd7wfmvUUJJVZtbQLYNUZEB3u6CgwN",
"type": "Ed25519"
}
]
}
]
}
建议改成:
{
"id": 1,
"jsonrpc": "2.0",
"result": [
{
"result": {
"address": "jsAtX6G3bryNau1b7nLepK486AnrtPH8Cr",
"secret": "sEd7wfmvUUJJVZtbQLYNUZEB3u6CgwN",
"type": "Ed25519"
}
}
]
}
补充,jt_createAccount有如上同样的问题
补充,jt_createAccount有如上同样的问题
已修复,已更新,下一个build可以验证下
补充,jt_createAccount有如上同样的问题
已修复,已更新,下一个build可以验证下
版本v0.5.4-dev-20210202-95e57512b464d7595068a4dda3e2fe1cfae85d1b中已经修复。
原则:
jt_version
request:
[{"format":"text"}]
){"format":string}
,默认属性为format)string["text", "json"]
(支持的为string类型,内容为"text"及"json")注:()内为注释,下同
jt_createWallet
request:
jt_createAccount
request:
jt_getAccount
request:
jt_accounts
request:
jt_getCurrency
request:
jt_blockNumber
request:
jt_getBalance
request:
jt_getBlockByHash
request:
jt_getBlockByNumber
request:
jt_getBlockTransactionCountByHash
request:
jt_getBlockTransactionCountByNumber
request:
jt_getTransactionCount
request:
jt_getTransactionByHash
request:
jt_getTransactionByIndex
request:
jt_getTransactionByBlockHashAndIndex
request:
jt_getTransactionByBlockNumberAndIndex
request:
jt_getTransactionReceipt
request:
jt_sign
request:
jt_sendTransaction
jt_signTransaction
request:
object
type["Payment", "IssueCoin"]
from, address[string(account)]
secret[string(secret)]
to[string(account)]
sequence[integer(sequence)]
fee[string]
flags[integer]
memos[array]
value[string(amount)]
name[string]
symbol[string]
decimals[string]
total_supply[string]
local[boolean]
jt_sendRawTransaction
request:
jt_batch