{"templateId":"markdown","versions":[{"version":"v1.43","label":"v1.43 LTS","link":"/pt-br/products/custody/accounts-and-assets/staking/polkadot-api","default":true,"active":true,"folderId":"714bb270"},{"version":"v1.42","label":"v1.42 STS","link":"/pt-br/products/custody/v1.42/accounts-and-assets/staking/polkadot-api","default":false,"active":false,"folderId":"714bb270"},{"version":"v1.41","label":"v1.41 STS","link":"/pt-br/products/custody/v1.41/accounts-and-assets/staking/polkadot-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/polkadot-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/polkadot-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/polkadot-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/polkadot-api","default":false,"active":false,"folderId":"714bb270"}],"sharedDataIds":{"sidebar":"sidebar-@l10n/pt-BR/products/custody/@v1.15/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition","partial","tabs","tab"]},"type":"markdown"},"seo":{"title":"Set up Polkadot staking 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":"set-up-polkadot-staking-with-the-api","__idx":0},"children":["Set up Polkadot staking with the API"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can only participate in staking on Polkadot ledgers as a validator from ","Ripple Custody (Vault)","."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can perform the following staking tasks:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Bond tokens: Designate tokens for staking, a prerequisite before nomination of validators."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Unbond tokens: Remove bonded tokens from staking. After you unbond tokens, you can withdraw the unbonded tokens, or rebond the tokens."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Rebond: Rebond and stake unbonded tokens before the unbonding period finishes."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Bond extra: Add additional tokens to the already bonded amount."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Withdraw unbonded: Add unbonded tokens back to the account balance."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Chill: Clear the list of nominated validators without unbonding the tokens. To restart staking after this operation, you need to nominate new validators."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Nominate: Nominate up to sixteen validators to which to delegate your bonded tokens."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Set payee account: Set or change the account to receive the rewards from staking."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Set controller: Set the account to act as controller, as described in ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#account-types"},"children":["Account types"]},"."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"account-types","__idx":1},"children":["Account types"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Polkadot ledgers require the following two account types for staking:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["A stash account: Holds the funds to use for staking."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["A controller account: Controls the staking operations, such as nomination of validators."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you want to maximize security, you can store the stash account in a separate, cold vault."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Ripple Custody (Vault)"," doesn't impose the two account requirement: you can also choose to configure staking with a single account type if preferred."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The following table summarizes which account has the role to submit each of the staking operations listed below:"]},{"$$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":"Operation"},"children":["Operation"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Controller"},"children":["Controller"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Stash"},"children":["Stash"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Bond"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BondExtra"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Unbond"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["WithdrawUnbonded"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Rebond"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Chill"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Nominate"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SetController"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SetPayee"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"prerequisites","__idx":2},"children":["Prerequisites"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To perform staking tasks on Polkadot, 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":["Accounts on a Polkadot ledger from which to initiate the transactions (two accounts are recommended, as described in ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#account-types"},"children":["Account types"]},")"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/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/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":"perform-staking-tasks","__idx":3},"children":["Perform staking tasks"]},{"$$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/governance/intents/manage-intents-and-approvals"},"children":["Manage intents and approvals"]},"."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To perform Polkadot staking tasks, follow the steps in ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/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/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. The examples use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["stashAccountId"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["controllerAccountId"]}," for the accounts described in ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#account-types"},"children":["Account types"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"payload-examples","__idx":4},"children":["Payload examples"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"bond-tokens","__idx":5},"children":["Bond tokens"]},{"$$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\": \"251c48e9-8a7d-4e1a-9c1e-224de1b55c0d\",\n        \"accountId\": \"a4a87f1c-7577-4115-9b54-cc445ec08fb5\",\n        \"parameters\": {\n            \"pallet\": {\n                \"method\": {\n                    \"controller\": {\n                        \"address\": \"5CwKL1nknaXcVfjJaXZ7rFtCJg8sc5tk4ppCzTbAURtBXwMQ\",\n                        \"type\": \"Address\"\n                    },\n                    \"value\": \"500000000000\",\n                    \"payee\": {\n                        \"destination\": {\n                            \"accountId\": \"f943d65c-58e3-4ba3-83eb-d66fdce0f32a\",\n                            \"type\": \"Account\"\n                        },\n                        \"type\": \"Account\"\n                    },\n                    \"type\": \"Bond\"\n                },\n                \"type\": \"Staking\"\n            },\n            \"feeStrategy\": {\n                \"priority\": \"Low\",\n                \"type\": \"Priority\"\n            },\n            \"maximumFee\": \"20460002010\",\n            \"type\": \"Substrate\"\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.substrate.stakingBond(stashAccountId, {\n  value: '500000000000',\n  controllerAddress: '5CwKL1nknaXcVfjJaXZ7rFtCJg8sc5tk4ppCzTbAURtBXwMQ',\n  payeeAccountId: rewardAccountId,\n  feePriority: 'Low',\n  maximumFee: '20460002010',\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.CoreSubstrateFeeStrategyPriority;\nimport com.ripple.custody.models.CoreSubstrateStakingPayee;\nimport com.ripple.custody.models.CoreSubstrateStakingPayeeAccount;\nimport com.ripple.custody.models.CoreTransactionDestination;\nimport com.ripple.custody.models.CoreTransactionDestinationAccount;\nimport com.ripple.custody.models.CoreTransactionDestinationAddress;\n\nCoreSubstrateFeeStrategyPriority feeStrategy =\n    new CoreSubstrateFeeStrategyPriority().priority(CoreFeePriority.LOW);\n\nCoreTransactionDestination controller = new CoreTransactionDestination(\n    new CoreTransactionDestinationAddress()\n        .address(\"5CwKL1nknaXcVfjJaXZ7rFtCJg8sc5tk4ppCzTbAURtBXwMQ\")\n        .type(CoreTransactionDestinationAddress.TypeEnum.ADDRESS));\n\nCoreSubstrateStakingPayee payee = new CoreSubstrateStakingPayee(\n    new CoreSubstrateStakingPayeeAccount()\n        .destination(new CoreTransactionDestination(\n            new CoreTransactionDestinationAccount()\n                .accountId(rewardAccountId)\n                .type(CoreTransactionDestinationAccount.TypeEnum.ACCOUNT)))\n        .type(CoreSubstrateStakingPayeeAccount.TypeEnum.ACCOUNT));\n\nPendingIntent pending = client.transactions().substrateStakingBond(\n    domainId, stashAccountId, null, \"500000000000\", payee, controller,\n    feeStrategy, \"20460002010\", 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.substrate.staking_bond(\n    stash_account_id,\n    value=\"500000000000\",\n    controller_address=\"5CwKL1nknaXcVfjJaXZ7rFtCJg8sc5tk4ppCzTbAURtBXwMQ\",\n    payee_account_id=reward_account_id,\n    fee_priority=\"Low\",\n    maximum_fee=\"20460002010\",\n)\n","lang":"python"},"children":[]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To pay rewards to the controller, the stash, or back into the bond instead of an account, use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payeeType: 'Controller' | 'Stash' | 'Staked'"]}," in TypeScript, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payee=\"Controller\""]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"Stash\""]},", or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"Staked\""]}," in Python, or the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CoreSubstrateStakingPayeeController"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CoreSubstrateStakingPayeeStash"]},", or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CoreSubstrateStakingPayeeStaked"]}," model in Java."]},{"$$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/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":["The stash account. For more information, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#account-types"},"children":["Account types"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pallet.method.controller"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The controller account of the stash account. This account can be the either the stash account or another account. You can set this to an ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Account"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Endpoint"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Address"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pallet.method.type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Bond"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pallet.method.value"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The amount to bond, in Plancks."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pallet.method.payee"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Destination of the staking rewards. The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type"]}," can be ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Controller"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Stash"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Staked"]},"  or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Account"]},". If you specify ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Account"]},", then you can set the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["destination.type"]}," of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Account"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Endpoint"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Address"]},". You can change this later, with the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#set-payee-account"},"children":["Set payee account"]}," operation."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pallet.type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Staking"]}]}]},{"$$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 more information, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/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 Plancks. For more information, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/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":["Substrate"]},"."]}]},{"$$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":"unbond-tokens","__idx":6},"children":["Unbond tokens"]},{"$$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\": \"251c48e9-8a7d-4e1a-9c1e-224de1b55c0d\",\n        \"accountId\": \"4a15c769-fadb-40c2-adce-4c7733015bea\",\n        \"parameters\": {\n            \"pallet\": {\n                \"method\": {\n                    \"value\": \"1000000000000\",\n                    \"type\": \"Unbond\"\n                },\n                \"type\": \"Staking\"\n            },\n            \"feeStrategy\": {\n                \"priority\": \"Low\",\n                \"type\": \"Priority\"\n            },\n            \"maximumFee\": \"20460002010\",\n            \"type\": \"Substrate\"\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.substrate.stakingUnbond(controllerAccountId, {\n  value: '1000000000000',\n  feePriority: 'Low',\n  maximumFee: '20460002010',\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().substrateStakingUnbond(\n    domainId, controllerAccountId, null, \"1000000000000\", feeStrategy, \"20460002010\", 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.substrate.staking_unbond(\n    controller_account_id,\n    value=\"1000000000000\",\n    fee_priority=\"Low\",\n    maximum_fee=\"20460002010\",\n)\n","lang":"python"},"children":[]}]}]},{"$$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":["The controller account. For more information, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#account-types"},"children":["Account types"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pallet.method.type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Unbond"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pallet.method.value"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The amount to unbond from the bonded amount, in Plancks."]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"withdraw-unbonded-tokens","__idx":7},"children":["Withdraw unbonded tokens"]},{"$$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\": \"251c48e9-8a7d-4e1a-9c1e-224de1b55c0d\",\n        \"accountId\": \"4a15c769-fadb-40c2-adce-4c7733015bea\",\n        \"parameters\": {\n            \"pallet\": {\n                \"method\": {\n                    \"numSlashingSpans\": 0,\n                    \"type\": \"WithdrawUnbonded\"\n                },\n                \"type\": \"Staking\"\n            },\n            \"feeStrategy\": {\n                \"priority\": \"Low\",\n                \"type\": \"Priority\"\n            },\n            \"maximumFee\": \"20460002010\",\n            \"type\": \"Substrate\"\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.substrate.stakingWithdrawUnbonded(controllerAccountId, {\n  numSlashingSpans: 0,\n  feePriority: 'Low',\n  maximumFee: '20460002010',\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().substrateStakingWithdrawUnbonded(\n    domainId, controllerAccountId, null, 0, feeStrategy, \"20460002010\", 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.substrate.staking_withdraw_unbonded(\n    controller_account_id,\n    num_slashing_spans=0,\n    fee_priority=\"Low\",\n    maximum_fee=\"20460002010\",\n)\n","lang":"python"},"children":[]}]}]},{"$$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":["The controller account. For more information, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#account-types"},"children":["Account types"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pallet.method.type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["WithdrawUnbonded"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pallet.method.numSlashingSpans"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The slashing mechanism of Polkadot splits the eras of each nominator into slashing spans to detect the events on which a nominator gets slashed. If acting as nominator, no slashing occurred during the era, the value of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["method.numSlashingSpans"]}," should be 0."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pallet.type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Staking"]}]}]},{"$$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 more information, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/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 Plancks. For more information, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/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":["Substrate"]},"."]}]},{"$$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":"rebond-tokens","__idx":8},"children":["Rebond tokens"]},{"$$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\": \"251c48e9-8a7d-4e1a-9c1e-224de1b55c0d\",\n        \"accountId\": \"4a15c769-fadb-40c2-adce-4c7733015bea\",\n        \"parameters\": {\n            \"pallet\": {\n                \"method\": {\n                    \"value\": \"1000000000000\",\n                    \"type\": \"Rebond\"\n                },\n                \"type\": \"Staking\"\n            },\n            \"feeStrategy\": {\n               \"priority\": \"Low\",\n               \"type\": \"Priority\"\n            },\n            \"maximumFee\": \"20460002010\",\n            \"type\": \"Substrate\"\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.substrate.stakingRebond(controllerAccountId, {\n  value: '1000000000000',\n  feePriority: 'Low',\n  maximumFee: '20460002010',\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().substrateStakingRebond(\n    domainId, controllerAccountId, null, \"1000000000000\", feeStrategy, \"20460002010\", 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.substrate.staking_rebond(\n    controller_account_id,\n    value=\"1000000000000\",\n    fee_priority=\"Low\",\n    maximum_fee=\"20460002010\",\n)\n","lang":"python"},"children":[]}]}]},{"$$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":["The controller account. For more information, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#account-types"},"children":["Account types"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pallet.method.type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Rebond"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pallet.method.value"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The amount to rebond, in Plancks."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pallet.type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Staking"]}]}]},{"$$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 more information, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/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 Plancks. For more information, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/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":["Substrate"]},"."]}]},{"$$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":"bond-extra","__idx":9},"children":["Bond extra"]},{"$$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\": \"251c48e9-8a7d-4e1a-9c1e-224de1b55c0d\",\n        \"accountId\": \"a4a87f1c-7577-4115-9b54-cc445ec08fb5\",\n        \"parameters\": {\n            \"pallet\": {\n                \"method\": {\n                    \"maxAdditional\": \"1000000000000\",\n                    \"type\": \"BondExtra\"\n                },\n                \"type\": \"Staking\"\n            },\n            \"feeStrategy\": {\n                \"priority\": \"Low\",\n                \"type\": \"Priority\"\n            },\n            \"maximumFee\": \"20460002010\",\n            \"type\": \"Substrate\"\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.substrate.stakingBondExtra(stashAccountId, {\n  maxAdditional: '1000000000000',\n  feePriority: 'Low',\n  maximumFee: '20460002010',\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().substrateStakingBondExtra(\n    domainId, stashAccountId, null, \"1000000000000\", feeStrategy, \"20460002010\", 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.substrate.staking_bond_extra(\n    stash_account_id,\n    max_additional=\"1000000000000\",\n    fee_priority=\"Low\",\n    maximum_fee=\"20460002010\",\n)\n","lang":"python"},"children":[]}]}]},{"$$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":["The stash account. For more information, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#account-types"},"children":["Account types"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pallet.method.type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["BondExtra"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pallet.method.maxAdditional"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The funds to add to the already bonded amount, in Plancks."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pallet.type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Staking"]}]}]},{"$$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 more information, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/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 Plancks. For more information, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/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":["Substrate"]},"."]}]},{"$$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":"nominate-staking-validators","__idx":10},"children":["Nominate staking validators"]},{"$$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\": \"251c48e9-8a7d-4e1a-9c1e-224de1b55c0d\",\n        \"accountId\": \"4a15c769-fadb-40c2-adce-4c7733015bea\",\n        \"parameters\": {\n            \"pallet\": {\n                \"method\": {\n                    \"targets\": [\n                        {\n                           \"accountId\": \"f943d65c-58e3-4ba3-83eb-d66fdce0f32a\",\n                           \"type\": \"Account\"\n                        },\n                        {\n                           \"accountId\": \"953d75b2-e384-46e9-8a72-a1ce753a50e2\",\n                           \"type\": \"Account\"\n                        }\n                    ],\n                    \"type\": \"Nominate\"\n                },\n                \"type\": \"Staking\"\n            },\n            \"feeStrategy\": {\n                \"priority\": \"Low\",\n                \"type\": \"Priority\"\n            },\n            \"maximumFee\": \"20460002010\",\n            \"type\": \"Substrate\"\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.substrate.stakingNominate(controllerAccountId, {\n  targets: [{ toAccountId: validatorAccountId1 }, { toAccountId: validatorAccountId2 }],\n  feePriority: 'Low',\n  maximumFee: '20460002010',\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 java.util.List;\n\nList<CoreTransactionDestination> targets = List.of(validatorAccountId1, validatorAccountId2)\n    .stream()\n    .map(id -> new CoreTransactionDestination(\n        new CoreTransactionDestinationAccount()\n            .accountId(id)\n            .type(CoreTransactionDestinationAccount.TypeEnum.ACCOUNT)))\n    .toList();\n\nPendingIntent pending = client.transactions().substrateStakingNominate(\n    domainId, controllerAccountId, null, targets, feeStrategy, \"20460002010\", 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.substrate.staking_nominate(\n    controller_account_id,\n    targets=[\n        {\"account_id\": validator_account_id_1},\n        {\"account_id\": validator_account_id_2},\n    ],\n    fee_priority=\"Low\",\n    maximum_fee=\"20460002010\",\n)\n","lang":"python"},"children":[]}]}]},{"$$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":["The controller account. For more information, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#account-types"},"children":["Account types"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pallet.method.targets"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Account addresses to nominate as validators."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pallet.method.type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Nominate"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pallet.type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Staking"]}]}]},{"$$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 more information, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/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 Plancks. For more information, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/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":["Substrate"]},"."]}]},{"$$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":"set-payee-account","__idx":11},"children":["Set payee account"]},{"$$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\": \"251c48e9-8a7d-4e1a-9c1e-224de1b55c0d\",\n        \"accountId\": \"4a15c769-fadb-40c2-adce-4c7733015bea\",\n        \"parameters\": {\n            \"pallet\": {\n                \"method\": {\n                    \"payee\": {\n                        \"destination\": {\n                            \"accountId\": \"f943d65c-58e3-4ba3-83eb-d66fdce0f32a\",\n                            \"type\": \"Account\"\n                        },\n                        \"type\": \"Account\"\n                    },\n                    \"type\": \"SetPayee\"\n                },\n                \"type\": \"Staking\"\n            },\n            \"feeStrategy\": {\n                \"priority\": \"Low\",\n                \"type\": \"Priority\"\n            },\n            \"maximumFee\": \"20460002010\",\n            \"type\": \"Substrate\"\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.substrate.stakingSetPayee(controllerAccountId, {\n  payeeAccountId: rewardAccountId,\n  feePriority: 'Low',\n  maximumFee: '20460002010',\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":"CoreSubstrateStakingPayee payee = new CoreSubstrateStakingPayee(\n    new CoreSubstrateStakingPayeeAccount()\n        .destination(new CoreTransactionDestination(\n            new CoreTransactionDestinationAccount()\n                .accountId(rewardAccountId)\n                .type(CoreTransactionDestinationAccount.TypeEnum.ACCOUNT)))\n        .type(CoreSubstrateStakingPayeeAccount.TypeEnum.ACCOUNT));\n\nPendingIntent pending = client.transactions().substrateStakingSetPayee(\n    domainId, controllerAccountId, null, payee, feeStrategy, \"20460002010\", 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.substrate.staking_set_payee(\n    controller_account_id,\n    to_account_id=reward_account_id,\n    fee_priority=\"Low\",\n    maximum_fee=\"20460002010\",\n)\n","lang":"python"},"children":[]}]}]},{"$$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":["The controller account. For more information, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#account-types"},"children":["Account types"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pallet.method.type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SetPayee"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pallet.method.payee"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Destination of the staking rewards. The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type"]}," can be ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Controller"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Stash"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Staked"]},"  or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Account"]},". If you specify ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Account"]},", then you can set the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["destination.type"]}," of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Account"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Endpoint"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Address"]},". This overrides the payee set with the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#bond-tokens"},"children":["Bond"]}," operation."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pallet.type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Staking"]}]}]},{"$$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 more information, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/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 Plancks. For more information, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/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":["Substrate"]},"."]}]},{"$$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":"chill","__idx":12},"children":["Chill"]},{"$$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\": \"251c48e9-8a7d-4e1a-9c1e-224de1b55c0d\",\n        \"accountId\": \"4a15c769-fadb-40c2-adce-4c7733015bea\",\n        \"parameters\": {\n            \"pallet\": {\n                \"method\": {\n                    \"type\": \"Chill\"\n                },\n                \"type\": \"Staking\"\n            },\n            \"feeStrategy\": {\n                \"priority\": \"Low\",\n                \"type\": \"Priority\"\n            },\n            \"maximumFee\": \"20460002010\",\n            \"type\": \"Substrate\"\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.substrate.stakingChill(controllerAccountId, {\n  feePriority: 'Low',\n  maximumFee: '20460002010',\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().substrateStakingChill(\n    domainId, controllerAccountId, null, feeStrategy, \"20460002010\", 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.substrate.staking_chill(\n    controller_account_id, fee_priority=\"Low\", maximum_fee=\"20460002010\"\n)\n","lang":"python"},"children":[]}]}]},{"$$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":["The controller account. For more information, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#account-types"},"children":["Account types"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pallet.method.type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Chill"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pallet.type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Staking"]}]}]},{"$$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 more information, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/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 Plancks. For more information, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/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":["Substrate"]},"."]}]},{"$$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":"update-controller-account","__idx":13},"children":["Update controller account"]},{"$$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\": \"251c48e9-8a7d-4e1a-9c1e-224de1b55c0d\",\n        \"accountId\": \"a4a87f1c-7577-4115-9b54-cc445ec08fb5\",\n        \"parameters\": {\n            \"pallet\": {\n                \"method\": {\n                    \"controller\": {\n                        \"accountId\": \"f943d65c-58e3-4ba3-83eb-d66fdce0f32a\",\n                        \"type\": \"Account\"\n                    },\n                    \"type\": \"SetController\"\n                },\n                \"type\": \"Staking\"\n            },\n            \"feeStrategy\": {\n                \"priority\": \"Low\",\n                \"type\": \"Priority\"\n            },\n            \"maximumFee\": \"20460002010\",\n            \"type\": \"Substrate\"\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.substrate.stakingSetController(stashAccountId, {\n  controllerAccountId,\n  feePriority: 'Low',\n  maximumFee: '20460002010',\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":"CoreTransactionDestination controller = new CoreTransactionDestination(\n    new CoreTransactionDestinationAccount()\n        .accountId(controllerAccountId)\n        .type(CoreTransactionDestinationAccount.TypeEnum.ACCOUNT));\n\nPendingIntent pending = client.transactions().substrateStakingSetController(\n    domainId, stashAccountId, null, controller, feeStrategy, \"20460002010\", 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.substrate.staking_set_controller(\n    stash_account_id,\n    to_account_id=controller_account_id,\n    fee_priority=\"Low\",\n    maximum_fee=\"20460002010\",\n)\n","lang":"python"},"children":[]}]}]},{"$$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":["The stash account. For more information, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#account-types"},"children":["Account types"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pallet.method.type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SetController"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pallet.method.controller"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The controller wallet, either an internal ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Account"]},", an ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Endpoint"]},", or an external ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Address"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pallet.type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Staking"]}]}]},{"$$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 more information, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/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 Plancks. For more information, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt-br/products/custody/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":["Substrate"]},"."]}]},{"$$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":"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 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":"Set up Polkadot staking with the API","id":"set-up-polkadot-staking-with-the-api","depth":1},{"value":"Account types","id":"account-types","depth":2},{"value":"Prerequisites","id":"prerequisites","depth":2},{"value":"Perform staking tasks","id":"perform-staking-tasks","depth":2},{"value":"Payload examples","id":"payload-examples","depth":3},{"value":"Bond tokens","id":"bond-tokens","depth":4},{"value":"Unbond tokens","id":"unbond-tokens","depth":4},{"value":"Withdraw unbonded tokens","id":"withdraw-unbonded-tokens","depth":4},{"value":"Rebond tokens","id":"rebond-tokens","depth":4},{"value":"Bond extra","id":"bond-extra","depth":4},{"value":"Nominate staking validators","id":"nominate-staking-validators","depth":4},{"value":"Set payee account","id":"set-payee-account","depth":4},{"value":"Chill","id":"chill","depth":4},{"value":"Update controller account","id":"update-controller-account","depth":4}],"frontmatter":{"seo":{"title":"Set up Polkadot staking with the API"}},"lastModified":"2026-10-09T10:42:29.000Z","isTranslationFallback":true,"pagePropGetterError":{"message":"","name":""}},"slug":"/pt-br/products/custody/accounts-and-assets/staking/polkadot-api","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}