Skip to content

Latest commit

 

History

History
216 lines (134 loc) · 7.07 KB

File metadata and controls

216 lines (134 loc) · 7.07 KB

\NodeApi

All URIs are relative to http://localhost:12052

Method HTTP request Description
NodeDeleteWalletPost Post /node/delete_wallet Delete a wallet
NodeExportWalletPost Post /node/export_wallet Export wallet secret key
NodeGenerateWalletPost Post /node/generate_wallet Generate a new wallet
NodeGetAllWalletsPost Post /node/get_all_wallets Get all wallet labels
NodeGetRulesPost Post /node/get_rules Get network governance rules
NodeGetTaskStatusPost Post /node/get_task_status Get all tasks in the node
NodeImportWalletPost Post /node/import_wallet Import wallet from secret key
NodeUnlockWalletPost Post /node/unlock_wallet Unlocks a wallet for a given amount of seconds [async call]

NodeDeleteWalletPost

NodeDeleteWalletPost(ctx, deleteWalletRequest) Delete a wallet

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
deleteWalletRequest DeleteWalletRequest

Return type

(empty response body)

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

NodeExportWalletPost

ExportWalletResponse NodeExportWalletPost(ctx, exportWalletRequest) Export wallet secret key

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
exportWalletRequest ExportWalletRequest

Return type

ExportWalletResponse

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

NodeGenerateWalletPost

NodeGenerateWalletPost(ctx, generateWalletRequest) Generate a new wallet

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
generateWalletRequest GenerateWalletRequest

Return type

(empty response body)

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

NodeGetAllWalletsPost

GetAllWalletsResponse NodeGetAllWalletsPost(ctx, ) Get all wallet labels

Required Parameters

This endpoint does not need any parameter.

Return type

GetAllWalletsResponse

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

NodeGetRulesPost

GetRulesResponse NodeGetRulesPost(ctx, ) Get network governance rules

Required Parameters

This endpoint does not need any parameter.

Return type

GetRulesResponse

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

NodeGetTaskStatusPost

GetTaskStatusResponse NodeGetTaskStatusPost(ctx, getTaskStatusRequest) Get all tasks in the node

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
getTaskStatusRequest GetTaskStatusRequest

Return type

GetTaskStatusResponse

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

NodeImportWalletPost

NodeImportWalletPost(ctx, importWalletRequest) Import wallet from secret key

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
importWalletRequest ImportWalletRequest

Return type

(empty response body)

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

NodeUnlockWalletPost

AsyncTaskCreatedResponse NodeUnlockWalletPost(ctx, unlockWalletRequest) Unlocks a wallet for a given amount of seconds [async call]

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
unlockWalletRequest UnlockWalletRequest

Return type

AsyncTaskCreatedResponse

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]