Ontology Developer Center
DISCOVER
APPLICATIONS
COMMUNITY
SUPPORT
Search…
v2.5
Introduction
Discover Ontology
Getting Started
Glossary
Decentralized Identity and Data
ONT ID
DDXF
ONTOLOGY ELEMENTS
Smart Contracts
Token Protocols
Consensus Mechanism
Ontology Oracle
GUIDES & TUTORIALS
Development Guides
Integration Guides
EVM & Token Decimals Upgrade
ONTOLOGY NODE
Abstract
Node Deployment
Interacting with a Public Node
DEVELOPER TOOLS
dApp Development Framework
IDE
APIs
Digital Wallet
SDKs
Signing Server
Installation
API reference
COMMUNITY
Ecosystem Programs
Community Libraries
Community Events
Community Channels
Core Contributors
SUPPORT
FAQ
Contact Us
Powered By
GitBook
API reference
Available API methods
API endpoint
The signing service is basically a
JSON
RPC
server that is by default available at:
1
http://localhost:20000/cli
Copied!
The signing server only supports
POST
method queries
Request structure
The request sent to the signing server is structured as follows:
1
{
2
qid
:
"XXX"
,
// Request ID. The response will echo back the same qid
3
method
:
"XXX"
,
// Requested method name
4
account
:
"XXX"
,
// Account for sign
5
pwd
:
"XXX"
,
// Account password
6
params
:
{}
// Input parameters for the requested method
7
}
Copied!
Response structure
The response sent by the signing server has the following structure:
1
{
2
qid
:
"XXX"
,
// Request ID
3
method
:
"XXX"
,
// Requested method name
4
result
:
{
// Response result
5
signed_tx
:
"XXX"
// Signed transaction
6
},
7
error_code
:
0
,
// Error code,zero represents success, non-zero represents failure
8
error_info
:
""
// Error description
9
}
Copied!
Error codes
In case an error occurs, the
error_code
field will contain one of the following error codes:
Error code
Error description
1001
Invalid
http
method
1002
Invalid
http
request
1003
Invalid request parameter
1004
Unsupported method
1005
Account is locked
1006
Invalid transactions
1007
ABI
is not found
1008
ABI
is not matched
9999
Unknown error
Please refer to the following links to find the relevant functions:
Library
Link
Account information
​
https://dev-docs.ont.io/#/docs-en/SignServer/04-api-account-methods
​
Signing methods
​
https://dev-docs.ont.io/#/docs-en/SignServer/05-api-signing-methods
​
Convenience methods
​
https://dev-docs.ont.io/#/docs-en/SignServer/06-api-signing-convinience-methods
​
Previous
Installation
Next - COMMUNITY
Ecosystem Programs
Last modified
2yr ago
Copy link
Contents
API endpoint
Request structure
Response structure
Error codes