Transactions & Payloads

The exposed transactions CLI commands and ticket payloads by the OVM module.

Proposal

The below transaction can be used to create a proposal for pubkey change on the blockchain.

Command

sged tx ovm pubkeys-change-proposal [ticket] --flags

The below table specifies the details of the arguments used in the above transaction:

Argument
Description
Type
Validation
Example

ticket

Used for proposal verification.

String (JWT token)

  • Cannot be empty

  • Cannot contain space (More validations will be added in the future)

1eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI5OTkxYzYwZi0yMDI1LTQ4Y2UtYWU3OS0xZGMxMTBmMTY5OTkiLCJ4aWQiOiJCZXRPZGQiLCJuYW1lIjoiMSIsImJldF9ldmVudF91aWQiOiI1NTMxYzYwZi0y

MDI1

Payload

The payload for the proposal transaction is as follows:

{
 "public_keys": ["-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEAzoP3SVo1tUEhd+cF/zw+8XxtOScdJyD7T3QqKzpC9x0=\n-----END PUBLIC KEY-----"],
 "leader_index": 1,
 "exp": 1667863498866062000,
 "iat": 1667827498,
 "iss": "Oracle",
 "sub": "PubKeysChangeProposal"
}

Vote

The below transaction can be used to create a proposal for pubkey change on the blockchain.

Command

sged tx ovm vote-pubkeys-proposal [ticket ][pubkeyIndex] --flags

The below table specifies the details of the arguments used in the above transaction:

Argument
Description
Type
Validation
Example

ticket

Used for proposal verification.

String (JWT token)

  • Cannot be empty

  • Cannot contain space (More validations will be added in the future)

1eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI5OTkxYzYwZi0yMDI1LTQ4Y2UtYWU3OS0xZGMxMTBmMTY5OTkiLCJ4aWQiOiJCZXRPZGQiLCJuYW1lIjoiMSIsImJldF9ldmVudF91aWQiOiI1NTMxYzYwZi0yMDI1

pubkeyIndex

The registered pubkey index that you are voting on behalf

uint32

  • Cannot be empty

  • The pubkey index should be available in current public keys list

  • The ticket should be signed with the private key corresponding to this pubkey at index

1

Payload

The payload for the vote transaction is as follows:

{
 "proposal_id": 1,
 "vote": 1,// 1: no, 2:yes
 "exp": 1667863498866062000,
 "iat": 1667827498,
 "iss": "Oracle",
 "sub": "PubKeysChangeProposalVote"
}

Last updated