Download OpenAPI specification:Download
This API facilitates communication between dapps and wallets. This frees dapp developers from the complexity of managing private keys, allowing them to focus on the functionality and business logic of the application. Whenever the dapp needs to send a signed transaction, all you have to do is make an AJAX request to this API on localhost port 9467 and the user's wallet app will handle all the details of transaction signing for you.
code required | string |
data | object (Object) Arbitrary JSON object. |
required | Array of objects (CapabilityWithDescription) |
nonce | string |
chainId | string (ChainId) chainweb chain ID where the transaction will be executed |
gasLimit | number (GasLimit) >= 0 max number of gas units you want to spend on this transaction |
ttl | number (TTLSeconds) number of seconds the transaction can wait in the mempool before expiring |
sender | string (AccountName) The name of an account in the coin contract. In the SigningRequest sender field, this will be the account used to pay the transaction's gas price. |
extraSigners | Array of strings (PublicKey) |
{- "code": "string",
- "data": { },
- "caps": [
- {
- "role": "string",
- "description": "string",
- "cap": {
- "name": "foo.bar",
- "args": [
- "arg1",
- "arg2"
]
}
}
], - "nonce": "string",
- "chainId": "string",
- "gasLimit": 0,
- "ttl": 0,
- "sender": "string",
- "extraSigners": [
- "string"
]
}
{- "body": {
- "cmd": "string",
- "sigs": [
- {
- "sig": "string"
}
], - "hash": "string"
}, - "chainId": "string"
}
required | Array of objects (CommandSigData) |
{- "cmdSigDatas": [
- {
- "sigs": [
- {
- "pubKey": "stringstringstringstringstringstringstringstringstringstringstri",
- "sig": "string"
}
], - "cmd": "string"
}
]
}
{- "results": [
- {
- "sigs": [
- [
- "acbe76b30ccaf57e269a0cd5eeeb7293e7e84c7d68e6244a64c4adf4d2df6ea1",
- "e103338c324190c0e86f06e2fdcc886df42562c5d74a2216c8b2cc729d255686ec5488693569da6afc57a02af5e4ec5bd013c24b4fcddd94cc94eb412e88a20d"
]
], - "cmd": "<cmd here>"
}
]
}