Transactions

Create

The below transaction can be used to create a subaccount on the blockchain.

Command

sged tx subaccount create [subaccount-owner] --funds [funds] --lock-duration [duration] --flags

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

ArgumentDescriptionTypeValidationExample

owner account address

the address of the owner of the subaccount

string

  • Required

  • Valid Address

sge1059gavv45jdp0l7c4kkskr0jae02j9cxmjr3f3

funds

the initial fund of the subaccount

uint64

  • Required

  • Valid Number

100000

duration

lock duration of the balance

duration

  • Required

  • Valid Duration

8760h

Top-Up

The below transaction can be used to top up a subaccount on the blockchain.

Command

sged tx subaccount topup [subaccount-owner] --funds [funds] --lock-duration [duration] --flags

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

ArgumentDescriptionTypeValidationExample

owner account address

the address of the owner of the subaccount

string

  • Required

  • Valid Address

sge1059gavv45jdp0l7c4kkskr0jae02j9cxmjr3f3

funds

the initial fund of the subaccount

uint64

  • Required

  • Valid Number

100000

duration

lock duration of the balance

duration

  • Required

  • Valid Duration

8760h

Withdraw

The below transaction can be used to withdraw a subaccount unlocked balance.

Command

sged tx subaccount withdraw [subaccount-owner] --flags

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

ArgumentDescriptionTypeValidationExample

owner account address

the address of the owner of the subaccount

string

  • Required

  • Valid Address

sge1059gavv45jdp0l7c4kkskr0jae02j9cxmjr3f3

Wager

The below transaction can be used to wager using the subaccount and owner account balance.

Command

sged tx subaccount wager [ticket] --flags

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

ArgumentDescriptionTypeValidationExample

ticket

the ticket data

string

  • Required

  • Valid ticket

Last updated