提供本体 RESTFUL API 列表。下面... https://dev-docs.ont.io/#/docs-en/API/02-restful_api?id=restful-api-list。
OWallet 声明 RESTFUL API 如下。https://github.com/ontio/OWallet/blob/17e2e57fec6f04f79fd8582a8f9989aac517138c/src/core/consts.js
export const ONT_PASS_URL = {
CreateSharedWallet: '/S1/api/v1/ontpass/SharedWallet/create',
QuerySharedWallet: '/S1/api/v1/ontpass/SharedWallet/getBySharedWalletAddress', //get
CreateSharedTransfer: '/S1/api/v1/ontpass/SharedTransfer/create',
SignSharedTransfer: '/S1/api/v1/ontpass/SharedTransfer/sign',
SendSharedTransfer: '/S1/api/v1/ontpass/SharedTransfer/isSendToChain', //get
QueryPendingTransfer: '/S1/api/v1/ontpass/SharedTransfer/listSigningBeforeTime',
// sharedAddress={sharedAddress}&assetName={assetName}&beforeTimeStamp={beforeTimeStamp},
ExchangeCurrency: '/S1/api/v1/ontpass/api/v1/onto/exchangerate/reckon/'
///api/v1/onto/exchangerate/reckon/{currency}/{goaltype}/{amount}
//for node stake
,
GetQualifiedState: '/S4/NodePledgeApi/v1/Nodepledge/getQuailifiedState',
// /NodePledgeApi/v1/Nodepledge/getQuailifiedState?ontid={ontid}&address={address}'
DelegateSendTx: '/S4/NodePledgeApi/v1/Nodepledge/delegateSendTransaction',
SetStakeInfo: '/S4/NodePledgeApi/v1/Nodepledge/setInfo',
GetStakeInfo: '/S4/NodePledgeApi/v1/Nodepledge/info'
// /NodePledgeApi/v1/Nodepledge/info?ontid={ontid}
}
假设 OWallet 使用本体 RESTFUL API。