Confirm a request in the signer queue
Quantity - The request id.Object - Modify the transaction before confirmation.
gasPrice: Quantity - (optional) Modify the gas price provided by the sender in Wei.gas: Quantity - (optional) Gas provided by the sender in Wei.condition: Object - (optional) Condition for scheduled transaction. Can be either an integer block number { block: 1 } or UTC timestamp (in seconds) { timestamp: 1491290692 }.String - The account passwordparams: [
"0x1", // 1
{},
"hunter2"
]
Object - The status of the confirmation, depending on the request type.Request
curl --data '{"method":"signer_confirmRequest","params":["0x1",{},"hunter2"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Response
{
"id": 1,
"jsonrpc": "2.0",
"result": {}
}
Confirm a request in the signer queue providing signed request.
Quantity - Integer - The request idData - Signed request (RLP encoded transaction)params: [
"0x1", // 1
"0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"
]
Object - The status of the confirmation, depending on the request type.Request
curl --data '{"method":"signer_confirmRequestRaw","params":["0x1","0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Response
{
"id": 1,
"jsonrpc": "2.0",
"result": {}
}
Confirm specific request with rolling token.
Quantity - The request id.Object - Modify the transaction before confirmation.
gasPrice: Quantity - (optional) Modify the gas price provided by the sender in Wei.gas: Quantity - (optional) Gas provided by the sender in Wei.condition: Object - (optional) Conditional submission of the transaction. Can be either an integer block number { block: 1 } or UTC timestamp (in seconds) { time: 1491290692 } or null.String - Password (initially) or a token returned by the previous call.params: [
"0x1", // 1
{},
"hunter2"
]
Object - Status.
result: Object - The status of the confirmation, depending on the request type.token: String - Token used to authenticate the next request.Request
curl --data '{"method":"signer_confirmRequestWithToken","params":["0x1",{},"hunter2"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Response
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"result": { ... },
"token": "cAF2w5LE7XUZ3v3N"
}
}
Generates a new authorization token.
None
String - The new authorization token.Request
curl --data '{"method":"signer_generateAuthorizationToken","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Response
{
"id": 1,
"jsonrpc": "2.0",
"result": "bNGY-iIPB-j7zK-RSYZ"
}
Generates a new web proxy access token.
String - Domain for which the token is valid. Only requests to this domain will be allowed.params: ["https://parity.io"]
String - The new web proxy access token.Request
curl --data '{"method":"signer_generateWebProxyAccessToken","params":["https://parity.io"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Response
{
"id": 1,
"jsonrpc": "2.0",
"result": "MOWm0tEJjwthDiTU"
}
Rejects a request in the signer queue
Quantity - Integer - The request idparams: [
"0x1" // 1
]
Boolean - The status of the rejectionRequest
curl --data '{"method":"signer_rejectRequest","params":["0x1"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Response
{
"id": 1,
"jsonrpc": "2.0",
"result": true
}
Returns a list of the transactions awaiting authorization.
None
Array - A list of the outstanding transactions.Request
curl --data '{"method":"signer_requestsToConfirm","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Response
{
"id": 1,
"jsonrpc": "2.0",
"result": [ ... ]
}
Starts a subscription for transactions in the confirmation queue.
Each event contains all transactions currently in the queue.
An example notification received by subscribing to this event:
```
{"jsonrpc":"2.0","method":"signer_pending","params":{"subscription":"0x416d77337e24399d","result":[]}}
```
You can unsubscribe using `signer_unsubscribePending` RPC method. Subscriptions are also tied to a transport
connection, disconnecting causes all subscriptions to be canceled.
None
String - Assigned subscription IDRequest
wscat -c localhost:8546
>{"method":"signer_subscribePending","params":[],"id":1,"jsonrpc":"2.0"}
Response
{
"id": 1,
"jsonrpc": "2.0",
"result": "0x416d77337e24399d"
}
Unsubscribes from pending transactions subscription.
String - Subscription IDparams: ["0x416d77337e24399d"]
Boolean - whether the call was successfulRequest
wscat -c localhost:8546
>{"method":"signer_unsubscribePending","params":["0x416d77337e24399d"],"id":1,"jsonrpc":"2.0"}
Response
{
"id": 1,
"jsonrpc": "2.0",
"result": true
}