request methods
You can use request
to connect to users' wallets, prompt users to share their Bitcoin & Stacks wallet addresses, and sign messages and transactions with their Bitcoin & Stacks addresses.
Available methods
request
gives you access to a set of JSON RPC 2.0 methods which follow the WBIP001 standard. All available Bitcoin & Stacks methods are detailed in the present documentation:
Connect, fetch accounts & manage permissions | |
Bitcoin Methods | |
Stacks Methods |
Request parameters
Request parameters | Description |
---|---|
| a string representing the RPC method to call |
| the params required by the RPC method |
| wallet provider id to use for the request |
Response format & error handling
Depending on the status property the response will contain either a result or error object.
Property | Description |
---|---|
| success | error |
| an object containing the result of the RPC request |
| an object containing the error of the RPC request |
Error handling for these methods follows the JSON-RPC 2.0 protocol format:
Property | Description |
---|---|
|
|
| error message |
| any |
Error codes
Last updated