{"id":25449822,"url":"https://github.com/deltartificial/dfns-sdk-rs-examples","last_synced_at":"2025-11-02T02:30:42.873Z","repository":{"id":277212978,"uuid":"931252015","full_name":"deltartificial/dfns-sdk-rs-examples","owner":"deltartificial","description":"Examples of how to use the dfns-sdk-rs library.","archived":false,"fork":false,"pushed_at":"2025-02-12T19:18:50.000Z","size":37,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-12T19:22:53.945Z","etag":null,"topics":["dfns","examples","rust","sdk"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deltartificial.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-12T00:53:56.000Z","updated_at":"2025-02-12T19:18:54.000Z","dependencies_parsed_at":"2025-02-12T19:23:04.990Z","dependency_job_id":"ec71d534-55b7-4d09-a549-cd8a4e765c32","html_url":"https://github.com/deltartificial/dfns-sdk-rs-examples","commit_stats":null,"previous_names":["deltartificial/dfns-sdk-rs-examples"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deltartificial%2Fdfns-sdk-rs-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deltartificial%2Fdfns-sdk-rs-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deltartificial%2Fdfns-sdk-rs-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deltartificial%2Fdfns-sdk-rs-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deltartificial","download_url":"https://codeload.github.com/deltartificial/dfns-sdk-rs-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239366245,"owners_count":19626656,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dfns","examples","rust","sdk"],"created_at":"2025-02-17T21:19:46.345Z","updated_at":"2025-11-02T02:30:42.798Z","avatar_url":"https://github.com/deltartificial.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dfns-sdk-rs-examples\n\nThis is a collection of examples demonstrating how to use the dfns-sdk-rs library.\n\n- [Dfns Website](https://www.dfns.co)\n- [Dfns API Docs](https://docs.dfns.co)\n- [Dfns SDK Rust](https://github.com/deltartificial/dfns-sdk-rs)\n\n## Installation\n\n```bash\ncargo add dfns-sdk-rs\n```\n\n## Usage\n\nTo run any example, use:\n\n```bash\ncargo run --example \u003cexample_name\u003e\n```\n\nFor instance:\n\n```bash\ncargo run --example activate_application\n```\n\n## Overview\n\nThis repository contains the following examples:\n\n##### Authentication\n\n- [x] [Activate Application](examples/auth/activate_application.rs) - Activates an application\n- [x] [Activate Credential](examples/auth/activate_credential.rs) - Activates a credential\n- [x] [Activate Personal Access Token](examples/auth/activate_personal_access_token.rs) - Activates a personal access token\n- [x] [Activate Service Account](examples/auth/activate_service_account.rs) - Activates a service account\n- [x] [Activate User](examples/auth/activate_user.rs) - Activates a user\n- [x] [Deactivate Application](examples/auth/deactivate_application.rs) - Deactivates an application\n- [x] [Deactivate Credential](examples/auth/deactivate_credential.rs) - Deactivates a credential\n- [x] [Deactivate Personal Access Token](examples/auth/deactivate_personal_access_token.rs) - Deactivates a personal access token\n- [x] [Deactivate Service Account](examples/auth/deactivate_service_account.rs) - Deactivates a service account\n- [x] [Deactivate User](examples/auth/deactivate_user.rs) - Deactivates a user\n- [x] [Archive Application](examples/auth/archive_application.rs) - Archives an application\n- [x] [Archive Personal Access Token](examples/auth/archive_personal_access_token.rs) - Archives a personal access token\n- [x] [Archive Service Account](examples/auth/archive_service_account.rs) - Archives a service account\n- [x] [Archive User](examples/auth/archive_user.rs) - Archives a user\n- [x] [Create Credential Challenge](examples/auth/create_credential_challenge.rs) - Creates a credential challenge\n- [x] [Create Credential Code](examples/auth/create_credential_code.rs) - Creates a credential code\n- [x] [Create Credential With Code](examples/auth/create_credential_with_code.rs) - Creates a credential using a code\n- [x] [Create Delegated Recovery Challenge](examples/auth/create_delegated_recovery_challenge.rs) - Creates a delegated recovery challenge\n- [x] [Create Delegated Registration Challenge](examples/auth/create_delegated_registration_challenge.rs) - Creates a delegated registration challenge\n- [x] [Create Login Challenge](examples/auth/create_login_challenge.rs) - Creates a login challenge\n- [x] [Create Personal Access Token](examples/auth/create_personal_access_token.rs) - Creates a personal access token\n- [x] [Create Recovery Challenge](examples/auth/create_recovery_challenge.rs) - Creates a recovery challenge\n- [x] [Create Registration Challenge](examples/auth/create_registration_challenge.rs) - Creates a registration challenge\n- [x] [Create Service Account](examples/auth/create_service_account.rs) - Creates a service account\n- [x] [Create User](examples/auth/create_user.rs) - Creates a new user\n- [x] [Create User Action Challenge](examples/auth/create_user_action_challenge.rs) - Creates a user action challenge\n- [x] [Create User Action Signature](examples/auth/create_user_action_signature.rs) - Creates a user action signature\n- [x] [Get Application](examples/auth/get_application.rs) - Gets application details\n- [x] [Get Personal Access Token](examples/auth/get_personal_access_token.rs) - Gets personal access token details\n- [x] [Get Service Account](examples/auth/get_service_account.rs) - Gets service account details\n- [x] [Get User](examples/auth/get_user.rs) - Gets user details\n- [x] [List Applications](examples/auth/list_applications.rs) - Lists all applications\n- [x] [List Credentials](examples/auth/list_credentials.rs) - Lists all credentials\n- [x] [List Personal Access Tokens](examples/auth/list_personal_access_tokens.rs) - Lists all personal access tokens\n- [x] [Login](examples/auth/login.rs) - Performs a login\n- [x] [Recover](examples/auth/recover.rs) - Recovers an account\n- [x] [Recreate Delegated Registration Challenge](examples/auth/recreate_delegated_registration_challenge.rs) - Recreates a delegated registration challenge\n- [x] [Register](examples/auth/register.rs) - Registers a new user\n- [x] [Register End User](examples/auth/register_end_user.rs) - Registers an end user\n- [x] [Register With Recovery](examples/auth/register_with_recovery.rs) - Registers using recovery\n- [x] [Update Application](examples/auth/update_application.rs) - Updates an application\n- [x] [Update Credential](examples/auth/update_credential.rs) - Updates a credential\n- [x] [Update Personal Access Token](examples/auth/update_personal_access_token.rs) - Updates a personal access token\n- [x] [Update Service Account](examples/auth/update_service_account.rs) - Updates a service account\n- [x] [Verify Challenge](examples/auth/verify_challenge.rs) - Verifies a challenge\n- [x] [Verify Recovery Challenge](examples/auth/verify_recovery_challenge.rs) - Verifies a recovery challenge\n- [x] [Verify Registration Challenge](examples/auth/verify_registration_challenge.rs) - Verifies a registration challenge\n\n##### Webhooks\n\n- [x] [Create Webhook](examples/webhooks/create_webhook.rs) - Creates a new webhook\n- [x] [Get Webhook](examples/webhooks/get_webhook.rs) - Gets webhook details\n- [x] [Update Webhook](examples/webhooks/update_webhook.rs) - Updates webhook configuration\n- [x] [Delete Webhook](examples/webhooks/delete_webhook.rs) - Deletes a webhook\n- [x] [List Webhooks](examples/webhooks/list_webhooks.rs) - Lists all webhooks\n- [x] [Ping Webhook](examples/webhooks/ping_webhook.rs) - Tests webhook connectivity\n- [x] [Get Webhook Event](examples/webhooks/get_webhook_event.rs) - Gets webhook event details\n- [x] [List Webhook Events](examples/webhooks/list_webhook_events.rs) - Lists webhook events\n\n##### Staking\n\n- [x] [Create Stake](examples/staking/create_stake.rs) - Creates a new stake\n- [x] [Create Stake Action](examples/staking/create_stake_action.rs) - Creates a stake action\n- [x] [Get Stake Rewards](examples/staking/get_stake_rewards.rs) - Gets stake rewards\n- [x] [List Stake Actions](examples/staking/list_stake_actions.rs) - Lists stake actions\n- [x] [List Stakes](examples/staking/list_stakes.rs) - Lists all stakes\n\n##### Signers\n\n- [x] [List Signers](examples/signers/list_signers.rs) - Lists all signers in clusters\n\n##### Permissions\n\n- [x] [Archive Permission](examples/permissions/archive_permission.rs) - Archives a permission\n- [x] [Create Assignment](examples/permissions/create_assignment.rs) - Creates a permission assignment\n- [x] [Create Permission](examples/permissions/create_permission.rs) - Creates a new permission\n- [x] [Delete Assignment](examples/permissions/delete_assignment.rs) - Deletes a permission assignment\n- [x] [Get Permission](examples/permissions/get_permission.rs) - Gets permission details\n- [x] [List Assignments](examples/permissions/list_assignments.rs) - Lists all assignments\n- [x] [List Permissions](examples/permissions/list_permissions.rs) - Lists all permissions\n- [x] [Update Permission](examples/permissions/update_permission.rs) - Updates permission configuration\n\n##### Networks\n\n- [x] [Get Fees](examples/networks/get_fees.rs) - Gets network fees for various blockchains\n- [x] [Read Contract](examples/networks/read_contract.rs) - Reads data from a smart contract\n\n##### Exchanges\n\n- [x] [Create Deposit](examples/exchanges/create_deposit.rs) - Creates a new deposit\n- [x] [Create Exchange](examples/exchanges/create_exchange.rs) - Creates a new exchange\n- [x] [Create Withdrawal](examples/exchanges/create_withdrawal.rs) - Creates a new withdrawal\n- [x] [Delete Exchange](examples/exchanges/delete_exchange.rs) - Deletes an exchange\n- [x] [Get Exchange](examples/exchanges/get_exchange.rs) - Gets exchange details\n- [x] [List Account Assets](examples/exchanges/list_account_assets.rs) - Lists assets in an account\n- [x] [List Accounts](examples/exchanges/list_accounts.rs) - Lists all accounts\n- [x] [List Asset Withdrawal Networks](examples/exchanges/list_asset_withdrawal_networks.rs) - Lists withdrawal networks for an asset\n- [x] [List Exchanges](examples/exchanges/list_exchanges.rs) - Lists all exchanges\n\n##### Policies\n\n- [x] [Archive Policy](examples/policies/archive_policy.rs) - Archives a policy\n- [x] [Create Approval Decision](examples/policies/create_approval_decision.rs) - Creates an approval decision\n- [x] [Create Policy](examples/policies/create_policy.rs) - Creates a new policy\n- [x] [Get Approval](examples/policies/get_approval.rs) - Gets approval details\n- [x] [Get Policy](examples/policies/get_policy.rs) - Gets policy details\n- [x] [List Approvals](examples/policies/list_approvals.rs) - Lists all approvals\n- [x] [List Policies](examples/policies/list_policies.rs) - Lists all policies\n- [x] [Update Policy](examples/policies/update_policy.rs) - Updates policy configuration\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeltartificial%2Fdfns-sdk-rs-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeltartificial%2Fdfns-sdk-rs-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeltartificial%2Fdfns-sdk-rs-examples/lists"}