Skip to main content

state.BeginRedelegate RPC Method

Sends a user's delegated tokens to a new validator for redelegation.

Updated on
Nov 19, 2024

state.BeginRedelegate RPC Method

Parameters

srcValAddr
string
REQUIRED
The source validator's address from which the delegation is being reallocated
dstValAddr
string
REQUIRED
The destination validator address to which the delegation will be moved
amount
string
REQUIRED
The amount of tokens being redelegated from the source validator to the destination validator.
object
object
REQUIRED
An object with the following fields:
gas_price
integer
The cost per gas unit for executing the transaction.
is_gas_price_set
boolean
Indicates if the gas price has been explicitly defined.
gas
integer
The maximum gas allocated for the transaction.
key_name
string
Identifier for the key used to sign the transaction
signer_address
string
REQUIRED
The address responsible for signing the transaction
fee_granter_address
string
The address covering the transaction fee on behalf of the signer

Returns

result
object
The result object which contains the following fields:
height
integer
The block height at which the transaction was included
txhash
string
The unique hash of the transaction
data
string
Encoded data of the transaction response.
raw_log
string
Stringified JSON log of raw transaction events
logs
array
An array of logs
msg_index
integer
Index of the message within the transaction
events
array
An array of events, which contains the following fields:
type
string
The type of event triggered
attributes
array
Key-value attributes associated with the event
key
string
The attribute key within the event
value
string
The value associated with the attribute key
gas_wanted
integer
Gas limit requested for the transaction
gas_used
integer
The amount of gas consumed by the transaction
events
array
Events triggered at the transaction level
type
string
The type of the transaction-level event.
attributes
array
Attributes of the transaction-level event
key
string
The encoded key for the attribute.
value
string
The value associated with the attribute key
index
boolean
Boolean indicating if the attribute is indexed
Request
1
curl --location 'https://docs-demo.celestia-mainnet.quiknode.pro/' \
2
--header 'Content-Type: application/json' \
3
--data '{
4
"id": 1,
5
"jsonrpc": "2.0",
6
"method": "state.BeginRedelegate",
7
"params": [
8
"SOURCE_VALIDATOR_ADDRESS",
9
"DESTINATION_VALIDATOR_ADDRESS",
10
"2716415",
11
{
12
"gas_price": 0.002,
13
"is_gas_price_set": true,
14
"gas": 142225,
15
"key_name": "YOUR_CELESTIA_KEYS",
16
"signer_address": "GRANTER_ADDRESS",
17
"fee_granter_address": "GRANTER_ADDRESS"
18
}
19
]
20
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free