Updated for Open Payments Node SDK version 6
-
Launch Quick Open:
- Linux & Windows:
Ctrl+P
- macOS:
⌘+P
- Linux & Windows:
-
Paste the following command and press
Enter
:
ext install open-payments-snippets-vscode
-
Choose the extension (make sure the author is
Interledger Foundation
). -
Reload Visual Studio Code
Every Open Payments SDK snippet starts with the "op-" prefix:
op-pp
op-grant-continue
You don't need to type any dashes or the full keyword. You can use some alternatives. For example:
ogc
->op-grant-continue
snippetograntc
->op-grant-continue
snippet
Keyword | Description |
---|---|
op-uc | Creates an unauthenticated OP client |
op-ac | Creates an authenticated OP client |
op-wa | Get wallet address information |
op-wa-keys | Get wallet address keys |
op-grant-revoke | Revoke a grant |
op-grant | Request a grant |
op-grant-continue | Continue a grant |
op-grant-ip | Request an incoming payment grant |
op-grant-op | Request an outgoing payment grant |
op-grant-quote | Request a quote grant |
op-token-revoke | Revoke a token |
op-token-rotate | Rotate a token |
op-quote-create | Create a quote without receive amount and debit amount |
op-quote-create-ra | Create a quote with receive amount |
op-quote-create-da | Create a quote with debit amount |
op-quote-get | Get a quote |
op-ip-create | Create an incoming payment without incoming amount |
op-ip-create-ia | Create an incoming payment with incoming amount |
op-ip-complete | Complete an incoming payment |
op-ip-get | Get an incoming payment |
op-ip-list | List incoming payments |
op-op-create | Create an outgoing payment |
op-op-get | Get an outgoing payment |
op-op-list | List outgoing payments |
If you encounter any issues or have feedback, please open an issue on the GitHub repository. We appreciate your feedback and contributions!
This project is licensed under the MIT License - see the LICENSE file for details.