ManageWeightage
The ManageWeightage API allows users to manage the weightage of different security levels (thresholds) for an existing Stellar account. The weightage determines the level of authority required for various types of transactions on the account.
Method: POST
{{URL}}/jsonrpc
Headers
Name | Value |
---|---|
Content-Type | application/json |
Example
Response Parameters
Parameter | Description |
---|---|
SourceAccount | Object |
PublicKey Mandatory | String The public key of the account for which the weightage is being managed. Ex: "GCPLZXWATKYY3OXXHDOU3TSIUNZA5ZVBMM6P6ONGZQJHICXSFGFWNBPW" |
PrivateKey Mandatory | String The private key associated with the source account for authentication. Ex: "" |
sponser | Object |
publicKey Mandatory | String The public key of the account acting as the sponsor for the transaction fee. Ex: "GAUMO2B3RA6HRNDEVZUZAV5ZP2YE5V37UZTIFMKKRAH2IK5XDTZBJCZ3" |
PrivateKey Mandatory | String The private key associated with the sponsor account for authentication. Ex: "" |
Weightage | |
MasterKeyWeight Mandatory | String The weightage assigned to the master key of the account. This determines the overall control level of the account. Ex: "2" |
LowThreshold Mandatory | String The weightage required for low-security threshold operations. Ex: "1" |
MediumThreshold Mandatory | String The weightage required for medium-security threshold operations. Ex: "2" |
HighThreshold Mandatory | String The weightage required for high-security threshold operations. Ex: "2" |
Body
{
"SourceAccount": {
"PublicKey": "GCPLZXWATKYY3OXXHDOU3TSIUNZA5ZVBMM6P6ONGZQJHICXSFGFWNBPW",
"PrivateKey": ""
},
"sponser": {
"publicKey": "GAUMO2B3RA6HRNDEVZUZAV5ZP2YE5V37UZTIFMKKRAH2IK5XDTZBJCZ3",
"PrivateKey": ""
},
"Weightage": {
"MasterKeyWeight": "2",
"LowThreshold": "1",
"MediumThreshold": "2",
"HighThreshold": "2"
}
}
Response: 200
Response Parameters
Parameter | Description |
---|---|
hash | String A unique identifier representing the transaction hash of the ManageWeightage operation. Ex: "fbef2e61b8961114a285a8d1ba9c20076f13f636db4fc452dae64bf763390724" |
{
"hash": "fbef2e61b8961114a285a8d1ba9c20076f13f636db4fc452dae64bf763390724"
}