func (w *Wallet) RedeemPremine(to address.Address) error {
	toPkh, err := to.ToPubkeyHash()
	if err != nil {
		return err
	}

	tx := transfer.RedeemTransaction{
		ToPubkeyHash: toPkh,
	}

	_, err = w.RPCClient.SubmitTransaction(context.Background(), &pb.SubmitTransactionRequest{
		ShardID: 0,
		Transaction: &pb.ShardTransaction{
			TransactionData: tx.Serialize(),
		},
	})

	return err
}
// RedeemPremine redeems the premine to our address.
RedeemPremine redeems the premine to our address.
// RedeemPremine redeems the premine to our address .
func (w *Wallet) RedeemPremine(to address.Address) error {
	toPkh, err := to.ToPubkeyHash()
	if err != nil {
		return err
	}
	tx := transfer.RedeemTransaction{
		ToPubkeyHash: toPkh,
	}
	_, err = w.RPCClient.SubmitTransaction(context.Background(), &pb.SubmitTransactionRequest{
		ShardID: 0,
		Transaction: &pb.ShardTransaction{
			TransactionData: tx.Serialize(),
		},
	})
	return err
}
func ( w * Wallet ) RedeemPremine ( to address . Address ) error { toPkh , err := to . ToPubkeyHash ( ) if err != nil { return err } tx := transfer . RedeemTransaction { ToPubkeyHash : toPkh , } _ , err = w . RPCClient . SubmitTransaction ( context . Background ( ) , & pb . SubmitTransactionRequest { ShardID : 0 , Transaction : & pb . ShardTransaction { TransactionData : tx . Serialize ( ) , } , } ) return err }
RedeemPremine redeems the premine to our address.
RedeemPremine redeems the premine to our address .