{"templateId":"markdown","versions":[{"version":"v1.44","label":"v1.44 STS","link":"/pt-br/products/custody/accounts-and-assets/staking/tezos-api","default":true,"active":false,"folderId":"714bb270"},{"version":"v1.43","label":"v1.43 LTS","link":"/pt-br/products/custody/v1.43/accounts-and-assets/staking/tezos-api","default":false,"active":true,"folderId":"714bb270"},{"version":"v1.42","label":"v1.42 STS","link":"/pt-br/products/custody/v1.42/accounts-and-assets/staking/tezos-api","default":false,"active":false,"folderId":"714bb270"},{"version":"v1.34","label":"v1.34 LTS","link":"/pt-br/products/custody/v1.34/accounts-and-assets/staking/tezos-api","default":false,"active":false,"folderId":"714bb270"},{"version":"v1.26","label":"v1.26 LTS","link":"/pt-br/products/custody/v1.26/accounts-and-assets/staking/tezos-api","default":false,"active":false,"folderId":"714bb270"},{"version":"v1.19","label":"v1.19 LTS","link":"/pt-br/products/custody/v1.19/accounts-and-assets/staking/tezos-api","default":false,"active":false,"folderId":"714bb270"},{"version":"v1.15","label":"v1.15 LTS","link":"/pt-br/products/custody/v1.15/accounts-and-assets/staking/tezos-api","default":false,"active":false,"folderId":"714bb270"}],"sharedDataIds":{"sidebar":"sidebar-@l10n/pt-BR/products/custody/@v1.15/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["partial","tabs","tab","admonition"]},"type":"markdown"},"seo":{"title":"Delegate Tezos staking validation rights with the API","description":"User guides, API reference, and support resources.","siteUrl":"https://docs.ripple.com","lang":"en-US"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"delegate-tezos-staking-validation-rights-with-the-api","__idx":0},"children":["Delegate Tezos staking validation rights with the API"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In Tezos, token holders can delegate their validation rights to other token holders (called validators or bakers) without transferring ownership of their tokens. Unlike other DPoS protocols, the account as a whole is delegated. However, the liquidity is maintained and the tokens can still be transferred, as no freezing periods apply to a delegation."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can perform the following tasks:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Delegate validation rights"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Undelegate validation rights"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"prerequisites","__idx":1},"children":["Prerequisites"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To perform staking tasks on Tezos, you need the following:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Prerequisite"},"children":["Prerequisite"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Additional information"},"children":["Additional information"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["An account on a Tezos ledger from which to initiate the transactions"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/v1.43/accounts-and-assets/accounts/manage-accounts-api#view-account-details"},"children":["View account details"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Enough funds in the account to cover the transaction fees and the amount"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/v1.43/accounts-and-assets/accounts/manage-accounts-api#check-account-balances"},"children":["Check account balances"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The following new IDs, in a standard UUID format:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["A transaction order ID"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["An intent ID"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"delegate-or-undelegate-validation-rights","__idx":2},"children":["Delegate or undelegate validation rights"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"System change process"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["All new requests to change the system state follow the same process. To familiarize yourself with this process first, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/v1.43/governance/intents/manage-intents-and-approvals"},"children":["Manage intents and approvals"]},"."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To delegate or undelegate validation rights, follow the steps in ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/v1.43/governance/intents/manage-intents-and-approvals"},"children":["Manage intents and approvals"]},", with a payload similar to one of the following examples."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The SDK examples assume a configured client. See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/v1.43/get-started/integrate-via-sdk"},"children":["Integrate via SDK"]},". Each SDK method builds the operation, submits the intent, and returns a pending intent. To track the intent, call ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["waitAccepted"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["waitExecuted"]}," (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["wait_accepted"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["wait_executed"]}," in Python). The Java examples pass ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["null"]}," for ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ledgerId"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customProperties"]},", and reuse the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["feeStrategy"]}," from the first example."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"payload-examples","__idx":3},"children":["Payload examples"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"delegate-validation-rights","__idx":4},"children":["Delegate validation rights"]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"API","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n\"payload\": {\n    \"id\": \"953d75b2-e384-46e9-8a72-a1ce753a50e2\",\n    \"accountId\": \"953d75b2-e384-46e9-8a72-a1ce753a50e2\",\n    \"parameters\": {\n        \"operation\": {\n\t\t\t\"destination\": {\n\t\t\t\t\"address\": \"tz1b9jT9tp1XxNe8n2WgxnWKwup4rxGaHLhV\",\n\t\t\t\t\"type\": \"Address\"\n\t\t\t\t\t},\n\t\t\t\"type\": \"Delegation\"\n\t\t\t\t},\n        \"feeStrategy\": {\n            \"priority\": \"Low\",\n            \"type\": \"Priority\"\n        },\n        \"maximumFee\": \"4000\",\n        \"type\": \"Tezos\"\n    },\n    \"description\": \"\",\n    \"customProperties\": {},\n    \"type\": \"v0_CreateTransactionOrder\"\n\t\t}\n}\n","lang":"json"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"TypeScript","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"typescript","header":{"controls":{"copy":{}}},"source":"const pending = await client.transactions.tezos.delegation(accountId, {\n  toAddress: 'tz1b9jT9tp1XxNe8n2WgxnWKwup4rxGaHLhV',\n  feePriority: 'Low',\n  maximumFee: '4000',\n});\n","lang":"typescript"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Java","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"java","header":{"controls":{"copy":{}}},"source":"import com.ripple.custody.PendingIntent;\nimport com.ripple.custody.models.CoreFeePriority;\nimport com.ripple.custody.models.CoreTezosFeeStrategyPriority;\nimport com.ripple.custody.models.CoreTransactionDestination;\nimport com.ripple.custody.models.CoreTransactionDestinationAddress;\n\nCoreTezosFeeStrategyPriority feeStrategy =\n    new CoreTezosFeeStrategyPriority().priority(CoreFeePriority.LOW);\n\nCoreTransactionDestination baker = new CoreTransactionDestination(\n    new CoreTransactionDestinationAddress()\n        .address(\"tz1b9jT9tp1XxNe8n2WgxnWKwup4rxGaHLhV\")\n        .type(CoreTransactionDestinationAddress.TypeEnum.ADDRESS));\n\nPendingIntent pending = client.transactions()\n    .tezosDelegation(domainId, accountId, null, baker, feeStrategy, \"4000\", null);\n","lang":"java"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Python","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"python","header":{"controls":{"copy":{}}},"source":"pending = client.transactions.tezos.delegation(\n    account_id,\n    to_address=\"tz1b9jT9tp1XxNe8n2WgxnWKwup4rxGaHLhV\",\n    fee_priority=\"Low\",\n    maximum_fee=\"4000\",\n)\n","lang":"python"},"children":[]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For a program that builds and submits these operations, see example ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["53"]}," (advanced chain operations) in TypeScript or Python. To get the examples, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/v1.43/developer-experience/sdks#examples"},"children":["Examples"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Fields of the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payload"]}," block to note are as follows:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Field"},"children":["Field"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["accountId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Internal account ID of a Tezos account in ","Ripple Custody (Vault)","."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["operation.destination"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Address to which to delegate validation rights."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["operation.type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Delegation"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["parameters.feeStrategy"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The fee strategy to use for the transaction. For Tezos, the Priority strategy applies. For more information, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/v1.43/transactions/reference#fee-strategy-and-maximum-fee"},"children":["Fee strategy and maximum fee"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["parameters.maximumFee"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The maximum fee, in micro tez. For more information, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/v1.43/transactions/reference#fee-strategy-and-maximum-fee"},"children":["Fee strategy and maximum fee"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["parameters.type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ledger type, in this case ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Tezos"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["v0_CreateTransactionOrder"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"undelegate-validation-rights","__idx":5},"children":["Undelegate validation rights"]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"API","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n    \"payload\": {\n        \"id\": \"953d75b2-e384-46e9-8a72-a1ce753a50e2\",\n        \"accountId\": \"953d75b2-e384-46e9-8a72-a1ce753a50e2\",\n        \"parameters\": {\n            \"operation\": {\n\t\t\t    \"type\": \"Undelegation\"\n            },\n            \"feeStrategy\": {\n                \"priority\": \"Low\",\n                \"type\": \"Priority\"\n            },\n            \"maximumFee\": \"4000\",\n            \"type\": \"Tezos\"\n        },\n        \"customProperties\": {},\n        \"type\": \"v0_CreateTransactionOrder\"\n    }\n}\n","lang":"json"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"TypeScript","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"typescript","header":{"controls":{"copy":{}}},"source":"const pending = await client.transactions.tezos.undelegation(accountId, {\n  feePriority: 'Low',\n  maximumFee: '4000',\n});\n","lang":"typescript"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Java","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"java","header":{"controls":{"copy":{}}},"source":"PendingIntent pending = client.transactions()\n    .tezosUndelegation(domainId, accountId, null, feeStrategy, \"4000\", null);\n","lang":"java"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Python","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"python","header":{"controls":{"copy":{}}},"source":"pending = client.transactions.tezos.undelegation(\n    account_id, fee_priority=\"Low\", maximum_fee=\"4000\"\n)\n","lang":"python"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"success"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When the transaction order is successfully approved, ","Ripple Custody (Vault)"," does the following:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Creates a transaction, to broadcast the details and delegate staking to or undelegate staking from the staking pool on the blockchain."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Creates one or more transfers, to represent the separate amounts associated with the transaction, such as the cryptocurrency amount and the fees."]}]}]}]},"headings":[{"value":"Delegate Tezos staking validation rights with the API","id":"delegate-tezos-staking-validation-rights-with-the-api","depth":1},{"value":"Prerequisites","id":"prerequisites","depth":2},{"value":"Delegate or undelegate validation rights","id":"delegate-or-undelegate-validation-rights","depth":2},{"value":"Payload examples","id":"payload-examples","depth":3},{"value":"Delegate validation rights","id":"delegate-validation-rights","depth":4},{"value":"Undelegate validation rights","id":"undelegate-validation-rights","depth":4}],"frontmatter":{"seo":{"title":"Delegate Tezos staking validation rights with the API"}},"lastModified":"2026-10-09T10:42:29.000Z","isTranslationFallback":true,"pagePropGetterError":{"message":"","name":""}},"slug":"/pt-br/products/custody/v1.43/accounts-and-assets/staking/tezos-api","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}